summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/account_move_line.xml
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views/account_move_line.xml')
-rw-r--r--indoteknik_custom/views/account_move_line.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/indoteknik_custom/views/account_move_line.xml b/indoteknik_custom/views/account_move_line.xml
index f4db8d86..f8d5db05 100644
--- a/indoteknik_custom/views/account_move_line.xml
+++ b/indoteknik_custom/views/account_move_line.xml
@@ -8,7 +8,11 @@
<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" />
+ <field name="cost_centre_id" optional="hide"/>
+ <field name="analytic_account_ids" widget="many2many_tags" options="{'no_create': True}" domain="[('id', 'in', analytic_account_ids)]"/>
+ </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>
</field>
</record>