Error al momento de meterse a la facturas de clientes
hola @agb80 buen dia espero y te encuentres bien
se me esta presentando este error al momento de meterme a las facturas de clientes, esta base de datos la migre a la nueva version CFDI 3.3 es la base de datos de nosotros y pues no tengo acceso a las facturas ya que me sale este error
2017-11-25 05:27:15,767 22613 ERROR PCSYSTEMS_PRODUCCION openerp.http: Exception during JSON request handling. Traceback (most recent call last): File "/opt/rc7_pyerp/parts/server/openerp/http.py", line 538, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/rc7_pyerp/parts/server/openerp/http.py", line 575, in dispatch result = self._call_function(**self.params) File "/opt/rc7_pyerp/parts/server/openerp/http.py", line 311, in _call_function return checked_call(self.db, *args, **kwargs) File "/opt/rc7_pyerp/parts/server/openerp/service/model.py", line 113, in wrapper return f(dbname, *args, **kwargs) File "/opt/rc7_pyerp/parts/server/openerp/http.py", line 308, in checked_call return self.endpoint(*a, **kw) File "/opt/rc7_pyerp/parts/server/openerp/http.py", line 804, in __call__ return self.method(*args, **kw) File "/opt/rc7_pyerp/parts/server/openerp/http.py", line 404, in response_wrap response = f(*args, **kw) File "/opt/rc7_pyerp/parts/server/addons/web/controllers/main.py", line 884, in search_read return self.do_search_read(model, fields, offset, limit, domain, sort) File "/opt/rc7_pyerp/parts/server/addons/web/controllers/main.py", line 905, in do_search_read request.context) File "/opt/rc7_pyerp/parts/server/openerp/http.py", line 909, in proxy result = meth(cr, request.uid, *args, **kw) File "/opt/rc7_pyerp/parts/server/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/opt/rc7_pyerp/parts/server/openerp/models.py", line 5175, in search_read result = self.read(cr, uid, record_ids, fields, context=read_ctx) File "/opt/rc7_pyerp/parts/server/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/opt/rc7_pyerp/parts/server/openerp/models.py", line 3143, in read result = BaseModel.read(records, fields, load=load) File "/opt/rc7_pyerp/parts/server/openerp/api.py", line 239, in wrapper return new_api(self, *args, **kwargs) File "/opt/rc7_pyerp/parts/server/openerp/models.py", line 3189, in read values[name] = field.convert_to_read(record[name], use_name_get) File "/opt/rc7_pyerp/parts/server/openerp/models.py", line 5606, in __getitem__ return self._fields[key].__get__(self, type(self)) File "/opt/rc7_pyerp/parts/server/openerp/fields.py", line 817, in __get__ self.determine_value(record) File "/opt/rc7_pyerp/parts/server/openerp/fields.py", line 919, in determine_value self.compute_value(recs) File "/opt/rc7_pyerp/parts/server/openerp/fields.py", line 875, in compute_value self._compute_value(records) File "/opt/rc7_pyerp/parts/server/openerp/fields.py", line 867, in _compute_value self.compute(records) File "/opt/rc7_pyerp/parts/server/openerp/api.py", line 239, in wrapper return new_api(self, *args, **kwargs) File "/opt/rc7_pyerp/parts/server/openerp/api.py", line 407, in new_api result = [method(rec, *args, **kwargs) for rec in self] File "/opt/rc7_pyerp/parts/l10n_mx_facturae/l10n_mx_facturae/models/account_invoice.py", line 205, in _compute_cfdi_folio_fiscal self.cfdi_folio_fiscal = self.cfdi_id.uuid File "/opt/rc7_pyerp/parts/server/openerp/fields.py", line 817, in __get__ self.determine_value(record) File "/opt/rc7_pyerp/parts/server/openerp/fields.py", line 919, in determine_value self.compute_value(recs) File "/opt/rc7_pyerp/parts/server/openerp/fields.py", line 875, in compute_value self._compute_value(records) File "/opt/rc7_pyerp/parts/server/openerp/fields.py", line 867, in _compute_value self.compute(records) File "/opt/rc7_pyerp/parts/server/openerp/api.py", line 239, in wrapper return new_api(self, *args, **kwargs) File "/opt/rc7_pyerp/parts/server/openerp/api.py", line 407, in new_api result = [method(rec, *args, **kwargs) for rec in self] File "/opt/rc7_pyerp/parts/l10n_mx_facturae/l10n_mx_facturae/models/account_invoice.py", line 200, in _compute_cfdi_id self.cfdi_id = related_attachment File "/opt/rc7_pyerp/parts/server/openerp/fields.py", line 833, in __set__ value = self.convert_to_cache(value, record) File "/opt/rc7_pyerp/parts/server/openerp/fields.py", line 1552, in convert_to_cache raise ValueError("Wrong value for %s: %r" % (self, value)) ValueError: Wrong value for account.invoice.cfdi_id: ir.attachment.facturae.mx(50, 51)
Estos dos IDs que me lanza el log los cheque por base de datos en la tabla ir_attachment_facturae_mx @agb80 y son tanto el PDF y el XML de una factura pero note un detalle que el registro con el id 51 es el XML y en la columna UUID no tiene nada asignado y aparece el estado del XML en signed
y el registro 50 es el PDF y ese si tiene el UUID asignado y la factura de donde provienen estos adjuntos ya aparece pagado con sus respectivos datos de UUID y folio fiscal, no se si ese sea el problema que en el XML no tenga el UUID, te lo comento para ver que me recomiendas hacer trate de asignarle el UUID al regitro con el ID 51 pero me marco un error al hacer el update de que ya existe ese UUID en la tabla y es el que tiene asignado el PDF