[IMP] remote_report_to_printer: Show remote usages on printers

This commit is contained in:
Kevin Luna
2022-10-20 14:38:48 +02:00
parent b6ce6b8807
commit dae90b8476
5 changed files with 59 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
# Copyright 2022 CreuBlanca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class PrintingPrinter(models.Model):
_inherit = "printing.printer"
printer_remote_ids = fields.One2many(
"res.remote.printer",
inverse_name="printer_id",
string="Remotes",
help="Remote that can use this printer.",
)