修复创建移动历史记录

This commit is contained in:
jinling.yang
2024-06-24 14:54:33 +08:00
parent e453508f17
commit ec30a07394

View File

@@ -1028,7 +1028,7 @@ class ProductProduct(models.Model):
'product_id': self.id,
'lot_id': lot_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(),
'qty_done': 1.0,
'state': 'done',