diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-09-01 10:31:23 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-09-01 10:31:23 +0700 |
| commit | 41e76bb5b668473c8086ba82ea8f405315b8e5ae (patch) | |
| tree | dcc9d5dadc971f6c38942af7e4522dcec6af9d0f /indoteknik_custom/views/account_move_line.xml | |
| parent | fb2ee6f00d4b8caf351b05db92af7bf0e4774ec8 (diff) | |
change cost_centre to analytic_account
Diffstat (limited to 'indoteknik_custom/views/account_move_line.xml')
| -rw-r--r-- | indoteknik_custom/views/account_move_line.xml | 6 |
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> |
