diff options
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/account_account_views.xml | 3 | ||||
| -rw-r--r-- | indoteknik_custom/views/account_move_line.xml | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/indoteknik_custom/views/account_account_views.xml b/indoteknik_custom/views/account_account_views.xml index 45d8a19c..20886787 100644 --- a/indoteknik_custom/views/account_account_views.xml +++ b/indoteknik_custom/views/account_account_views.xml @@ -7,7 +7,8 @@ <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" options="{'no_create': True}"/> + <field name="cost_centre_id" optional="hide"/> + <field name="analytic_account_ids" widget="many2many_tags" options="{'no_create': True}"/> </field> </field> </record> 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> |
