674
674
# update the shipment_date of the corresponding sale order if the date is not set yet - with current date
675
675
if new_packing.sale_id and not new_packing.sale_id.shipment_date:
679
679
so_obj.write(cr, uid, [new_packing.sale_id.id], {'shipment_date': time.strftime('%Y-%m-%d'),}, context=context)
680
680
so_obj.log(cr, uid, new_packing.sale_id.id, _("Shipment Date of the Sale Order '%s' has been updated to %s."%(new_packing.sale_id.name, time.strftime(date_format))))