mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[IMP] test case
This commit is contained in:
@@ -520,7 +520,7 @@ class RmaOrderLine(models.Model):
|
||||
else:
|
||||
res = self.env.ref('stock.view_picking_form', False)
|
||||
result['views'] = [(res and res.id or False, 'form')]
|
||||
result['res_id'] = picking_ids[0]
|
||||
result['res_id'] = picking_ids and picking_ids[0]
|
||||
return result
|
||||
|
||||
@api.multi
|
||||
@@ -536,5 +536,5 @@ class RmaOrderLine(models.Model):
|
||||
else:
|
||||
res = self.env.ref('stock.view_picking_form', False)
|
||||
result['views'] = [(res and res.id or False, 'form')]
|
||||
result['res_id'] = picking_ids[0]
|
||||
result['res_id'] = picking_ids and picking_ids[0]
|
||||
return result
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# Copyright (C) 2017 Eficent Business and IT Consulting Services S.L.
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||
|
||||
from . import test_rma
|
||||
from . import test_supplier_rma
|
||||
from . import test_rma_dropship
|
||||
|
||||
@@ -209,7 +209,7 @@ class RmaMakePicking(models.TransientModel):
|
||||
else:
|
||||
form = self.env.ref('stock.view_picking_form', False)
|
||||
action['views'] = [(form and form.id or False, 'form')]
|
||||
action['res_id'] = pickings[0]
|
||||
action['res_id'] = pickings and pickings[0]
|
||||
return action
|
||||
|
||||
@api.multi
|
||||
|
||||
Reference in New Issue
Block a user