summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/account_account_views.xml3
-rw-r--r--indoteknik_custom/views/account_move_line.xml6
2 files changed, 3 insertions, 6 deletions
diff --git a/indoteknik_custom/views/account_account_views.xml b/indoteknik_custom/views/account_account_views.xml
index 20886787..875d5a6b 100644
--- a/indoteknik_custom/views/account_account_views.xml
+++ b/indoteknik_custom/views/account_account_views.xml
@@ -7,8 +7,7 @@
<field name="inherit_id" ref="account.view_account_list"/>
<field name="arch" type="xml">
<field name="currency_id" position="after">
- <field name="cost_centre_id" optional="hide"/>
- <field name="analytic_account_ids" widget="many2many_tags" options="{'no_create': True}"/>
+ <field name="analytic_tag_ids" optional="show" widget="many2many_tags"/>
</field>
</field>
</record>
diff --git a/indoteknik_custom/views/account_move_line.xml b/indoteknik_custom/views/account_move_line.xml
index 99122de3..5b5f73cd 100644
--- a/indoteknik_custom/views/account_move_line.xml
+++ b/indoteknik_custom/views/account_move_line.xml
@@ -8,11 +8,9 @@
<field name="arch" type="xml">
<xpath expr="//page[@id='aml_tab']/field[@name='line_ids']/tree/field[@name='currency_id']" position="before">
<field name="is_required" invisible="1"/>
- <field name="cost_centre_id" optional="hide"/>
- <field name="analytic_account_ids" widget="many2many_tags" options="{'no_create': True}"/>
</xpath>
- <xpath expr="//page[@id='aml_tab']/field[@name='line_ids']/tree/field[@name='analytic_account_id']" position="attributes">
- <attribute name="invisible">1</attribute>
+ <xpath expr="//page[@id='aml_tab']/field[@name='line_ids']/tree/field[@name='analytic_tag_ids']" position="attributes">
+ <attribute name="groups"/>
</xpath>
</field>
</record>