[FIX] account: don't auto save on boolean widget
When creating a reconciliation model line on a new record, by activate the boolean toggle on `force_tax_included` field, the line is save but as the reco model is not, `check_company` will raise an error. Steps: - Create a new model - Before saving, create a line, set a tax and click on Tax included toggle button -> Error is raised opw-3473189 closes odoo/odoo#133233 X-original-commit: 796478445e5bc7da95b8a0aaab4dcbe235bb2957 Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com> Signed-off-by: Guillaume Vanleynseele (guva) <guva@odoo.com>
This commit is contained in:
@@ -200,6 +200,7 @@
|
||||
options="{'account_field': 'account_id', 'business_domain': 'general'}"/>
|
||||
<field name="force_tax_included"
|
||||
widget="boolean_toggle"
|
||||
options="{'autosave': False}"
|
||||
invisible="not show_force_tax_included"
|
||||
optional="hide"/>
|
||||
<field name="label"/>
|
||||
|
||||
Reference in New Issue
Block a user