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
|
||||
msgid "Instructions"
|
||||
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 """
|
||||
instr_obj = self.pool.get('return.instruction')
|
||||
instruction_ids = instr_obj.search(cr, uid,
|
||||
[('is_default', '=', 'FALSE')],
|
||||
[('is_default', '=', True)],
|
||||
context=context)
|
||||
if instruction_ids:
|
||||
return instruction_ids[0]
|
||||
@@ -35,15 +35,17 @@
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
<!-- supplier info 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">
|
||||
<field name="name"/>
|
||||
<field name="is_default"/>
|
||||
<group col='4'>
|
||||
<field name="name"/>
|
||||
<field name="is_default"/>
|
||||
</group>
|
||||
<separator string="Instructions" colspan="4"/>
|
||||
<field name="instructions" nolabel="1" colspan="4"/>
|
||||
</form>
|
||||
@@ -57,11 +59,11 @@
|
||||
<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="product.prod_config_main" sequence="3"/>
|
||||
parent="product.prod_config_main" sequence="3"/>
|
||||
<!-- supplier info -->
|
||||
<!-- supplier info tree view -->
|
||||
<record model="ir.ui.view" id="product_supplierinfo_warranty_tree_view">
|
||||
@@ -78,7 +80,7 @@
|
||||
</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>
|
||||
@@ -13,7 +13,7 @@
|
||||
<field name="company_registry" position="after">
|
||||
<separator string="Crm product return address" colspan="4"/>
|
||||
<field name="crm_return_address_id"/>
|
||||
</field>
|
||||
</field>
|
||||
</data>
|
||||
</field>
|
||||
</record>
|
||||
Reference in New Issue
Block a user