res_company.py 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # -*- coding: utf-8 -*-
  2. ##############################################################################
  3. #
  4. # OpenERP, Open Source Management Solution
  5. # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
  6. #
  7. # This program is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU Affero General Public License as
  9. # published by the Free Software Foundation, either version 3 of the
  10. # License, or (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU Affero General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Affero General Public License
  18. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. #
  20. ##############################################################################
  21. from openerp import models, fields, tools, api, _
  22. from openerp.exceptions import ValidationError
  23. class res_company(models.Model):
  24. _name = 'res.company'
  25. _inherit = 'res.company'
  26. _description = 'Add extra data to res company'
  27. codigo_actividad = fields.Char('Código de actividad')
  28. codigo_establecimiento = fields.Char('Código establecimiento', size=2)
  29. establecimiento = fields.Char('Establecimiento')
  30. punto_expedicion = fields.Char('Punto de expedición de comprobantes', size=3)
  31. imputa_ire = fields.Boolean(string='Imputa al IRE' ,default = False)
  32. imputa_irp_isp = fields.Boolean(string='Imputa al IRP-RSP' ,default = False)
  33. imputa_iva = fields.Boolean(string='Imputa al IVA' ,default = False)
  34. dv = fields.Char('Digito Verificador', size=2)
  35. dv_representante = fields.Char('DV del representante legal', size=2)
  36. representante_legal = fields.Char('Representante legal')
  37. actividad = fields.Char('Actividad Comercial')
  38. regimen = fields.Selection([('1','B2B'),('2','B2C'),('3','B2G'),('4','B2F')],'Tipo Régimen')
  39. server_prueba = fields.Char('Servidor de Prueba')
  40. idcsc = fields.Char('IDCSC')
  41. cdc = fields.Char('CDC')