From d3a474f16a4ff8c082fea4d129285b7561651752 Mon Sep 17 00:00:00 2001 From: Michele Date: Fri, 26 May 2023 08:57:09 +0200 Subject: [PATCH] [ADD] base_report_to_printer: Add neutralization queries Since 16.0 of codebase there is a new function "Neutralization" that runs all neutralization queries that basically deactivate ir_cron, ir_mail_server and other production stuff. With this PR i ADD neutralization queries that deactivates printing server and printer during neutralization . --- .copier-answers.yml | 1 - base_report_to_printer/data/neutralize.sql | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 base_report_to_printer/data/neutralize.sql diff --git a/.copier-answers.yml b/.copier-answers.yml index 6f7fba94793..45ff5df7647 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -21,4 +21,3 @@ repo_slug: report-print-send repo_website: https://github.com/OCA/report-print-send travis_apt_packages: [] travis_apt_sources: [] - diff --git a/base_report_to_printer/data/neutralize.sql b/base_report_to_printer/data/neutralize.sql new file mode 100644 index 00000000000..c442c9d84e9 --- /dev/null +++ b/base_report_to_printer/data/neutralize.sql @@ -0,0 +1,3 @@ +# pylint: disable=file-not-used +update printing_printer set active=false; +update printing_server set active=false;