res_partner.py 694 B

12345678910111213141516171819202122
  1. # -*- coding: utf-8 -*-
  2. from openerp import models, fields, api
  3. import logging
  4. class ResPartner(models.Model):
  5. _inherit = 'res.partner'
  6. customer_categ = fields.Char(string="Categoría")
  7. zone_id = fields.Many2one('res.zone', string='Zona')
  8. check_limit = fields.Float(string="L.C Cheques", default=9999999999)
  9. morosidad = fields.Integer(string="Días de morosidad para bloqueo", default=30)
  10. supplier_type = fields.Selection([
  11. ('local','Local'),
  12. ('exterior','Exterior')],
  13. string="Tipo")
  14. class ResZone(models.Model):
  15. _name = 'res.zone'
  16. name = fields.Char(string="Zona", sequence="0")
  17. description = fields.Char(string="Descripción")