mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[ADD] remote_report_to_printer
This commit is contained in:
committed by
Olga Marco
parent
0309095e9b
commit
c96fbca65d
18
remote_report_to_printer/models/printing_action.py
Normal file
18
remote_report_to_printer/models/printing_action.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# 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,
|
||||
)
|
||||
Reference in New Issue
Block a user