intereses.py
753 Bytes
# -*- coding: utf-8 -*-
#from odoo.exceptions import UserError
from odoo import models, fields, api
#from datetime import datetime
class vnt_interes(models.Model):
_name = 'vnt.interes'
int_cliente = fields.Many2many(
string=u"Clientes",
comodel_name='hgt.instituciones',
relation="interes_clientes",
)
int_todos = fields.Boolean(
string=u"Todos?",
)
int_ritmo = fields.Selection(
string = 'Ritmo',
selection = [
('mensual', 'Mensual'),
('quincenal', 'Quincenal'),
('semanal', 'Semanal'),
('diaria', 'Diaria'),
],
store = True
)
int_plantilla = fields.Text(
string=u"Plantilla de envío",
)