[IMP] project_ux: improve project creation and keep task name on quick create#143
Open
les-adhoc wants to merge 2 commits into
Open
[IMP] project_ux: improve project creation and keep task name on quick create#143les-adhoc wants to merge 2 commits into
les-adhoc wants to merge 2 commits into
Conversation
…ck-create The quick-create form (My Tasks, project kanban) binds the "Task Title" input to display_name, which is only inversed into `name` on save. Because this module makes display_name depend on project_id.show_task_id (to append the task id), selecting/changing the project invalidates and recomputes display_name from the still-empty `name`, wiping the title the user just typed. Restore the typed value in the onchange result so it survives the project change, across all creation flows (quick-create and normal form). Task: 69540
Creating a project from Project > New redirected to the task pipeline (the "No stages yet..." Kanban stages config) before the project was set up. Point the "Create project" button of the New modal to the standard get_formview_action so it lands on the project's own form, where the user can finish configuring it (manager, customer, dates, settings). Stages remain configurable from the "Tasks Stages" tab. Scoped to that modal only, so the shared action_view_tasks (used by the kanban cards) is untouched. Task: 69540
ff9a722 to
27b6aff
Compare
Contributor
|
@roboadhoc r+ bump |
|
@les-adhoc @mav-adhoc because this PR has multiple commits, I need to know how to merge it:
|
Contributor
|
@roboadhoc rebase-ff |
|
Merge method set to rebase and fast-forward. |
roboadhoc
pushed a commit
that referenced
this pull request
Jun 19, 2026
…ck-create The quick-create form (My Tasks, project kanban) binds the "Task Title" input to display_name, which is only inversed into `name` on save. Because this module makes display_name depend on project_id.show_task_id (to append the task id), selecting/changing the project invalidates and recomputes display_name from the still-empty `name`, wiping the title the user just typed. Restore the typed value in the onchange result so it survives the project change, across all creation flows (quick-create and normal form). Task: 69540 Part-of: #143 Signed-off-by: Matias Velazquez <mav@adhoc.com.ar>
roboadhoc
pushed a commit
that referenced
this pull request
Jun 19, 2026
Creating a project from Project > New redirected to the task pipeline (the "No stages yet..." Kanban stages config) before the project was set up. Point the "Create project" button of the New modal to the standard get_formview_action so it lands on the project's own form, where the user can finish configuring it (manager, customer, dates, settings). Stages remain configurable from the "Tasks Stages" tab. Scoped to that modal only, so the shared action_view_tasks (used by the kanban cards) is untouched. closes #143 Task: 69540 Signed-off-by: Matias Velazquez <mav@adhoc.com.ar>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Dos mejoras de UX en
project_ux(v19.0). Task: https://www.adhoc.inc/odoo/action-/695401. [FIX] No borrar el título de la tarea al seleccionar proyecto
En el quick-create (My Tasks, kanban del proyecto) el campo "Task Title" está bindeado a
display_name, que solo se vuelca anameal guardar. Como este módulo hace quedisplay_namedependa deproject_id.show_task_id(para mostrar el(#id)), al seleccionar/cambiar el proyecto se recomputadisplay_namedesde unnametodavía vacío y se borra el título tipeado.Se restaura el valor tipeado en el resultado del
onchangepara que sobreviva al cambio de proyecto, en todos los flujos de creación.Se evaluó el fix alternativo a nivel de dependencia del compute (
@api.depends), pero rompe el refresco del(#id)al togglearshow_task_ido reintroduce el wipe; el override deonchangees la opción más limpia dado el modelo de invalidación de Odoo.2. [IMP] Redirigir al form del proyecto tras crearlo
Crear un proyecto desde Project > New redirigía al pipeline de tareas (config de etapas Kanban "No stages yet...") antes de poder configurar el proyecto. Se apunta el botón "Create project" del modal al método estándar
get_formview_action, que abre el form propio del proyecto. Acotado a ese modal: elaction_view_taskscompartido (tarjetas del kanban) queda intacto. Las etapas siguen configurables desde la pestaña "Tasks Stages".Test plan
project_ux: 12 tests, todos en verde (incluye 3 nuevos: título preservado en quick-create con y sinshow_task_id; botón del modal apunta aget_formview_action; la acción aterriza en el form del proyecto).