[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:
committed by
Simon Lejeune
parent
048539732d
commit
fb2df13ea8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user