mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-26 22:32:01 +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,46 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<!-- supplier info tree view -->
|
||||
<record id="product_supplierinfo_warranty_tree_view" model="ir.ui.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 id="product_supplierinfo_warranty_form_view" model="ir.ui.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" col="4">
|
||||
<field name="active_supplier" />
|
||||
<field name="warranty_duration" />
|
||||
<field name="return_instructions" />
|
||||
</group>
|
||||
<group col="4">
|
||||
<field name="warranty_return_partner" />
|
||||
<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>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="product_template_extend_warranty" model="ir.ui.view">
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_form_view" />
|
||||
<field name="arch" type="xml">
|
||||
<page name="sales" position="inside">
|
||||
<group>
|
||||
<group string="Warranty" id="warranty-left">
|
||||
<label name="warranty" for="warranty" />
|
||||
<div>
|
||||
<field name="warranty" class="oe_inline" />
|
||||
<field name="warranty_type" class="oe_inline" />
|
||||
</div>
|
||||
</group>
|
||||
<group id="warranty-right" />
|
||||
</group>
|
||||
</page>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<!-- INHERITED VIEW FOR THE OBJECT : res_company -->
|
||||
<record id="company_form" model="ir.ui.view">
|
||||
<field name="name">crm_claim_rma.company_form</field>
|
||||
<field name="model">res.company</field>
|
||||
<field name="inherit_id" ref="base.view_company_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//field[@name='company_registry']/ancestor::group"
|
||||
position="after"
|
||||
>
|
||||
<separator string="CRM Product Return Address" />
|
||||
<group col="2">
|
||||
<group>
|
||||
<field name="crm_return_address_id" />
|
||||
</group>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<!-- return instructions tree view -->
|
||||
<record id="product_return_instructions_tree_view" model="ir.ui.view">
|
||||
<field name="name">product.return.instructions.tree</field>
|
||||
<field name="model">return.instruction</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="name" />
|
||||
<field name="instructions" />
|
||||
<field name="is_default" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<!-- return instructions form view -->
|
||||
<record id="product_return_instructions_form_view" model="ir.ui.view">
|
||||
<field name="name">product.return.instructions.form</field>
|
||||
<field name="model">return.instruction</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Return instructions">
|
||||
<sheet>
|
||||
<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" />
|
||||
</sheet>
|
||||
</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_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"
|
||||
/>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue