[FIX] stock: picking button in valuation report

When hitting the picking button in the valuation report, there was a
"form view could not be loaded" error. This is because we try to
open a picking with a stock move id.

master bug 1817491
Fixes #17226
This commit is contained in:
Hetashree Chauhan
2018-03-22 13:36:52 +01:00
committed by Simon Lejeune
parent 048539732d
commit fb2df13ea8
+1 -1
View File
@@ -997,7 +997,7 @@ class StockMove(models.Model):
'views': [(view.id, 'form')],
'view_id': view.id,
'target': 'new',
'res_id': self.id}
'res_id': self.picking_id.id}
show_picking = action_show_picking
# Quants management