← Back to team overview

openerp-india team mailing list archive

[Bug 1112595] Re: Refunding an invoice to create a new draft invoice fails with traceback

 

** Changed in: openobject-addons
   Importance: Undecided => Medium

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 3 (openerp-dev-addons3)

** Summary changed:

- Refunding an invoice to create a new draft invoice fails with traceback
+ [trunk/7.0]Refunding an invoice to create a new draft invoice fails with traceback

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1112595

Title:
  [trunk/7.0]Refunding an invoice to create a new draft invoice fails
  with traceback

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  I can reproduce this issue with the 7.0 demo at openerp.com.

  - Create a customer invoice
  - Validate the invoice
  - Click "Refund Invoice"
  - Select "Modify: create refund, reconcile and create new draft invoice"
  - Click "Create Refund"

  The following error is displayed:


  OpenERP Server Error

  Client Traceback (most recent call last):
    File "/home/odoo/source/web/addons/web/http.py", line 195, in dispatch
      response["result"] = method(self, **self.params)
    File "/home/odoo/source/web/addons/web/controllers/main.py", line 1082, in call_button
      action = self._call_kw(req, model, method, args, {})
    File "/home/odoo/source/web/addons/web/controllers/main.py", line 1070, in _call_kw
      return getattr(req.session.model(model), method)(*args, **kwargs)
    File "/home/odoo/source/web/addons/web/session.py", line 43, in proxy
      result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
    File "/home/odoo/source/web/addons/web/session.py", line 31, in proxy_method
      result = self.session.send(self.service_name, method, *args)
    File "/home/odoo/source/web/addons/web/session.py", line 104, in send
      raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

  
  Server Traceback (most recent call last):
    File "/home/odoo/source/web/addons/web/session.py", line 90, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/home/odoo/source/server/openerp/netsvc.py", line 289, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/odoo/source/server/openerp/service/web_services.py", line 614, in dispatch
      res = fn(db, uid, *params)
    File "/home/odoo/source/server/openerp/osv/osv.py", line 169, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/home/odoo/source/server/openerp/osv/osv.py", line 123, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/odoo/source/server/openerp/osv/osv.py", line 179, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/odoo/source/server/openerp/osv/osv.py", line 166, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/odoo/source/addons/account/wizard/account_invoice_refund.py", line 223, in invoice_refund
      return self.compute_refund(cr, uid, ids, data_refund, context=context)
    File "/home/odoo/source/addons/account/wizard/account_invoice_refund.py", line 187, in compute_refund
      invoice_lines = inv_obj._refund_cleanup_lines(cr, uid, invoice_lines)
    File "/home/odoo/source/addons/account/account_invoice.py", line 1151, in _refund_cleanup_lines
      for field in line._all_columns.keys():
  AttributeError: 'dict' object has no attribute '_all_columns'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1112595/+subscriptions


References