mirror of
https://github.com/Kalenis/kalenislims.git
synced 2023-12-14 07:13:04 +01:00
28 lines
883 B
Python
28 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"),
|
|
])
|