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.
33 lines
1.6 KiB
33 lines
1.6 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Adding the relative fields in 'project.task' module-->
|
|
<record id="project_task_view_form" model="ir.ui.view">
|
|
<field name="name">project.task.view.form.inherit.automatic.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="true"/>
|
|
</div>
|
|
<field name="is_status_stage" invisible="true"/>
|
|
<field name="check_stage" invisible="true"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='timesheet_ids']/list/field[@name='unit_amount']"
|
|
position="before">
|
|
<field name="date_start" required="1"/>
|
|
<field name="date_end" required="1"/>
|
|
<field name="timer_duration" column_invisible="1"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='partner_id']" position="after">
|
|
<field name="is_user_working" invisible="1"/>
|
|
<field name="duration" id="duration" widget="task_timer"
|
|
style="color: red;"
|
|
readonly="is_user_working"
|
|
sum="real duration"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|