error al cancelar

Bug #1308307 reported by eymard
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openerp-mexico-localization
Won't Fix
Undecided
Vauxoo

Bug Description

Este es un bugs que me esta saliendo al querer cancelar
OpenERP Server Error
Client Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/web/http.py", line 204, in dispatch
    response["result"] = method(self, **self.params)
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1132, in call_button
    action = self._call_kw(req, model, method, args, {})
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1120, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/opt/openerp/server/openerp/addons/web/session.py", line 42, in proxy
    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
  File "/opt/openerp/server/openerp/addons/web/session.py", line 30, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/opt/openerp/server/openerp/addons/web/session.py", line 103, in send
    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/web/session.py", line 89, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/opt/openerp/server/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/server/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/server/openerp/osv/osv.py", line 190, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/openerp/server/openerp/osv/osv.py", line 132, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/server/openerp/osv/osv.py", line 199, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/server/openerp/osv/osv.py", line 187, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/server/openerp/addons/l10n_mx_facturae_pac_sf/wizard/wizard_cancel_invoice_pac_sf_v6.py", line 70, in upload_cancel_to_pac
    res = invoice_obj.sf_cancel(cr, uid, context[
AttributeError: 'account.invoice' object has no attribute 'sf_cancel'
Aceptar

Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) wrote :

No se ha podido replicar, por lo tanto no se ha podido solucionar.
Intenta descargar la última revno y quitar todo cambio local (solo si es el caso)

Changed in openerp-mexico-localization:
status: New → Won't Fix
assignee: nobody → Vauxoo (vauxoo)
Revision history for this message
Darío Bahena (dario-mx) wrote :

Dear Moi,

I am having the very same error, and I can reproduce at will. The only thing I changed locally, was a couple of validations to allow me remove invoices and attachements (as I am just testing now, so want to remove everything after done). Disabling my changes does not prevent this defect though.

Another couple of remarks:

1) There is a very similar report, which is a bit older:

https://bugs.launchpad.net/sfsoluciones/+bug/1264624

and is marked as fixed in 2014-01-02, but I did not find any code from Ariel (fix author) modified around that date (latest is from 2013-07-16).

2) Perhaps my understanding of OpenERP is very limited, but the errors says basically that the object being used (account.invoice) does not have that function (well attribute) defined (sf_cancel).

By searching in the code, the only place where sf_cancel is defined is on ir_attachment_facturae.py. Is the class "ir_attachment_facturae_mx" able to become an account.invoice, such that in can be used in this context?

    invoice_obj = self.pool.get('account.invoice')
    res = invoice_obj.sf_cancel(cr, uid, context[
                                    'active_ids'], context=None)

Again, my knowledge of OpenERP is very limited, so my question may be very naive. I am just trying to help in getting this fixed.

Please let me know if there is anything I can collect to research more.

Thanks.

Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) wrote :

Esto es debido a que están usando un wizard de la versión 6.0
Utilicen el nuevo flujo de trabajo (workflow) de la versión 7.0 con las últimas revnos y no tendrán mayores problemas.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.