From 764bd645fc1e6628fa743b498ae4c5cda25c9b3c Mon Sep 17 00:00:00 2001 From: Andrey Troitskiy Date: Fri, 26 Oct 2018 13:38:16 +0000 Subject: [PATCH] [FIX] hw_scale: added field 'disable' to namedtuple 'ScaleProtocol' Introduced at bb015818eaf Getting error TypeError: __new__() got an unexpected keyword argument 'disable' closes odoo/odoo#28202 --- addons/hw_scale/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hw_scale/controllers/main.py b/addons/hw_scale/controllers/main.py index 58cf03ae7a6..bb98a8521d0 100644 --- a/addons/hw_scale/controllers/main.py +++ b/addons/hw_scale/controllers/main.py @@ -51,7 +51,7 @@ def _toledo8217StatusParse(status): ScaleProtocol = namedtuple( 'ScaleProtocol', "name baudrate bytesize stopbits parity timeout writeTimeout weightRegexp statusRegexp " - "statusParse commandTerminator commandDelay weightDelay newWeightDelay " + "statusParse commandTerminator commandDelay weightDelay newWeightDelay disable " "weightCommand zeroCommand tareCommand clearCommand emptyAnswerValid autoResetWeight") # 8217 Mettler-Toledo (Weight-only) Protocol, as described in the scale's Service Manual.