[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:
committed by
Martin Trigaux
parent
7f5180578f
commit
764bd645fc
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user