2020-01-29 18:37:08 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2018-08-05 20:33:56 +02:00
|
|
|
<odoo>
|
2020-01-29 18:37:08 +01:00
|
|
|
<record id="view_move_form" model="ir.ui.view">
|
|
|
|
<field name="name">account.move.form.account.asset.management</field>
|
|
|
|
<field name="model">account.move</field>
|
|
|
|
<field name="inherit_id" ref="account.view_move_form" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath
|
|
|
|
expr="//field[@name='invoice_line_ids']/tree/field[@name='quantity']"
|
|
|
|
position="before"
|
|
|
|
>
|
|
|
|
<field
|
|
|
|
name="asset_profile_id"
|
2021-01-14 08:53:25 +01:00
|
|
|
attrs="{'invisible': [('parent.move_type', 'not in', ('in_invoice', 'in_refund'))]}"
|
2020-01-29 18:37:08 +01:00
|
|
|
/>
|
|
|
|
<field
|
|
|
|
name="asset_id"
|
2021-01-14 08:53:25 +01:00
|
|
|
attrs="{'invisible': [('parent.move_type', 'not in', ('out_invoice', 'out_refund'))]}"
|
2020-01-29 18:37:08 +01:00
|
|
|
groups="account.group_account_manager"
|
|
|
|
/>
|
|
|
|
</xpath>
|
|
|
|
<xpath
|
|
|
|
expr="//notebook//field[@name='line_ids']/tree/field[@name='date_maturity']"
|
|
|
|
position="after"
|
|
|
|
>
|
|
|
|
<field name="asset_profile_id" />
|
|
|
|
<field name="asset_id" groups="account.group_account_manager" />
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
2018-08-05 20:33:56 +02:00
|
|
|
</odoo>
|