mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-22 05:11:59 +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,28 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="product_template_form_view" model="ir.ui.view">
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="point_of_sale.product_template_form_view" />
|
||||
<field name="arch" type="xml">
|
||||
<group name="pos" position="inside">
|
||||
<field
|
||||
name="is_deposit"
|
||||
attrs="{'invisible': ['|', '|', '|', ('deposit_product_id', '!=', False), ('sale_ok', '=', False), ('type', '=', 'service'), ('available_in_pos', '=', False)]}"
|
||||
/>
|
||||
<field
|
||||
name="deposit_product_id"
|
||||
attrs="{'invisible': ['|', '|', '|', '|', ('is_deposit', '!=', False), ('sale_ok', '=', False), ('type', '=', 'service'), ('available_in_pos', '=', False), '&', ('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}"
|
||||
/>
|
||||
</group>
|
||||
</field>
|
||||
</record>
|
||||
<record id="product_template_search_view" model="ir.ui.view">
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_search_view" />
|
||||
<field name="arch" type="xml">
|
||||
<separator position="before">
|
||||
<field name="deposit_product_id" domain="[('is_deposit', '=', True)]" />
|
||||
</separator>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue