Error in export invoice
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
e-commerce-addons |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using OCB branch for server and addons, and te latest magentoerpconnect connector whih respective dependencies (e-commerce, openobject-
I'm getting this error when I try to export the invoice to magento:
openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
File "/opt/openerp/
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/
self.
File "/opt/openerp/
with new_cursor(cr, external_
NameError: global name 'new_cursor' is not defined
2014-02-26 13:56:16,336 846 ERROR ? openerp.netsvc: global name 'new_cursor' is not defined
oe61-stable is affected.
the problem are from this commit & merge: /code.launchpad .net/~sebastien .beau/e- commerce- addons/ e-commerce- addons- improve- invoice- export/ +merge/ 168289
https:/
If you revert this commit, export invoices are ok, but without the improvement:
Cite: 'This avoid in case of error to send twice the invoice'