diff options
| author | Laurent Stukkens (LTU) <ltu@odoo.com> | 2020-11-20 11:21:00 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2020-11-28 09:25:53 +0100 |
| commit | bed22b10322882802cb0435088f9731ebbdf634e (patch) | |
| tree | d8222e5ccc813fecdc6820814924d689a4f517d8 /addons/project/views | |
| parent | 237a1e06eeafa47212c5672fe7f1ea92e73690fb (diff) | |
[IMP] project, sale_project, sale_timesheet: refactor task form view
This commit bring the following changes:
* Remove the email field
* Switch the groups (left <-> right)
* Move the 'parent task' field below the user_id one
* Remove the service field
* Remove the 'create sales order' button
task-2388500
Diffstat (limited to 'addons/project/views')
| -rw-r--r-- | addons/project/views/project_views.xml | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml index bf2cb077214..18fb6cc050b 100644 --- a/addons/project/views/project_views.xml +++ b/addons/project/views/project_views.xml @@ -656,28 +656,27 @@ </div> <group> <group> - <field name="active" invisible="1"/> - <field name="partner_id" class="o_task_customer_field"/> - <field name="partner_email" widget="email" attrs="{'invisible': [('partner_id', '=', False)]}"/> - <field name="partner_phone" widget="phone" attrs="{'invisible': [('partner_id', '=', False)]}"/> - <field name="legend_blocked" invisible="1"/> - <field name="legend_normal" invisible="1"/> - <field name="legend_done" invisible="1"/> - </group> - <group> <field name="project_id" required="1" domain="[('active', '=', True), ('company_id', '=', company_id)]"/> + <field name="user_id" + class="o_task_user_field" + domain="[('share', '=', False)]"/> <field name="parent_id" domain="[('parent_id', '=', False)]" attrs="{'invisible' : [('allow_subtasks', '=', False)]}" /> - <field name="user_id" - class="o_task_user_field" - domain="[('share', '=', False)]"/> <field name="date_deadline" attrs="{'invisible': [('is_closed', '=', True)]}"/> <field name="recurring_task" attrs="{'invisible': [('allow_recurring_tasks', '=', False)]}" /> <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}"/> </group> + <group> + <field name="active" invisible="1"/> + <field name="partner_id" class="o_task_customer_field"/> + <field name="partner_phone" widget="phone" attrs="{'invisible': [('partner_id', '=', False)]}"/> + <field name="legend_blocked" invisible="1"/> + <field name="legend_normal" invisible="1"/> + <field name="legend_done" invisible="1"/> + </group> </group> <notebook> <page name="description_page" string="Description"> |
