From 438628ce46051c363ad6c310248acfc30bce1c6e Mon Sep 17 00:00:00 2001 From: "qihao.gong@jikimo.com" Date: Tue, 25 Apr 2023 14:42:34 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E8=A7=A3=E5=86=B3coding=E6=89=AB=E6=8F=8F?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_bf_connect/models/http.py | 4 ---- sf_bf_connect/models/jd_eclp.py | 2 +- sf_manufacturing/models/mrp_production.py | 8 ++++---- sf_manufacturing/models/tray.py | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/sf_bf_connect/models/http.py b/sf_bf_connect/models/http.py index eb969eb6..196c52bb 100644 --- a/sf_bf_connect/models/http.py +++ b/sf_bf_connect/models/http.py @@ -13,10 +13,6 @@ _logger = logging.getLogger(__name__) class AuthenticationError(Exception): pass -class AuthenticationError(Exception): - pass - - class Http(models.AbstractModel): _inherit = 'ir.http' diff --git a/sf_bf_connect/models/jd_eclp.py b/sf_bf_connect/models/jd_eclp.py index 030d3da2..09540779 100644 --- a/sf_bf_connect/models/jd_eclp.py +++ b/sf_bf_connect/models/jd_eclp.py @@ -1,4 +1,4 @@ -#import cpca +import cpca import logging import base64 import requests diff --git a/sf_manufacturing/models/mrp_production.py b/sf_manufacturing/models/mrp_production.py index 1f9d6963..a17a2c08 100644 --- a/sf_manufacturing/models/mrp_production.py +++ b/sf_manufacturing/models/mrp_production.py @@ -327,9 +327,9 @@ class MrpProduction(models.Model): # workorder.duration_expected = workorder._get_duration_expected() def _create_workorder2(self, k): - res = self._create_workorder1(k) + self._create_workorder1(k) self._reset_work_order_sequence1(k) - return res + return True def _reset_work_order_sequence(self): for rec in self: @@ -344,6 +344,6 @@ class MrpProduction(models.Model): # 创建工单并进行排序 def _create_workorder(self): - res = self._create_workorder3() + self._create_workorder3() self._reset_work_order_sequence() - return res + return True diff --git a/sf_manufacturing/models/tray.py b/sf_manufacturing/models/tray.py index 1ba0bea7..4a691c50 100644 --- a/sf_manufacturing/models/tray.py +++ b/sf_manufacturing/models/tray.py @@ -3,7 +3,7 @@ import base64 from io import BytesIO from odoo import api, fields, models -#from pystrich.code128 import Code128Encoder +from pystrich.code128 import Code128Encoder class Tray(models.Model): From 1be003e000ff95c9c730fe955afe0c6133eb8a35 Mon Sep 17 00:00:00 2001 From: "qihao.gong@jikimo.com" Date: Tue, 25 Apr 2023 16:22:09 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E6=96=B0=E5=A2=9Ecpca=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index e44a0bee..62ceaf1b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ pystrich +cpca From 4c75417f2a8abf389f63a485fe296e1b2d4c5e19 Mon Sep 17 00:00:00 2001 From: mgw <1392924357@qq.com> Date: Tue, 25 Apr 2023 22:22:26 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_machine_connect/views/compensation.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/sf_machine_connect/views/compensation.xml b/sf_machine_connect/views/compensation.xml index 4804df61..a6f47b23 100644 --- a/sf_machine_connect/views/compensation.xml +++ b/sf_machine_connect/views/compensation.xml @@ -19,8 +19,6 @@ class="btn-primary" attrs='{"invisible": ["|", ("state","!=","progress"),("user_permissions","=",False)]}'/> - -