Create Picking. Weight is 1 when is 0

This commit is contained in:
resteve 2014-09-12 09:20:17 +02:00
parent df2eaca43c
commit a5138e3404
1 changed files with 4 additions and 1 deletions

View File

@ -105,7 +105,10 @@ class ShipmentOut:
#~ data['exp_lc'] = ''
#~ data['exp_observaciones'] = ''
if api.weight and hasattr(shipment, 'weight_func'):
data['exp_peso'] = str(shipment.weight_func)
weight = str(shipment.weight_func)
if weight == '0.0':
weight = '1'
data['exp_peso'] = weight
data['exp_referencia'] = shipment.code
#~ data['exp_valor_seguro'] = ''
#~ data['fr_centro_logistico'] = ''