Skip to content

Commit

Permalink
[IMP] stock_dropshipping_dual_invoice: Better comment on new condition
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza committed Aug 11, 2015
1 parent cb6bc98 commit 37684b3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def _need_two_invoices(self):
if (so.order_policy == 'picking' and
moves.purchase_line_id.order_id.invoice_method ==
'picking'):
# We still need to investigate if this an MTO or drop-shipping
# MTO pickings are also associated to both a sales and purchase
# order line, so we still need to investigate if this an MTO
# or drop-shipping
p_type = picking.picking_type_id
return (p_type.default_location_src_id.usage == 'supplier' and
p_type.default_location_dest_id.usage == 'customer')
Expand Down

0 comments on commit 37684b3

Please sign in to comment.