mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-22 02:52:08 +02:00
59 lines
2.2 KiB
XML
59 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<record id="view_move_form" model="ir.ui.view">
|
|
<field name="name">account.move.form</field>
|
|
<field name="model">account.move</field>
|
|
<field name="inherit_id" ref="account.view_move_form" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[hasclass('oe_button_box')]" position="inside">
|
|
<button
|
|
name="action_view_equipments"
|
|
type="object"
|
|
class="oe_stat_button"
|
|
icon="fa-cubes"
|
|
attrs="{'invisible': [('equipment_count', '=', 0)]}"
|
|
groups="account.group_account_invoice"
|
|
>
|
|
<field
|
|
string="Equipment(s)"
|
|
name="equipment_count"
|
|
widget="statinfo"
|
|
groups="account.group_account_invoice"
|
|
/>
|
|
</button>
|
|
</xpath>
|
|
<xpath
|
|
expr="//field[@name='invoice_line_ids']/tree/field[@name='quantity']"
|
|
position="before"
|
|
>
|
|
<field
|
|
name="equipment_category_id"
|
|
attrs="{'column_invisible': [('parent.move_type', '!=', 'in_invoice')]}"
|
|
optional="hide"
|
|
groups="account.group_account_invoice"
|
|
/>
|
|
<field
|
|
name="equipment_ids"
|
|
invisible="1"
|
|
groups="account.group_account_invoice"
|
|
/>
|
|
</xpath>
|
|
<xpath
|
|
expr="//notebook//field[@name='line_ids']/tree/field[@name='date_maturity']"
|
|
position="after"
|
|
>
|
|
<field
|
|
name="equipment_category_id"
|
|
domain="[('company_id','=', parent.company_id)]"
|
|
optional="hide"
|
|
groups="account.group_account_invoice"
|
|
/>
|
|
<field
|
|
name="equipment_ids"
|
|
invisible="1"
|
|
groups="account.group_account_invoice"
|
|
/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|