[IMP] Port product_warranty

This commit is contained in:
Ondřej Kuzník
2015-04-23 16:31:49 +01:00
parent d835c12774
commit fb09dc050a
11 changed files with 10 additions and 9 deletions

View File

@@ -129,4 +129,3 @@ msgstr ""
#: field:return.instruction,instructions:0
msgid "Instructions"
msgstr ""

View File

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

View File

@@ -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]

View File

@@ -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>

View File

@@ -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>