Created
July 21, 2015 20:02
-
-
Save erickgnavar/69876d65ace7c909564f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import re | |
from openerp import models, fields, api | |
from openerp.exceptions import ValidationError | |
class CustomerType(models.Model): | |
_name = 'hacom.customer.type' | |
name = fields.Char('Nombre', required=True) | |
description = fields.Text(u'Descripción') | |
attention_time = fields.Integer(u'Tiempo de atención (horas)') | |
class Partner(models.Model): | |
_inherit = 'res.partner' | |
contact_type = fields.Selection(selection=[ | |
('purchase', 'Cobranza'), | |
('legal', 'Representante Legal'), | |
('support', 'Soporte Técnico'), | |
('user', 'Usuario Sistema') | |
], string='Tipo') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment