From b8043b3ad24da6eb9bb9a8aa9cba45214e20d9af Mon Sep 17 00:00:00 2001 From: guanhuan Date: Wed, 11 Jun 2025 11:41:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=9A=E6=9D=A1=E9=87=87?= =?UTF-8?q?=E8=B4=AD=E7=94=B3=E8=AF=B7=E8=B7=B3=E8=BD=AC=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jikimo_purchase_request/models/mrp_production.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jikimo_purchase_request/models/mrp_production.py b/jikimo_purchase_request/models/mrp_production.py index 6250c79e..680e3c61 100644 --- a/jikimo_purchase_request/models/mrp_production.py +++ b/jikimo_purchase_request/models/mrp_production.py @@ -39,7 +39,6 @@ class MrpProduction(models.Model): mrp_names = self.env['mrp.production'].search([('origin', '=', self.origin)]).mapped('name') pr_ids = self.env['purchase.request'].sudo().search([('origin', 'in', mrp_names)]) - action = { 'res_model': 'purchase.request', 'type': 'ir.actions.act_window', @@ -52,7 +51,7 @@ class MrpProduction(models.Model): else: action.update({ 'name': _("从 %s生成采购请求单", self.name), - 'domain': [('id', 'in', pr_ids)], + 'domain': [('id', 'in', pr_ids.ids)], 'view_mode': 'tree,form', }) return action