Skip to content
Permalink
Browse files

[FIX] purchase: partner on picking for dropship

- Create a SO with the Dropship route
- Validate the associated PO

The picking created has the partner set as the partner of the PO instead
of the SO.

opw-1935039
  • Loading branch information...
nim-odoo committed Feb 20, 2019
1 parent ef618df commit 66a11478e131cb2252b17d503d34b8be87bd3f7b
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/purchase/models/purchase.py
@@ -410,7 +410,7 @@ def _prepare_picking(self):
raise UserError(_("You must set a Vendor Location for this partner %s") % self.partner_id.name)
return {
'picking_type_id': self.picking_type_id.id,
'partner_id': self.partner_id.id,
'partner_id': self.dest_address_id.id or self.partner_id.id,
'date': self.date_order,
'origin': self.name,
'location_dest_id': self._get_destination_location(),

0 comments on commit 66a1147

Please sign in to comment.
You can’t perform that action at this time.