mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Zippcube measure update
When the measure update is call from somewhere else than the device wizard, an exception is raised.
This commit is contained in:
@@ -35,5 +35,8 @@ class ZippcubeDevice(Component):
|
||||
}
|
||||
|
||||
def post_update_packaging_measures(self, measures, packaging, wizard_line):
|
||||
wizard_line.wizard_id._notify(_("Please, press the REFRESH button."))
|
||||
# wizard_line is only set when measurements are made from the measurement
|
||||
# device wizard.
|
||||
if wizard_line:
|
||||
wizard_line.wizard_id._notify(_("Please, press the REFRESH button."))
|
||||
packaging._measuring_device_release()
|
||||
|
||||
Reference in New Issue
Block a user