From ec2ef752b32ed67f927723a224b492da4d314602 Mon Sep 17 00:00:00 2001 From: hujiaying Date: Mon, 9 Sep 2024 18:04:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_stock/__manifest__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sf_stock/__manifest__.py b/sf_stock/__manifest__.py index f22004e5..40f9113b 100644 --- a/sf_stock/__manifest__.py +++ b/sf_stock/__manifest__.py @@ -3,8 +3,7 @@ 'name': "sf_stock", 'summary': """ - Short (1 phrase/line) summary of the module's purpose, used as - subtitle on modules listing or apps.openerp.com""", + 处理代发货业务""", 'description': """ Long description of module's purpose From 1ddb446bc673bffc27684f4da2335cc44ea5b54c Mon Sep 17 00:00:00 2001 From: hujiaying Date: Tue, 10 Sep 2024 11:15:00 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E6=8E=92=E7=A8=8B=E5=8D=95=E5=B0=8F=E6=97=B6=E4=BA=A7=E8=83=BD?= =?UTF-8?q?=E5=8F=96=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/mrp_workcenter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_manufacturing/models/mrp_workcenter.py b/sf_manufacturing/models/mrp_workcenter.py index 0a7e1d0e..b5ec7580 100644 --- a/sf_manufacturing/models/mrp_workcenter.py +++ b/sf_manufacturing/models/mrp_workcenter.py @@ -223,7 +223,7 @@ class ResWorkcenter(models.Model): if plan_ids: sum_qty = sum([p.product_qty for p in plan_ids]) - if sum_qty >= self.single_machine_capacity: + if sum_qty >= self.production_line_hour_capacity: return False return True