← Back to team overview

openerp-india team mailing list archive

[Bug 1219675] [NEW] OpenERP bug Stable 7.0: Traceback on Accouting

 

Public bug reported:

Server Traceback (most recent call last):
  File "/home/buggyopenerp/source/7.0/williams/web/addons/web/session.py", line 89, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/buggyopenerp/source/7.0/williams/server/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/buggyopenerp/source/7.0/williams/server/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/home/buggyopenerp/source/7.0/williams/server/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/home/buggyopenerp/source/7.0/williams/server/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/buggyopenerp/source/7.0/williams/server/openerp/osv/osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/buggyopenerp/source/7.0/williams/server/openerp/osv/osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/buggyopenerp/source/7.0/williams/addons/account_voucher/account_voucher.py", line 565, in onchange_journal_voucher
    vals = self.onchange_journal(cr, uid, ids, journal_id, line_ids, tax_id, partner_id, time.strftime('%Y-%m-%d'), price, ttype, company_id, context)
  File "/home/buggyopenerp/source/7.0/williams/addons/account_voucher/account_voucher.py", line 918, in onchange_journal
    if context.get('payment_expected_currency') and currency_id != context.get('payment_expected_currency'):
AttributeError: 'NoneType' object has no attribute 'get'


When creating voucher bug is generate.


thanks,

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
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/1219675

Title:
  OpenERP bug Stable 7.0: Traceback on Accouting

Status in OpenERP Addons (modules):
  New

Bug description:
  Server Traceback (most recent call last):
    File "/home/buggyopenerp/source/7.0/williams/web/addons/web/session.py", line 89, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/home/buggyopenerp/source/7.0/williams/server/openerp/netsvc.py", line 292, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/buggyopenerp/source/7.0/williams/server/openerp/service/web_services.py", line 626, in dispatch
      res = fn(db, uid, *params)
    File "/home/buggyopenerp/source/7.0/williams/server/openerp/osv/osv.py", line 188, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/home/buggyopenerp/source/7.0/williams/server/openerp/osv/osv.py", line 131, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/buggyopenerp/source/7.0/williams/server/openerp/osv/osv.py", line 197, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/buggyopenerp/source/7.0/williams/server/openerp/osv/osv.py", line 185, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/buggyopenerp/source/7.0/williams/addons/account_voucher/account_voucher.py", line 565, in onchange_journal_voucher
      vals = self.onchange_journal(cr, uid, ids, journal_id, line_ids, tax_id, partner_id, time.strftime('%Y-%m-%d'), price, ttype, company_id, context)
    File "/home/buggyopenerp/source/7.0/williams/addons/account_voucher/account_voucher.py", line 918, in onchange_journal
      if context.get('payment_expected_currency') and currency_id != context.get('payment_expected_currency'):
  AttributeError: 'NoneType' object has no attribute 'get'

  
  When creating voucher bug is generate.

  
  thanks,

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


Follow ups

References