diff --git a/base_report_to_printer/__manifest__.py b/base_report_to_printer/__manifest__.py
index 10a4e1c6c87..a399b157ab0 100644
--- a/base_report_to_printer/__manifest__.py
+++ b/base_report_to_printer/__manifest__.py
@@ -7,7 +7,7 @@
{
"name": "Report to printer",
- "version": "16.0.1.1.7",
+ "version": "16.0.1.1.8",
"category": "Generic Modules/Base",
"author": "Agile Business Group & Domsense, Pegueroles SCP, NaN,"
" LasLabs, Camptocamp, Odoo Community Association (OCA),"
diff --git a/base_report_to_printer/models/printing_server.py b/base_report_to_printer/models/printing_server.py
index 06de8faf474..dbe5820d5af 100644
--- a/base_report_to_printer/models/printing_server.py
+++ b/base_report_to_printer/models/printing_server.py
@@ -42,6 +42,9 @@ class PrintingServer(models.Model):
string="Printers List",
help="List of printers available on this server.",
)
+ company_ids = fields.Many2many(
+ comodel_name="res.company",
+ )
def _open_connection(self, raise_on_error=False):
self.ensure_one()
diff --git a/base_report_to_printer/security/security.xml b/base_report_to_printer/security/security.xml
index e0c9e2271f7..a6c34b1696c 100644
--- a/base_report_to_printer/security/security.xml
+++ b/base_report_to_printer/security/security.xml
@@ -148,4 +148,25 @@
+
+ Printing Server multi-company
+
+
+ ["|", ("company_ids", "=", False), ("company_ids", "in", company_ids)]
+
+
+
+ Printer multi-company
+
+
+ ["|", ("server_id.company_ids", "=", False), ("server_id.company_ids", "in", company_ids)]
+
+
+
+ Printing Job multi-company
+
+
+ ["|", ("server_id.company_ids", "=", False), ("server_id.company_ids", "in", company_ids)]
+
+
diff --git a/base_report_to_printer/views/printing_server.xml b/base_report_to_printer/views/printing_server.xml
index 153b85f430f..9ad4f26bbef 100644
--- a/base_report_to_printer/views/printing_server.xml
+++ b/base_report_to_printer/views/printing_server.xml
@@ -24,8 +24,17 @@
-
-
+
+
+
+
+
+
+