|
|
@@ -7,8 +7,16 @@
|
|
|
<field name="model">project.task</field>
|
|
|
<field name="inherit_id" ref="project_enterprise.project_task_view_form"/>
|
|
|
<field name="arch" type="xml">
|
|
|
-<!-- <xpath expr="//field[@name='date_deadline']" position="replace"/>-->
|
|
|
-<!-- <xpath expr="//label[@for='date_deadline']" position="replace"/>-->
|
|
|
+ <xpath expr="//div[@id='date_deadline_and_recurring_task']" position="attributes">
|
|
|
+ <attribute name="invisible">1</attribute>
|
|
|
+ </xpath>
|
|
|
+ <xpath expr="//label[@for='date_deadline'][1]" position="attributes">
|
|
|
+ <attribute name="invisible">1</attribute>
|
|
|
+ </xpath>
|
|
|
+
|
|
|
+ <xpath expr="//label[@for='date_deadline'][2]" position="attributes">
|
|
|
+ <attribute name="invisible">1</attribute>
|
|
|
+ </xpath>
|
|
|
|
|
|
<xpath expr="//field[@name='recurring_task']" position="replace"/>
|
|
|
|
|
|
@@ -20,6 +28,18 @@
|
|
|
<field name="recurring_task" nolabel="1" class="ms-0" style="width: fit-content;" widget="boolean_icon" options="{'icon': 'fa-repeat'}" invisible="not active or parent_id" groups="project.group_project_recurring_tasks"/>
|
|
|
</div>
|
|
|
|
|
|
+ <field name="x_days_duration"/>
|
|
|
+
|
|
|
+ </xpath>
|
|
|
+
|
|
|
+ <xpath expr="//field[@name='child_ids']/list//field[@name='date_deadline']" position="attributes">
|
|
|
+ <attribute name="column_invisible">1</attribute>
|
|
|
+ </xpath>
|
|
|
+
|
|
|
+ <xpath expr="//field[@name='child_ids']/list//field[@name='date_deadline']" position="after">
|
|
|
+ <field name="x_end_date" column_invisible="1" required="1"/>
|
|
|
+ <field name="x_start_date" string="Fechas planeadas" required="1" widget="daterange" options="{'end_date_field': 'x_end_date'}" optional="show"/>
|
|
|
+ <field name="x_days_duration" optional="show"/>
|
|
|
</xpath>
|
|
|
|
|
|
</field>
|