kalenislims/lims_account_invoice/configuration.py
Sebastián Marró 8d566322e0 Update to 5.2
2019-07-23 18:27:33 -03:00

29 lines
883 B
Python

# -*- coding: utf-8 -*-
# This file is part of lims_account_invoice module for Tryton.
# The COPYRIGHT file at the top level of this repository contains
# the full copyright notices and license terms.
from trytond.model import fields
from trytond.pool import PoolMeta
__all__ = ['Configuration', 'Cron']
class Configuration(metaclass=PoolMeta):
__name__ = 'lims.configuration'
mail_send_invoice_subject = fields.Char('Email subject of Invoice report',
help="In the text will be added suffix with the invoice report number")
mail_send_invoice_body = fields.Text('Email body of Invoice report')
class Cron(metaclass=PoolMeta):
__name__ = 'ir.cron'
@classmethod
def __setup__(cls):
super().__setup__()
cls.method.selection.extend([
('account.invoice|cron_send_invoice', "Cron Send Of Invoice"),
])