*** This bug is a duplicate of bug 947355 ***
    https://bugs.launchpad.net/bugs/947355

** This bug has been marked a duplicate of bug 947355
   [6.1, account] reconciliation _defaults function for 'name' needs to be 
called with context argument

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

Title:
  [trunk] POS Open registers wizard fails on obtain next sequence id

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  Traceback:

  Server Traceback (most recent call last):
    File "/home/openerp/production-server/web/addons/web/common/http.py", line 
592, in send
      result = openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/home/openerp/production-server/server/openerp/netsvc.py", line 360, 
in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File 
"/home/openerp/production-server/server/openerp/service/web_services.py", line 
572, in dispatch
      res = fn(db, uid, *params)
    File "/home/openerp/production-server/server/openerp/osv/osv.py", line 167, 
in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/home/openerp/production-server/server/openerp/osv/osv.py", line 121, 
in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/openerp/production-server/server/openerp/osv/osv.py", line 176, 
in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/openerp/production-server/server/openerp/osv/osv.py", line 164, 
in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File 
"/home/openerp/production-server/addons/point_of_sale/wizard/pos_open_statement.py",
 line 55, in open_statement
      number = sequence_obj.next_by_id(cr, uid, journal.sequence_id.id)
    File 
"/home/openerp/production-server/server/openerp/addons/base/ir/ir_sequence.py", 
line 216, in next_by_id
      return self._next(cr, uid, ids, context)
    File "/home/openerp/production-server/addons/account/ir_sequence.py", line 
53, in _next
      if line.fiscalyear_id.id == context.get('fiscalyear_id'):
  AttributeError: 'NoneType' object has no attribute 'get'

  Steps to reproduce: Launch open cash registers wizard from pos backend
  or point of sale screen, then open...

  Maybe changing line 55:
     number = sequence_obj.next_by_id(cr, uid, journal.sequence_id.id)
  with:
    number = sequence_obj.next_by_id(cr, uid, 
journal.sequence_id.id,context=context)
  Should work

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

_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help   : https://help.launchpad.net/ListHelp

Reply via email to