修复报废-时间

This commit is contained in:
jinling.yang
2024-08-27 16:58:32 +08:00
parent a98b7456c0
commit aa96e63fff

View File

@@ -1027,8 +1027,8 @@ class MrpProduction(models.Model):
[('origin', '=', sale_order.name), ('name', 'ilike', 'WH/OUT/')])
move = out_picking.move_ids.filtered(lambda pd: pd.product_id == self.product_id)
move_values = {'product_description_variants': '',
'date_planned': datetime.now(),
'date_deadline': datetime.now(),
'date_planned': fields.Datetime.now(),
'date_deadline': fields.Datetime.now(),
'move_dest_ids': move,
'group_id': move.group_id,
'route_ids': [],