From 97527da4d35d63ebf7ef5f018417f93717e91355 Mon Sep 17 00:00:00 2001 From: "jinling.yang" Date: Wed, 19 Oct 2022 11:51:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=85=8D=E5=B7=A5=E5=8E=82=E6=9D=A1?= =?UTF-8?q?=E7=A0=81=E5=AD=97=E6=AE=B5=E6=B3=A8=E9=87=8A=E5=8E=BB=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_bpm_api/models/product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_bpm_api/models/product_template.py b/sf_bpm_api/models/product_template.py index 06a691b3..08f2237c 100644 --- a/sf_bpm_api/models/product_template.py +++ b/sf_bpm_api/models/product_template.py @@ -36,7 +36,7 @@ class ResProductTemplate(models.Model): 'model_materials_type_id': self.env['mrs.materials.model'].search( [('materials_no', '=', item['texture_type_code'])]).id, 'default_code': '%s-%s' % (order_number, i), - # 'barcode': item['barcode'], + 'barcode': item['barcode'], 'active': True } copy_product_id.sudo().write(vals)