mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[FIX] .travis.yml: Update definition
This commit is contained in:
committed by
Rod Schouteden
parent
5f72fdeced
commit
3af4444f03
@@ -5,24 +5,22 @@
|
||||
# Copyright (C) 2013-2014 Camptocamp (<http://www.camptocamp.com>)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import models, fields, api
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class PrintingAction(models.Model):
|
||||
_name = 'printing.action'
|
||||
_description = 'Print Job Action'
|
||||
_name = "printing.action"
|
||||
_description = "Print Job Action"
|
||||
|
||||
@api.model
|
||||
def _available_action_types(self):
|
||||
return [
|
||||
('server', 'Send to Printer'),
|
||||
('client', 'Send to Client'),
|
||||
('user_default', "Use user's defaults"),
|
||||
("server", "Send to Printer"),
|
||||
("client", "Send to Client"),
|
||||
("user_default", "Use user's defaults"),
|
||||
]
|
||||
|
||||
name = fields.Char(required=True)
|
||||
action_type = fields.Selection(
|
||||
selection=_available_action_types,
|
||||
string='Type',
|
||||
required=True,
|
||||
selection=_available_action_types, string="Type", required=True
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user