Skip to content

Commit

Permalink
[FIX] partner_invoicing_mode_cash_on_delivery
Browse files Browse the repository at this point in the history
Do not trigger invoicing on internal operations
  • Loading branch information
jbaudoux authored and rousseldenis committed Jan 7, 2025
1 parent 3ace259 commit 51a38d1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ def _invoice_at_shipping(self):
"""
self.ensure_one()
res = super()._invoice_at_shipping()
res = res or self.sale_id.payment_mode_id.cash_on_delivery
res = res or (
self.picking_type_code == "outgoing"
and self.sale_id.payment_mode_id.cash_on_delivery
)
return res

def _invoicing_at_shipping_validation(self, invoices):
Expand Down

0 comments on commit 51a38d1

Please sign in to comment.