From dd290d7ef655d18afb589b842e63b91cb823083a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Sat, 27 Dec 2025 15:15:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_purchase/models/purchase_workflow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yuthon_purchase/models/purchase_workflow.py b/yuthon_purchase/models/purchase_workflow.py index 26b753cc6..9fd02b0e0 100644 --- a/yuthon_purchase/models/purchase_workflow.py +++ b/yuthon_purchase/models/purchase_workflow.py @@ -147,6 +147,8 @@ class PurchaseFixedLine(models.Model): @api.onchange('product_id') def _onchange_product_id(self): if self.product_id: + self.brand = self.product_id.brand + self.specs = self.product_id.specs self.name = self.product_id.display_name self.unit_id = self.product_id.uom_id self.price_unit = self.product_id.standard_price