[IMP] delivery: IoT scales for delivery

So far the weight of a delivery package had to be entered manually.
It is now possible to link a number of IoT scales to an operation type,
then select any of those scale in the delivery package wizard
to set weight automatically instead.

closes odoo/odoo#34782

Task: 1883775
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
pha-odoo
2019-10-16 12:45:33 +00:00
committed by Antoine Prieels
parent 46ef76555f
commit e7a6b00651
@@ -9,7 +9,7 @@
<field name="delivery_packaging_id" domain="[('package_carrier_type', '=', context.get('current_package_carrier_type', False))]"
context="{'form_view_ref':'delivery.product_packaging_delivery_form'}"/>
<label for="shipping_weight" attrs="{'invisible': [('delivery_packaging_id', '=', False)]}"/>
<div class="o_row" attrs="{'invisible': [('delivery_packaging_id', '=', False)]}">
<div class="o_row" attrs="{'invisible': [('delivery_packaging_id', '=', False)]}" name="package_weight">
<field name="shipping_weight"/>
<field name="weight_uom_name"/>
</div>