Merge PR #267 into 14.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2021-12-11 09:33:23 +00:00

View File

@@ -107,7 +107,7 @@ class IrActionsReport(models.Model):
printer = behaviour.pop("printer", None) printer = behaviour.pop("printer", None)
if not printer: if not printer:
raise exceptions.Warning(_("No printer configured to print this report.")) raise exceptions.UserError(_("No printer configured to print this report."))
if self.print_report_name: if self.print_report_name:
report_file_names = [ report_file_names = [
safe_eval(self.print_report_name, {"object": obj, "time": time}) safe_eval(self.print_report_name, {"object": obj, "time": time})