envio_lotes.py 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 envio_lotes(models.Model):
  23. _name = 'envio.lotes'
  24. _description = 'Agrega datos sobre envio por lotes'
  25. access_warning = fields.Char('Access Warning')
  26. access_token = fields.Char('Security token')
  27. tipo = fields.Selection([('1','Factura electrónica'),('2','Factura electrónica de exportación'),('3','Factura electrónica de importación'),('4','Autofactura electrónica'),('5','Nota de crédito electrónica'),('6','Nota de débito electrónica'),('7','Nota de remisión electrónica'),('7','Comprobante de retención electrónico')],'Tipo documento')
  28. numero_lote = fields.Char('Numero lote')
  29. archivo = fields.Char('Archivo')
  30. name = fields.Char('Descripción')
  31. fecha_envio = fields.Datetime(string='Fecha de envío')
  32. dMsgRes = fields.Char('Mensaje de respuesta')
  33. dFecProc = fields.Datetime(string='Fecha de respuesta')
  34. dProtConstLote = fields.Char('Numero lote de respuesta')
  35. dTpoProces = fields.Datetime(string='Tiempo medio de Procesamiento ms')
  36. con_dFecRes = fields.Datetime(string='Fecha de respuesta de la consulta')
  37. con_dCodRes = fields.Char('Código de respuesta de la consulta')
  38. con_dMsgRes = fields.Char('Mensaje de respuesta de consulta')
  39. # invoice_ids = fields.Many2one('Documento electrónico')
  40. invoice_date = fields.Datetime(string='Fecha de factura')
  41. # nro_factura = fields.Many2one('Documento electrónico')
  42. # partner_id = fields.Many2one('Empresa')
  43. # company_id = fields.Many2one('Empresa')
  44. respuesta = fields.Char('Respuesta')
  45. domain_tipo = fields.Char('Domain Tipo')
  46. state = fields.Selection([('femenino','Femenino'),('masculino','Masculino')],'Estado')
  47. con_dFecProc = fields.Datetime(string='Fecha de respuesta de la consulta')
  48. dCodRes = fields.Char('Código de respuesta')