diff --git a/account_credit_control/run.py b/account_credit_control/run.py index aaa443d17..417af2839 100644 --- a/account_credit_control/run.py +++ b/account_credit_control/run.py @@ -49,7 +49,7 @@ class CreditControlRun(models.Model): states={'draft': [('readonly', False)]}, default=_get_policies, ) - report = fields.Text(string='Report', readonly=True, copy=False) + report = fields.Html(string='Report', readonly=True, copy=False) state = fields.Selection([('draft', 'Draft'), ('done', 'Done')], string='State', @@ -123,13 +123,13 @@ class CreditControlRun(models.Model): self.date) generated |= policy_lines_generated if policy_lines_generated: - report += (_("Policy \"%s\" has generated %d Credit " - "Control Lines.\n") % + report += (_("Policy \"%s\" has generated %d Credit " + "Control Lines.
") % (policy.name, len(policy_lines_generated))) else: report += _( - "Policy \"%s\" has not generated any " - "Credit Control Lines.\n" % policy.name + "Policy \"%s\" has not generated any " + "Credit Control Lines.
" % policy.name ) vals = {'state': 'done', diff --git a/account_credit_control/run_view.xml b/account_credit_control/run_view.xml index e10e8c389..2d40c02ab 100644 --- a/account_credit_control/run_view.xml +++ b/account_credit_control/run_view.xml @@ -29,10 +29,12 @@ + + - - - +