物料需求计划管理

This commit is contained in:
guanhuan
2025-06-30 17:10:25 +08:00
parent 334d406c35
commit c31cc868a9
7 changed files with 325 additions and 261 deletions

View File

@@ -19,3 +19,8 @@ class MrpProduction(models.Model):
production.production_type = '人工线下加工'
else:
production.production_type = None
def _get_purchase_request(self):
"""获取跟制造订单相关的采购申请单"""
pr_ids = self.env['purchase.request'].sudo().search([('origin', '=', self.name)])
return pr_ids