Skip to content

Commit

Permalink
[FIX]account_credit_control: take email from partner invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianMAG committed Jan 8, 2024
1 parent 3eec9eb commit 9ca7492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_credit_control/models/credit_control_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def _prepare_from_move_line(self, move_line, level, controlling_date,
open_amount, default_lines_vals):
""" Create credit control line """
channel = level.channel
partner = move_line.partner_id
partner = move_line.invoice_id.partner_id or move_line.partner_id
# Fallback to letter
if channel == 'email' and partner and not partner.email:
channel = 'letter'
Expand Down

0 comments on commit 9ca7492

Please sign in to comment.