mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-23 03:32:09 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,59 @@
|
|||
<?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>
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="hr_equipment_view_form" model="ir.ui.view">
|
||||
<field name="name">equipment.form</field>
|
||||
<field name="model">maintenance.equipment</field>
|
||||
<field name="inherit_id" ref="maintenance.hr_equipment_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='serial_no']" position="after">
|
||||
<field name="move_id" groups="account.group_account_invoice" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue