mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[IMP] Port product_warranty
This commit is contained in:
@@ -129,4 +129,3 @@ msgstr ""
|
|||||||
#: field:return.instruction,instructions:0
|
#: field:return.instruction,instructions:0
|
||||||
msgid "Instructions"
|
msgid "Instructions"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 83 KiB |
@@ -50,7 +50,7 @@ class product_supplierinfo(orm.Model):
|
|||||||
""" Get selected lines to add to exchange """
|
""" Get selected lines to add to exchange """
|
||||||
instr_obj = self.pool.get('return.instruction')
|
instr_obj = self.pool.get('return.instruction')
|
||||||
instruction_ids = instr_obj.search(cr, uid,
|
instruction_ids = instr_obj.search(cr, uid,
|
||||||
[('is_default', '=', 'FALSE')],
|
[('is_default', '=', True)],
|
||||||
context=context)
|
context=context)
|
||||||
if instruction_ids:
|
if instruction_ids:
|
||||||
return instruction_ids[0]
|
return instruction_ids[0]
|
||||||
@@ -35,15 +35,17 @@
|
|||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<!-- supplier info form view -->
|
<!-- supplier info form view -->
|
||||||
<record model="ir.ui.view" id="product_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="name">product.return.instructions.form</field>
|
||||||
<field name="model">return.instruction</field>
|
<field name="model">return.instruction</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="Return instructions">
|
<form string="Return instructions">
|
||||||
<field name="name"/>
|
<group col='4'>
|
||||||
<field name="is_default"/>
|
<field name="name"/>
|
||||||
|
<field name="is_default"/>
|
||||||
|
</group>
|
||||||
<separator string="Instructions" colspan="4"/>
|
<separator string="Instructions" colspan="4"/>
|
||||||
<field name="instructions" nolabel="1" colspan="4"/>
|
<field name="instructions" nolabel="1" colspan="4"/>
|
||||||
</form>
|
</form>
|
||||||
@@ -57,11 +59,11 @@
|
|||||||
<field name="view_mode">tree,form</field>
|
<field name="view_mode">tree,form</field>
|
||||||
<field name="view_id" ref="product_return_instructions_tree_view"/>
|
<field name="view_id" ref="product_return_instructions_tree_view"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<menuitem action="product_return_instructions_action"
|
<menuitem action="product_return_instructions_action"
|
||||||
groups="base.group_no_one"
|
groups="base.group_no_one"
|
||||||
id="menu_product_return_instructions_action"
|
id="menu_product_return_instructions_action"
|
||||||
parent="product.prod_config_main" sequence="3"/>
|
parent="product.prod_config_main" sequence="3"/>
|
||||||
<!-- supplier info -->
|
<!-- supplier info -->
|
||||||
<!-- supplier info tree view -->
|
<!-- supplier info tree view -->
|
||||||
<record model="ir.ui.view" id="product_supplierinfo_warranty_tree_view">
|
<record model="ir.ui.view" id="product_supplierinfo_warranty_tree_view">
|
||||||
@@ -78,7 +80,7 @@
|
|||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<!-- supplier info form view -->
|
<!-- supplier info form view -->
|
||||||
<record model="ir.ui.view" id="product_supplierinfo_warranty_form_view">
|
<record model="ir.ui.view" id="product_supplierinfo_warranty_form_view">
|
||||||
<field name="name">product.supplierinfo.warranty.form</field>
|
<field name="name">product.supplierinfo.warranty.form</field>
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
<field name="company_registry" position="after">
|
<field name="company_registry" position="after">
|
||||||
<separator string="Crm product return address" colspan="4"/>
|
<separator string="Crm product return address" colspan="4"/>
|
||||||
<field name="crm_return_address_id"/>
|
<field name="crm_return_address_id"/>
|
||||||
</field>
|
</field>
|
||||||
</data>
|
</data>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
Reference in New Issue
Block a user