Skip to content

Commit 195a0ab

Browse files
committed
fixup! [ADD] Auto process lower levels
1 parent 5fb9bb3 commit 195a0ab

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

account_credit_control/models/credit_control_policy.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,10 @@ def _generate_credit_lines(self, credit_control_run, default_lines_vals=None):
242242
}
243243
else:
244244
report = (
245-
_('Policy "<b>%s</b>" has not generated any Credit Control Lines.<br/>')
245+
_(
246+
'Policy "<b>%s</b>" has not generated any '
247+
"Credit Control Lines.<br/>"
248+
)
246249
% self.name
247250
)
248251
return (manual_lines, policy_lines_generated, report)
@@ -350,7 +353,7 @@ def _check_level_mode(self):
350353
)
351354
if smallest_level.computation_mode == "previous_date":
352355
raise ValidationError(
353-
_("The smallest level can not be of type Previous Reminder")
356+
_("The smallest level can not be " "of type Previous Reminder")
354357
)
355358

356359
def _previous_level(self):
@@ -376,7 +379,8 @@ def _previous_level(self):
376379
@staticmethod
377380
def _net_days_get_boundary():
378381
return (
379-
" (mv_line.date_maturity + %(delay)s)::date <= date(%(controlling_date)s)"
382+
" (mv_line.date_maturity + %(delay)s)::date <= "
383+
"date(%(controlling_date)s)"
380384
)
381385

382386
@staticmethod
@@ -402,7 +406,7 @@ def _get_sql_date_boundary_for_computation_mode(self):
402406
return fnc()
403407
else:
404408
raise NotImplementedError(
405-
_("Can not get function for computation mode: %s is not implemented")
409+
_("Can not get function for computation mode: " "%s is not implemented")
406410
% (fname,)
407411
)
408412

0 commit comments

Comments
 (0)