Skip to content

Commit

Permalink
[FIX] account: product category - limit income/expense accounts
Browse files Browse the repository at this point in the history
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#98150

X-original-commit: 526f44f
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Julien Van Roy <juvr@odoo.com>
  • Loading branch information
JulienVR committed Aug 16, 2022
1 parent 44715af commit 50e951a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/account/views/product_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 50e951a

Please sign in to comment.