计划模块增加权限控制

This commit is contained in:
mgw
2023-11-22 17:55:30 +08:00
parent a36c30b5c1
commit 6fed64ba2a
5 changed files with 18 additions and 12 deletions

View File

@@ -199,7 +199,7 @@ class StockRule(models.Model):
sale_order = self.env['sale.order'].sudo().search([('name', '=', production.origin)])
if sale_order:
bb = sale_order.deadline_of_delivery
productions = self.env['sf.production.plan'].with_user(SUPERUSER_ID).sudo().with_company(company_id). \
productions = self.env['sf.production.plan'].sudo().with_company(company_id). \
create({
'name': production.name,
'order_deadline': sale_order.deadline_of_delivery,