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.
 
 

29 lines
1019 B

# -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import UserError, ValidationError
from psycopg2 import sql, DatabaseError
from odoo.tools.safe_eval import safe_eval, datetime
from werkzeug import utils
class opendons_template_rf(models.Model):
_name = 'opendons.template_rf'
_description = 'manage rf html template'
name=fields.Char('name')
description=fields.Text('description')
active=fields.Boolean('active')
html_content=fields.Html('Html content')
type_rf=fields.Selection(string='type',selection=[('generic','Generic'),('affectation','Affectation'),('high amount','High amount')])
# class opendons_type_template_rf(models.Model):
# _name = 'opendons.type_template_rf'
# _description = 'manage type rf template'
# name=fields.Char('name')
# type_rf=fields.Selection(string='type',selection=[('generic','Generic'),('affectation','Affectation'),('high amount','High amount')])