[FIX] account: product category - limit income/expense accounts

For the product categories, the default income and expense accounts
should only contain the income/expense accounts.
Such that the dropdown menu in the product view only lists the possible
income or expense accounts.

task-2835541

closes odoo/odoo#98184

X-original-commit: 526f44f3d1c5eaa0484ca96e491b7746d384522b
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Julien Van Roy <juvr@odoo.com>
This commit is contained in:
Julien Van Roy
2022-08-16 16:28:45 +02:00
parent febc059807
commit eadf2a709e
+2 -2
View File
@@ -89,8 +89,8 @@
<group name="first" position="after">
<group name="account_property" >
<group string="Account Properties" groups="account.group_account_readonly">
<field name="property_account_income_categ_id"/>
<field name="property_account_expense_categ_id"/>
<field name="property_account_income_categ_id" domain="[('internal_group', '=', 'income')]"/>
<field name="property_account_expense_categ_id" domain="[('internal_group', '=', 'expense')]"/>
</group>
</group>
</group>