[FIX] 13.0: Fix account domain on account.move.line
A deprecated account should not be selectable by the user when creating a new move. Related issue: https://github.com/odoo/odoo/issues/56586 closes odoo/odoo#56696 X-original-commit: 114b9d2c7b858b9cc8bc8d82239f6fe53290d58f Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
This commit is contained in:
@@ -909,7 +909,7 @@
|
||||
'required': [('display_type', 'not in', ('line_section', 'line_note'))],
|
||||
'invisible': [('display_type', 'in', ('line_section', 'line_note'))],
|
||||
}"
|
||||
domain="[('company_id', '=', parent.company_id)]" />
|
||||
domain="[('deprecated', '=', False), ('company_id', '=', parent.company_id)]" />
|
||||
<field name="partner_id"
|
||||
domain="['|', ('parent_id', '=', False), ('is_company', '=', True)]"
|
||||
attrs="{'column_invisible': [('parent.move_type', '!=', 'entry')]}"/>
|
||||
|
||||
Reference in New Issue
Block a user