[FIX] sale_timesheet: update is_so_line_edited
Steps to reproduce: ------------------- - go to project form view; - edit the sale order item of a task; - make `is_so_line_edited` visible in Timesheet list on the form; Issue: ------ The `is_so_line_edited` field is not set to `True`. Solution: --------- Use the widget designed to correctly update the `is_so_line_edited` field. opw-3476614 closes odoo/odoo#137854 X-original-commit: f74e8085e578820283d4be158a5156dd3d6d35c6 Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
@@ -123,13 +123,13 @@
|
||||
<xpath expr="//field[@name='timesheet_ids']/tree/field[@name='unit_amount']" position="before">
|
||||
<!-- <field name="timesheet_ids"/> is already inside a block groups="hr_timesheet.group_hr_timesheet_user" -->
|
||||
<field name="timesheet_invoice_id" column_invisible="True"/>
|
||||
<field name="so_line" groups="!sales_team.group_sale_salesman"
|
||||
<field name="so_line" widget="so_line_field" groups="!sales_team.group_sale_salesman"
|
||||
column_invisible="not parent.allow_billable"
|
||||
readonly="readonly_timesheet"
|
||||
context="{'with_remaining_hours': True, 'with_price_unit': True}" options="{'no_create': True, 'no_open': True}"
|
||||
domain="[('is_service', '=', True), ('order_partner_id', 'child_of', parent.partner_id), ('is_expense', '=', False), ('state', '=', 'sale')]"
|
||||
optional="hide"/>
|
||||
<field name="so_line" groups="sales_team.group_sale_salesman"
|
||||
<field name="so_line" widget="so_line_field" groups="sales_team.group_sale_salesman"
|
||||
column_invisible="not parent.allow_billable"
|
||||
readonly="readonly_timesheet"
|
||||
context="{'with_remaining_hours': True, 'with_price_unit': True}" options="{'no_create': True, 'no_open': True}"
|
||||
|
||||
Reference in New Issue
Block a user