[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 #: field:return.instruction,instructions:0
msgid "Instructions" msgid "Instructions"
msgstr "" 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 """ """ 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]

View File

@@ -42,8 +42,10 @@
<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>