修改订单状态

This commit is contained in:
mgw
2024-07-11 11:22:25 +08:00
parent 79e3006cdb
commit e02f792300
2 changed files with 5 additions and 1 deletions

View File

@@ -204,7 +204,8 @@ class StockRule(models.Model):
productions = self.env['mrp.production'].with_user(SUPERUSER_ID).sudo().with_company(company_id).create(
productions_values)
self.env['stock.move'].sudo().create(productions._get_moves_raw_values())
# self.env['stock.move'].sudo().create(productions._get_moves_raw_values())
self.env['stock.move'].sudo().create(productions._get_moves_finished_values())
'''
创建工单