eventos_dte.py 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. class eventos_dte(models.Model):
  23. _name = 'eventos.dte'
  24. _description = 'Agrega datos sobre eventos DTE'
  25. access_token = fields.Char('Seguridad Token')
  26. access_url = fields.Char('Portal acceso URL')
  27. access_warning = fields.Text('Access Warning')
  28. agente = fields.Selection([('femenino','Femenino'),('masculino','Masculino')],'Agente')
  29. cdc = fields.Char('CDC.', size=18)
  30. name = fields.Char('Descripción')
  31. cdc_receptor = fields.Char('CDC Receptor', size=18)
  32. dCodRes = fields.Char('Código de respuesta')
  33. dDVRec = fields.Char('Digito Verificador')
  34. dEstRes = fields.Char('Estado de respuesta')
  35. dFecEmi = fields.Datetime(string='Fecha de emisión')
  36. dFecProc = fields.Datetime(string='Fecha de respuesta')
  37. dFecRecep = fields.Datetime(string='Fecha estimada de recepción')
  38. dMsgRes = fields.Char('Mensaje de respuesta')
  39. # dNomRec = fields.Many2one('Nombre o razón social')
  40. dNumFin = fields.Char('Número de final del rango')
  41. dNumIn = fields.Char('Número de inicio del rango')
  42. dProtAut = fields.Char('Código de operación')
  43. dRucRec = fields.Char('RUC del receptor')
  44. dTotalGs = fields.Char('Monto total en Gs.')
  45. display_name = fields.Char('Display Name')
  46. fecha_envio = fields.Datetime(string='Fecha envio')
  47. fecha_firma = fields.Datetime(string='Fecha firma')
  48. has_message = fields.Boolean(string='Has message' ,default = False)
  49. iTipConf = fields.Selection([('femenino','Femenino'),('masculino','Masculino')],'Tipo de conformidad')
  50. iTipRec = fields.Selection([('femenino','Femenino'),('masculino','Masculino')],'Tipo de Receptor')
  51. # invoice_id = fields.Many2one('Documento electrónico')
  52. mOtEve = fields.Char('Motivo del evento')
  53. respuesta = fields.Char('Respuesta')
  54. state = fields.Selection([('femenino','Femenino'),('masculino','Masculino')],'Estado')
  55. # timbrado_id = fields.Many2one('Documento electrónico')
  56. tipo = fields.Selection([('femenino','Femenino'),('masculino','Masculino')],'Tipo')