[FIX] account: invoice line form should contain fields present in the list
In the invoice form view, remove the editable attribute on the invoice line tree Create an invoice, click add an item in the invoice_line_ids field Before this commit there was a crash because the tree view contains analytic_tag_ids but the invoice line form doesn't After this commit, there is no crash and the invoice line form works as exepected OPW 1889107 closes odoo/odoo#27382
This commit is contained in:
@@ -72,6 +72,7 @@
|
||||
<field name="currency_id" invisible="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="analytic_tag_ids" groups="analytic.group_analytic_accounting" widget="many2many_tags" options="{'color_field': 'color'}"/>
|
||||
<field domain="[('company_id', '=', parent.company_id)]" name="account_id" groups="account.group_account_user"/>
|
||||
<field name="invoice_line_tax_ids" context="{'type':parent.type}" domain="[('type_tax_use','!=','none'),('company_id', '=', parent.company_id)]" widget="many2many_tags" options="{'no_create': True}"/>
|
||||
<field domain="[('company_id', '=', parent.company_id)]" name="account_analytic_id" groups="analytic.group_analytic_accounting"/>
|
||||
|
||||
Reference in New Issue
Block a user