← Back to team overview

openerp-india team mailing list archive

[Bug 949803] Re: [trunk] POS Open registers wizard fails on obtain next sequence id

 

Hello Kelbethor,

I have checked your Issue, But I did not face any problem at my end. I
have attached the video for your more reference. So would you please
check it and  notify us where you have faced the problem.

Thank you and waiting for your reply!


** Attachment added: "woking fine : open cash registers wizard"
   https://bugs.launchpad.net/openobject-addons/+bug/949803/+attachment/2867323/+files/pos_wizard.ogv

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

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


References