2
0

[IMP] account_asset_management: add asset_profile_id and asset_id on invoice_lines form

This commit is contained in:
Marcel Savegnago 2023-06-28 15:22:38 -03:00
parent 84e30fd0d3
commit 9e3f2cacd8

View File

@ -39,6 +39,20 @@
optional="show"
/>
</xpath>
<xpath
expr="//field[@name='invoice_line_ids']/form/sheet/group/field[@name='quantity']"
position="before"
>
<field
name="asset_profile_id"
attrs="{'column_invisible': [('parent.move_type', 'not in', ('in_invoice', 'in_refund'))]}"
/>
<field
name="asset_id"
attrs="{'column_invisible': [('parent.move_type', 'not in', ('out_invoice', 'out_refund'))]}"
groups="account.group_account_manager"
/>
</xpath>
<xpath
expr="//notebook//field[@name='line_ids']/tree/field[@name='date_maturity']"
position="after"