~camptocamp/sale-wkfl/mix_ptype_merge-rde

« back to all changes in this revision

Viewing changes to sale_dropshipping/purchase.py

  • Committer: Romain Deheele
  • Date: 2014-06-26 12:49:58 UTC
  • Revision ID: romain.deheele@camptocamp.com-20140626124958-9bj1s4u10mckjkuz
[FIX] to merged order : pass id of dest address instead of browse_record

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
    def _initial_merged_order_data(self, order):
120
120
        """Populate the destination address in the merged order."""
121
121
        res = super(purchase_order, self)._initial_merged_order_data(order)
122
 
        res['dest_address_id'] = order.dest_address_id
 
122
        res['dest_address_id'] = order.dest_address_id and order.dest_address_id.id or False
123
123
        return res