[FIX] hw_scale: added field 'disable' to namedtuple 'ScaleProtocol'

Introduced at bb015818ea
Getting error
TypeError: __new__() got an unexpected keyword argument 'disable'

closes odoo/odoo#28202
This commit is contained in:
Andrey Troitskiy
2018-11-06 10:12:50 +00:00
committed by Martin Trigaux
parent 7f5180578f
commit 764bd645fc
+1 -1
View File
@@ -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.