mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[14.0][IMP] base_report_to_printer: Remove deprecated Warning
This commit is contained in:
committed by
John Herholz
parent
e96023cf51
commit
06a8c9c669
@@ -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})
|
||||||
|
|||||||
Reference in New Issue
Block a user