Files
report-print-send/remote_report_to_printer/models/printing_action.py
Stéphane Bidoul c59cd1b564 Apply dotfiles
2023-03-13 09:50:09 +01:00

17 lines
463 B
Python

# Copyright (c) 2018 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class PrintingAction(models.Model):
_inherit = "printing.action"
@api.model
def _available_action_types(self):
res = super()._available_action_types()
res.append(("remote_default", "Use remote's default"))
return res
action_type = fields.Selection(selection=_available_action_types,)