Skip to content

Conversation

@yvaucher
Copy link
Member

@yvaucher yvaucher commented Aug 6, 2025

(superseeded by #522 )

Adds the possibility to send reminders via multiple channels for the same level.

Sometimes you want to send reminders on multiple channels at the same time for instance send an email as well as sending a letter on high policy level.

This adds a checkbox for each channel.

Adding a new channel must be done by adding the following fields:

  • channel_<name> on both credit.control.line and credit.control.policy
  • <name>_sent on credit.control.line

Line is updated to sent only after all selected channels have been processed. It is still possible to force the manually the state to sent to settle the line.

Policy level:

image

Credit control line:

image

TODO:

@yvaucher yvaucher force-pushed the 18-account_credit_control-multi-channel branch from 0ed05a7 to c5b6bbb Compare August 6, 2025 13:07
@yvaucher yvaucher force-pushed the 18-account_credit_control-multi-channel branch 3 times, most recently from b0f32b8 to 9192aac Compare August 7, 2025 07:54
Copy link
Contributor

@qgroulard qgroulard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition 👍

Multi-channel seems to be a really common need to me (already supported by Odoo Follow-Up btw).
I like this simple solution.

)
channel = fields.Selection(
selection=CHANNEL_LIST,
required=True,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We lose this required, I guess we should add a check to make sure that at least one channel field is True.

@yvaucher yvaucher force-pushed the 18-account_credit_control-multi-channel branch 2 times, most recently from 69bb64b to f3621fc Compare August 8, 2025 13:01
@yvaucher
Copy link
Member Author

yvaucher commented Aug 8, 2025

Fixed tests by taking in account account_credit_control_queue_job and ensuring jobs if any are run.

@yvaucher yvaucher force-pushed the 18-account_credit_control-multi-channel branch from f3621fc to db09068 Compare August 12, 2025 10:14
@yvaucher yvaucher force-pushed the 18-account_credit_control-multi-channel branch from db09068 to ee4d8be Compare September 15, 2025 09:17
Copy link
Contributor

@baimont baimont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice pr, a small fix to make tests pass

Adds the possibility to send reminders via multiple channels for the same level. For instance you can send you reminders both by email and letter.
@yvaucher yvaucher force-pushed the 18-account_credit_control-multi-channel branch from 9958193 to d4624d7 Compare September 15, 2025 10:39
@yvaucher
Copy link
Member Author

Tests to be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants