Skip to content

Commit 07972c0

Browse files
ferran-S73Vicent-S73
authored andcommitted
[18.0][FIX] base_report_to_printer: neutralization scripts
1 parent 0e6322f commit 07972c0

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
update printing_server set active=false;
22
update printing_printer set active=false;
3+
update printing_report_xml_action set active=false;
4+
update ir_act_report_xml set printing_printer_id=null;

base_report_to_printer/models/printing_report_xml_action.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class PrintingReportXmlAction(models.Model):
3232
string="Paper Source",
3333
domain="[('printer_id', '=', printer_id)]",
3434
)
35+
active = fields.Boolean(default=True)
3536

3637
@api.onchange("printer_id")
3738
def onchange_printer_id(self):

0 commit comments

Comments
 (0)