修复创建移动历史记录
This commit is contained in:
@@ -1028,7 +1028,7 @@ class ProductProduct(models.Model):
|
|||||||
'product_id': self.id,
|
'product_id': self.id,
|
||||||
'lot_id': lot_id.id,
|
'lot_id': lot_id.id,
|
||||||
'move_id': stock_move_id.id,
|
'move_id': stock_move_id.id,
|
||||||
'destination_location_id': shelf_location_id.id,
|
'destination_location_id': shelf_location_id.id if shelf_location_id else False,
|
||||||
'install_tool_time': fields.Datetime.now(),
|
'install_tool_time': fields.Datetime.now(),
|
||||||
'qty_done': 1.0,
|
'qty_done': 1.0,
|
||||||
'state': 'done',
|
'state': 'done',
|
||||||
|
|||||||
Reference in New Issue
Block a user