account-analytic
account-analytic copied to clipboard
[13.0/14.0] stock_inventory_analytic: In stock inventory line tree view the group for "analytic_tag_ids" should be "group_analytic_tags".
Module
stock_inventory_analytic
Describe the bug
You can see the field "Analytic Tags" in tree view of stock inventory lines even though you don't have the group for analytic tags (only for analytic accounts).
https://github.com/OCA/account-analytic/blob/14.0/stock_inventory_analytic/views/stock_inventory_line_view.xml#L17 The group "analytic.group_analytic_accounting" is wrong for the field "analytic_tag_ids".
To Reproduce
Affected versions: 14.0 (probably also in 13.0)
Steps to reproduce the behavior:
- Go to Invoicing > Configuration > Settings and activate Analytic Accounting (but not Analytic Tags).
- Go to Inventory > Operation > Inventory Adjustments.
- Create a new inventory adjustment, choose a location or product etc and then start the inventory.
- Check tree view. You can see Analytic Account and Analytic Tags.
Expected behavior The field Analytic tags in tree view should only be visible if one has the group "analytic.group_analytic_tags".