优化表面工艺排序

This commit is contained in:
jinling.yang
2024-08-25 14:58:40 +08:00
parent 9218633a5e
commit 3e438a10ee
6 changed files with 93 additions and 93 deletions

View File

@@ -177,10 +177,10 @@ class StockRule(models.Model):
for company_id, moves_values in moves_values_by_company.items():
# create the move as SUPERUSER because the current user may not have the rights to do it (mto product
# launched by a sale for example)
logging.info(moves_values)
# logging.info(moves_values)
moves = self.env['stock.move'].with_user(SUPERUSER_ID).sudo().with_company(company_id).create(
moves_values)
logging.info(moves)
# logging.info(moves)
# Since action_confirm launch following procurement_group we should activate it.
moves._action_confirm()