Sendmail: Fix selector for pending/overdue for scheduled messages (Z#23202906) (#5338)

* Sendmail: Fix selector for pending/overdue for scheduled messages (Z#287303)

* isort

* Apply suggestions from code review

---------

Co-authored-by: Raphael Michel <michel@rami.io>
This commit is contained in:
Martin Gross
2025-08-04 15:45:17 +02:00
committed by GitHub
co-authored by Raphael Michel
parent 6f920e6bcd
commit a8f74d87ec
2 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -389,7 +389,7 @@ class RuleForm(FormPlaceholderMixin, I18nModelForm):
choices.insert(0, ('n__pending_approval', _('approval pending')))
if not self.event.settings.get('payment_term_expire_automatically', as_type=bool):
choices.append(
('p__overdue', _('pending with payment overdue'))
('n__pending_overdue', _('pending with payment overdue'))
)
self.fields['restrict_to_status'] = forms.MultipleChoiceField(
label=pgettext_lazy('sendmail_from', 'Restrict to orders with status'),