You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
# Copyright 2019 Druidoo - Iván Todorovich # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models, fields
class PosConfig(models.Model): _inherit = 'pos.config'
iface_invoice_mail = fields.Boolean('Send Invoice by Mail')
invoice_mail_template_id = fields.Many2one( 'mail.template', string='Invoice Email Template', domain=[('model', '=', 'account.invoice')], context=lambda self: { 'default_model_id': self.ref('account.model_account_invoice').id, }, default=lambda self: self.env.ref('account.email_template_edi_invoice', False), )
|