[UPD] Add budget_forecast field in timesheet table in tasks

This commit is contained in:
Stéphan Sainléger
2022-05-21 10:28:23 +02:00
parent d763e7e24b
commit cc9101429a
2 changed files with 14 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ This module is maintained by ELABORE.
"views/budget_coefficient.xml",
"views/budget_coefficient_model.xml",
"views/product_template_form.xml",
"views/project_views.xml",
"views/hr_employee.xml",
"views/actions.xml",
"views/assets.xml",

View File

@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<odoo>
<record model="ir.ui.view" id="view_task_form_budget_forecast">
<field name="name">project.task.form.budget.forecast</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='name']" position="after">
<field name="budget_forecast_id" domain="[('display_type', '=', 'line_article')]" />
</xpath>
</field>
</record>
</odoo>