[FIX] account,sale: traceback field used in domain missing in view

before this commit, enabling the mass editing for the
invoice and sale order tree view using the studio,
 throws exception.

* install studio
* open sale order tree
* enable mass editing for the tree using studio app
* exception will be shown

after this commit, on enabling mass editing on this tree view, exception will not be shown.

closes odoo/odoo#114795

X-original-commit: 105cdc773f6673661d3fdf766084cbc85c97c589
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
niyasraphy
2023-03-09 15:55:13 +01:00
parent 9fe7c94c06
commit 1eee49d00f
2 changed files with 2 additions and 0 deletions
@@ -417,6 +417,7 @@
<field name="invoice_user_id" optional="hide" invisible="context.get('default_move_type') not in ('out_invoice', 'out_refund','out_receipt')" string="Salesperson" widget="many2one_avatar_user"/>
<field name="activity_ids" widget="list_activity" optional="show"/>
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}" optional="hide"/>
<field name="company_id" groups="!base.group_multi_company" invisible="1"/>
<field name="amount_untaxed_signed" string="Tax Excluded" sum="Total" optional="show"/>
<field name="amount_tax_signed" string="Tax" sum="Total" optional="hide"/>
<field name="amount_total_signed" string="Total" sum="Total" decoration-bf="1" optional="show"/>
+1
View File
@@ -156,6 +156,7 @@
<field name="team_id" optional="hide"/>
<field name="tag_ids" optional="hide" widget="many2many_tags" options="{'color_field': 'color'}"/>
<field name="company_id" groups="base.group_multi_company" optional="show" readonly="1"/>
<field name="company_id" groups="!base.group_multi_company" invisible="1"/>
<field name="amount_untaxed" sum="Total Tax Excluded" widget="monetary" optional="hide"/>
<field name="amount_tax" sum="Tax Total" widget="monetary" optional="hide"/>
<field name="amount_total" sum="Total Tax Included" widget="monetary" decoration-bf="1" optional="show"/>