Skip to content

Commit

Permalink
[FIX] account,purchase: display analytic_tag_ids correctly
Browse files Browse the repository at this point in the history
account: the field was present twice in the view
purchase: was not using the right group, same as c9e8ec5

Fixes odoo#35073

closes odoo#62863

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
  • Loading branch information
alexis-via authored and mart-e committed Dec 4, 2020
1 parent 1147645 commit b3c7916
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions addons/account/views/account_invoice_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,10 @@
<field name="currency_id" invisible="1"/>
</group>
<group>
<field name="analytic_tag_ids" groups="analytic.group_analytic_tags" widget="many2many_tags" options="{'color_field': 'color'}"/>
<field domain="[('company_id', '=', company_id)]" name="account_id" groups="account.group_account_user"/>
<field name="invoice_line_tax_ids" context="{'type': invoice_type}" domain="[('type_tax_use','!=','none'),('company_id', '=', company_id)]" widget="many2many_tags" options="{'no_create': True}"/>
<field domain="[('company_id', '=', company_id)]" name="account_analytic_id" groups="analytic.group_analytic_accounting"/>
<field name="analytic_tag_ids" widget="many2many_tags" groups="analytic.group_analytic_tags"/>
<field name="analytic_tag_ids" widget="many2many_tags" groups="analytic.group_analytic_tags" options="{'color_field': 'color'}"/>
<field name="company_id" groups="base.group_multi_company" readonly="1"/>
</group>
</group>
Expand Down
2 changes: 1 addition & 1 deletion addons/purchase/views/purchase_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
<field name="taxes_id" widget="many2many_tags" domain="[('type_tax_use', '=', 'purchase')]" options="{'no_create': True}"/>
<field name="date_planned" widget="date"/>
<field name="account_analytic_id" colspan="2" groups="analytic.group_analytic_accounting"/>
<field name="analytic_tag_ids" groups="analytic.group_analytic_accounting" widget="many2many_tags" options="{'color_field': 'color'}"/>
<field name="analytic_tag_ids" groups="analytic.group_analytic_tags" widget="many2many_tags" options="{'color_field': 'color'}"/>
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
</group>
</group>
Expand Down

0 comments on commit b3c7916

Please sign in to comment.