[ADD] create `project_timesheet_funding_wish
` add-on
Add timesheet line fields: - ``funding_wish`` to inform about if the user expects a payment for the registered time. - ``treated`` to keep track if the timesheet line funding wish has been taken into account. Task: JOI-13 Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
This commit is contained in:
committed by
Stéphan Sainléger
parent
1f8baa73d1
commit
56f757505b
27
project_timesheet_funding_wish/views/hr_timesheet.xml
Normal file
27
project_timesheet_funding_wish/views/hr_timesheet.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="hr_timesheet_line_tree_funding_view" model="ir.ui.view">
|
||||
<field name="name">hr.timesheet.line.tree.funding.view</field>
|
||||
<field name="model">account.analytic.line</field>
|
||||
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='date']" position="after">
|
||||
<field name="treated" />
|
||||
<field name="funding_wish" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_task_form2_inherited_funding" model="ir.ui.view">
|
||||
<field name="name">view.task.form2.inherited.funding</field>
|
||||
<field name="model">project.task</field>
|
||||
<field name="inherit_id" ref="hr_timesheet.view_task_form2_inherited" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='timesheet_ids']/tree/field[@name='date']" position="after">
|
||||
<field name="treated" />
|
||||
<field name="funding_wish" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
Reference in New Issue
Block a user