[14.0][IMP] base_report_to_printer: Remove deprecated Warning

This commit is contained in:
Denis Roussel
2021-12-09 17:52:08 +01:00
parent 3d2bf077ae
commit 40bbbfa95b

View File

@@ -107,7 +107,7 @@ class IrActionsReport(models.Model):
printer = behaviour.pop("printer", None)
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:
report_file_names = [
safe_eval(self.print_report_name, {"object": obj, "time": time})