mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
corrections for travis tests fix for flake8 errors and travis tests added new sections and rapleced maintainers added USAGE section in readme + bug corection for update of printers changed copyrights updated manifest and fix for case of false ppd
19 lines
496 B
Python
Executable File
19 lines
496 B
Python
Executable File
# Copyright 2019 Compassion
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
from odoo import fields, models
|
|
|
|
|
|
class PrinterOption(models.Model):
|
|
_name = 'printer.option'
|
|
_description = 'Printer Option'
|
|
_rec_name = 'option_key'
|
|
|
|
option_key = fields.Char(required=True, readonly=True)
|
|
printer_id = fields.Many2one(
|
|
comodel_name='printing.printer',
|
|
string='Printer',
|
|
required=True,
|
|
readonly=True,
|
|
ondelete='cascade',
|
|
)
|