修复表面工艺外协单状态

This commit is contained in:
jinling.yang
2024-06-30 19:16:48 +08:00
parent e124560089
commit 404a41294c
3 changed files with 5 additions and 3 deletions

View File

@@ -211,7 +211,7 @@ class StockRule(models.Model):
'''
# productions._create_workorder()
#
# self.env['stock.move'].sudo().create(productions._get_moves_finished_values())
self.env['stock.move'].sudo().create(productions._get_moves_finished_values())
productions.filtered(lambda p: (not p.orderpoint_id and p.move_raw_ids) or \
(
p.move_dest_ids.procure_method != 'make_to_order' and not