Error in export invoice

Bug #1285178 reported by David
10
This bug affects 2 people
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-extension...)

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/openerp/osv/osv.py", line 129, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/openerp/osv/osv.py", line 195, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/openerp/osv/osv.py", line 183, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/openerp/addons/base_sale_multichannels/sale.py", line 479, in export_invoices
    self._export_invoice_for_shop(cr, uid, external_session, shop, context=context)
  File "/opt/openerp/openerp/addons/base_sale_multichannels/sale.py", line 489, in _export_invoice_for_shop
    with new_cursor(cr, external_session.logger) as new_cr:
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

Revision history for this message
Juanjo A (juanjoa) wrote :

oe61-stable is affected.

the problem are from this commit & merge:
https://code.launchpad.net/~sebastien.beau/e-commerce-addons/e-commerce-addons-improve-invoice-export/+merge/168289

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'

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.