优化代码结构

This commit is contained in:
mgw
2023-09-14 09:17:38 +08:00
parent 4d9c0474e6
commit 43d9c54626
3 changed files with 4 additions and 3 deletions

View File

@@ -203,6 +203,7 @@ class StockRule(models.Model):
productions = self.env['sf.production.plan'].with_user(SUPERUSER_ID).sudo().with_company(company_id). \
create({
'name': production.name,
'order_deadline': sale_order.deadline_of_delivery,
'production_id': production.id,
'date_planned_start': production.date_planned_start,
'origin': production.origin,