mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
- Add dependency sale because group "group_sale_salesman" and "group_sale_manager" are defined on modul sales_team * sale depend to sales_team * update ir.model.access base. -> sales_team. - Fix product.prod_config_main not compatible and moved to sale.prod_config_main - Make removed col="6 when add product supplier info field too small (width)
91 lines
4.2 KiB
XML
91 lines
4.2 KiB
XML
<?xml version="1.0"?>
|
|
<odoo>
|
|
<data>
|
|
<!-- return instructions tree view -->
|
|
<record model="ir.ui.view" id="product_return_instructions_tree_view">
|
|
<field name="name">product.return.instructions.tree</field>
|
|
<field name="model">return.instruction</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Return instructions">
|
|
<field name="name"/>
|
|
<field name="instructions"/>
|
|
<field name="is_default"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- return instructions form view -->
|
|
<record model="ir.ui.view" id="product_return_instructions_form_view">
|
|
<field name="name">product.return.instructions.form</field>
|
|
<field name="model">return.instruction</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Return instructions">
|
|
<group name="return_instructions" col='4'>
|
|
<field name="name"/>
|
|
<field name="is_default"/>
|
|
</group>
|
|
<separator string="Instructions" colspan="4"/>
|
|
<field name="instructions" nolabel="1" colspan="4"/>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="product_return_instructions_action" model="ir.actions.act_window">
|
|
<field name="name">Products Return Instructions</field>
|
|
<field name="res_model">return.instruction</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="view_id" ref="product_return_instructions_tree_view"/>
|
|
</record>
|
|
|
|
<menuitem action="product_return_instructions_action"
|
|
groups="base.group_no_one"
|
|
id="menu_product_return_instructions_action"
|
|
parent="sale.prod_config_main" sequence="3"/>
|
|
|
|
<!-- supplier info tree view -->
|
|
<record model="ir.ui.view" id="product_supplierinfo_warranty_tree_view">
|
|
<field name="name">product.supplierinfo.warranty.tree</field>
|
|
<field name="model">product.supplierinfo</field>
|
|
<field name="inherit_id" ref="product.product_supplierinfo_tree_view" />
|
|
<field name="arch" type="xml">
|
|
<field name="min_qty" position="before">
|
|
<field name="warranty_duration"/>
|
|
<field name="warranty_return_partner"/>
|
|
<field name="warranty_return_address"/>
|
|
<field name="active_supplier"/>
|
|
<field name="return_instructions"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- supplier info form view -->
|
|
<record model="ir.ui.view" id="product_supplierinfo_warranty_form_view">
|
|
<field name="name">product.supplierinfo.warranty.form</field>
|
|
<field name="model">product.supplierinfo</field>
|
|
<field name="inherit_id" ref="product.product_supplierinfo_form_view" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//group[last()]" position="after">
|
|
<group name="waranty_group" string="Warranty informations" colspan="4">
|
|
<field name="active_supplier"/>
|
|
<field name="warranty_duration"/>
|
|
<field name="return_instructions"/>
|
|
<group colspan="4">
|
|
<group>
|
|
<field name="warranty_return_partner"/>
|
|
</group>
|
|
<group>
|
|
<field name="warranty_return_other_address"
|
|
attrs="{'invisible':[('warranty_return_partner', '!=', 'other')], 'required':[('warranty_return_partner', '=', 'other')]}"
|
|
class="oe_inline"/>
|
|
<field name="warranty_return_address" attrs="{'invisible':[('warranty_return_partner', '=', 'other')]}" class="oe_inline" />
|
|
</group>
|
|
</group>
|
|
</group>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|