Skip to content

Instantly share code, notes, and snippets.

@erickgnavar
Created July 21, 2015 20:02
Show Gist options
  • Save erickgnavar/69876d65ace7c909564f to your computer and use it in GitHub Desktop.
Save erickgnavar/69876d65ace7c909564f to your computer and use it in GitHub Desktop.
# 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