account-analytic icon indicating copy to clipboard operation
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".

Open marylla opened this issue 2 years ago • 0 comments

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:

  1. Go to Invoicing > Configuration > Settings and activate Analytic Accounting (but not Analytic Tags).
  2. Go to Inventory > Operation > Inventory Adjustments.
  3. Create a new inventory adjustment, choose a location or product etc and then start the inventory.
  4. 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".

marylla avatar Jun 17 '22 07:06 marylla