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]
|
||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user