← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 859649] Re: Save "New" supplier payment failed

 

Hello Ken Chen,

I have checked your issue with latest updated code with trunk and
stable6 both but I didn't face any problem.

Would you please try with updated code and informed us where you faced
problem.

Thanks and waiting for your reply.


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

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/859649

Title:
  Save "New" supplier payment failed

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  I'm using 6.0.2 web Client.

  At Accounting->Supplier Payment, where i create a new supplier payment by clicking the New Button.
  After i input all necessary fields and click the "Save" button then below exception occured.
  ** I even click "Save and Edit" or "Validate" button the result is the same --unable to save payment record

  Traceback (most recent call last):
    File "/opt/openerp/server/bin/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/opt/openerp/server/bin/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/opt/openerp/server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/opt/openerp/server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/opt/openerp/server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/opt/openerp/server/bin/osv/orm.py", line 3692, in create
      self.pool.get(object)._store_set_values(cr, user, ids, fields2, context)
    File "/opt/openerp/server/bin/osv/orm.py", line 3786, in _store_set_values
      result = self._columns[val[0]].get(cr, self, ids, val, 1, context=context)
    File "/opt/openerp/server/bin/osv/fields.py", line 795, in get
      res = self._fnct(cr, obj._table, ids, name, self._arg, context)
    File "/opt/openerp/server/bin/addons/account_voucher/account_voucher.py", line 810, in _compute_balance
      currency_pool = self.pool.get('res.currency')
    File "/opt/openerp/server/bin/sql_db.py", line 78, in wrapper
      return f(self, *args, **kwargs)
    File "/opt/openerp/server/bin/sql_db.py", line 237, in __getattr__
      return getattr(self._obj, name)
  AttributeError: 'cursor' object has no attribute 'pool'

  Thanks a lot

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


Follow ups

References