You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

34 lines
1.5 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Adding fields to the project form view-->
<record id="view_task_form2" model="ir.ui.view">
<field name="name">project.task.view.form.inherit.project.task.timer
</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_form2"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='tag_ids']" position="after">
<label for="task_timer"/>
<div class="o_row" style="display: inline-block;">
<field name="task_timer" widget="boolean_toggle"
invisible="1"/>
</div>
</xpath>
<xpath expr="//field[@name='timesheet_ids']/list/field[@name='unit_amount']"
position="before">
<field name="date_start" required="1"/>
<field name="date_end"/>
<field name="timer_duration" column_invisible="True"/>
</xpath>
<xpath expr="//field[@name='tag_ids']" position="after">
<field name="show_timer" invisible="1"/>
<label for="duration" invisible="show_timer != True"/>
<div>
<field name="duration" id="duration" widget="task_timer"
style="color: red;" invisible="show_timer != True"/>
</div>
<field name="is_user_working" invisible="1"/>
</xpath>
</field>
</record>
</odoo>