← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 800931] Re: Procurement Exception Crash

 

[Expired for OpenERP Addons because there has been no activity for 60
days.]

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

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

Title:
  Procurement Exception Crash

Status in OpenERP Modules (addons):
  Expired

Bug description:
  OpenERP
  Damage Control Engineering LLC (dcmrp) Gregg Stock

      Skip to navigation [n]
      Skip to content [c]
      Skip to footer [f]

      Home
      0
      Preferences
      About
      Help

  Logout

      Procurement Exceptions
      Products
      Purchase Orders
      Receive Products

      Sales
      Purchases
      Warehouse
      Manufacturing
      Accounting

      Warehouse Management
      	Incoming Shipments
      	Internal Moves
      	Delivery Orders
      Products Moves
      Traceability
      Inventory Control
      Schedulers
      Product
      Reporting
      Configuration


  Procurement Orders represent the need for a certain quantity of products, at a given time, in a given location. Sales Orders are one typical source of Procurement Orders (but these are distinct documents). Depending on the procurement parameters and the product configuration, the procurement engine will attempt to satisfy the need by reserving products from stock, ordering products from a supplier, or passing a manufacturing order, etc. A Procurement Exception occurs when the system cannot find a way to fulfill a procurement. Some exceptions will resolve themselves automatically, but others require manual intervention (those are identified by a specific error message).
  Disable all Tips Hide this Tip

      tree
      form
      graph
      calendar
      gantt
      diagram

  Search: Procurement Exceptions Help
  	
  	
  	
  	
  	
  Source Document ? :
  	
  Product :
  Search
  	
  Scheduled date :
  Select 	- 	Select
  	
  State ? :
  Group By
  	
  Procurement Lines
  	[loading...] 		

  << First < Previous 1 - 2 of 2 Next > Last >>
  	
  	Scheduled date 	Source Document 	Product 	Quantity 	UOM 	Procurement Method 	State 	Latest error 	
  	edit record 	06/03/2011 	:MO/00167 	[D041-5402] Diode Rectifier 200V 3A DO-41 	250.00 	EA 	from stock 	Exception 	Not enough stock. 	[Delete]
  	edit record 	06/03/2011 	:MO/00167 	[S100-M022] Switch Foot Momentary 	500.00 	EA 	from stock 	Exception 	Not enough stock. 	[Delete]
    	  	  	  	  	  	  	  	  	  	 
    	  	  	  	  	  	  	  	  	  	 
    	  	  	  	  	  	  	  	  	  	 

  << First < Previous 1 - 2 of 2 Next > Last >>
  	Toggle

  socket://gregg@localhost:8070 en_US

  Powered by openerp.com
   
   
  <type 'exceptions.TypeError'>	Python 2.6.5: /usr/bin/python
  Wed Jun 22 16:25:54 2011

  A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
   /usr/lib/pymodules/python2.6/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/openerp/listgrid/get')
    604                     if self.handler:
    605                         self.stage = 'handler'
    606                         cherrypy.response.body = self.handler()
    607                     
    608                     self.stage = 'before_finalize'
  global cherrypy = <module 'cherrypy' from '/usr/lib/pymodules/python2.6/cherrypy/__init__.pyc'>, cherrypy.response = <cherrypy._ThreadLocalProxy object>, cherrypy.response.body = [], self = <cherrypy._cprequest.Request object>, self.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
   /usr/lib/pymodules/python2.6/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
     23     def __call__(self):
     24         try:
     25             return self.callable(*self.args, **self.kwargs)
     26         except TypeError, x:
     27             test_callable_spec(self.callable, self.args, self.kwargs)
  self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable = <bound method Root.default of <openobject.controllers._root.Root object>>, self.args = ('openerp', 'listgrid', 'get'), self.kwargs = {'_terp_action_id': '329', '_terp_concurrency_info': "('procurement.order,1341', '2011-06-03 10:44:02.700652')", '_terp_context': 'undefined', '_terp_count': '2', '_terp_domain': '[]', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<openobject.controllers._root.Root object>, 'openerp', 'listgrid', 'get'), **kw={'_terp_action_id': '329', '_terp_concurrency_info': "('procurement.order,1341', '2011-06-03 10:44:02.700652')", '_terp_context': 'undefined', '_terp_count': '2', '_terp_domain': '[]', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...})
    180                 raise cherrypy.HTTPError(405)
    181 
    182             res = func(*args, **kw)
    183             if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
    184                 cherrypy.response.headers['Content-Type'] = 'text/javascript'
  global res = '/usr/local/lib/python2.6/dist-packages/openerp_w....6.egg/openobject/controllers/templates/base.mako', func = <function default>, args = (<openobject.controllers._root.Root object>, 'openerp', 'listgrid', 'get'), kw = {'_terp_action_id': '329', '_terp_concurrency_info': "('procurement.order,1341', '2011-06-03 10:44:02.700652')", '_terp_context': 'undefined', '_terp_count': '2', '_terp_domain': '[]', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/openobject/controllers/_root.py in default(self=<openobject.controllers._root.Root object>, *args=('openerp', 'listgrid', 'get'), **kw={'_terp_action_id': '329', '_terp_concurrency_info': "('procurement.order,1341', '2011-06-03 10:44:02.700652')", '_terp_context': 'undefined', '_terp_count': '2', '_terp_domain': '[]', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...})
     88             request.handler = cherrypy.NotFound()
     89 
     90         return request.handler()
     91 
     92     def find_handler(self):
  request = <cherrypy._ThreadLocalProxy object>, request.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
   /usr/lib/pymodules/python2.6/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
     23     def __call__(self):
     24         try:
     25             return self.callable(*self.args, **self.kwargs)
     26         except TypeError, x:
     27             test_callable_spec(self.callable, self.args, self.kwargs)
  self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable = <function get>, self.args = (), self.kwargs = {'_terp_action_id': '329', '_terp_concurrency_info': "('procurement.order,1341', '2011-06-03 10:44:02.700652')", '_terp_context': 'undefined', '_terp_count': '2', '_terp_domain': '[]', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/addons/openerp/controllers/utils.py in wrapper(*args=(), **kw={'_terp_action_id': '329', '_terp_concurrency_info': "('procurement.order,1341', '2011-06-03 10:44:02.700652')", '_terp_context': 'undefined', '_terp_count': '2', '_terp_domain': '[]', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...})
    110             # User is logged in; allow access
    111             clear_login_fields(kw)
    112             return fn(*args, **kw)
    113         else:
    114             action = kw.get('login_action', '')
  fn = <bound method List.get of <openerp.controllers.listgrid.List object>>, args = (), kw = {'_terp_action_id': '329', '_terp_concurrency_info': "('procurement.order,1341', '2011-06-03 10:44:02.700652')", '_terp_context': 'undefined', '_terp_count': '2', '_terp_domain': '[]', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.listgrid.List object>,), **kw={'_terp_action_id': '329', '_terp_concurrency_info': "('procurement.order,1341', '2011-06-03 10:44:02.700652')", '_terp_context': 'undefined', '_terp_count': '2', '_terp_domain': '[]', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...})
    180                 raise cherrypy.HTTPError(405)
    181 
    182             res = func(*args, **kw)
    183             if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
    184                 cherrypy.response.headers['Content-Type'] = 'text/javascript'
  global res = '/usr/local/lib/python2.6/dist-packages/openerp_w....6.egg/openobject/controllers/templates/base.mako', func = <function get>, args = (<openerp.controllers.listgrid.List object>,), kw = {'_terp_action_id': '329', '_terp_concurrency_info': "('procurement.order,1341', '2011-06-03 10:44:02.700652')", '_terp_context': 'undefined', '_terp_count': '2', '_terp_domain': '[]', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/addons/openerp/controllers/listgrid.py in get(self=<openerp.controllers.listgrid.List object>, **kw={'_terp_action_id': '329', '_terp_concurrency_info': "('procurement.order,1341', '2011-06-03 10:44:02.700652')", '_terp_context': 'undefined', '_terp_count': '2', '_terp_domain': '[]', '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', ...})
    278             frm = res['form']
    279         else:
    280             frm = form.Form().create_form(params)
    281 
    282         if params.view_type == 'graph':
  frm undefined, global form = <module 'openerp.controllers.form' from '/usr/lo...2-py2.6.egg/addons/openerp/controllers/form.pyc'>, form.Form = <class 'openerp.controllers.form.Form'>, ).create_form = <unbound method Form.create_form>, params = {'_terp_offset': 0, '_terp_filters_context': '',...ocurement Exceptions', '_terp_filter_domain': []}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/addons/openerp/controllers/form.py in create_form(self=<openerp.controllers.form.Form object>, params={'_terp_offset': 0, '_terp_filters_context': '',...ocurement Exceptions', '_terp_filter_domain': []}, tg_errors=None)
    184         params.view_type = params.view_type or params.view_mode[0]
    185 
    186         return tw.form_view.ViewForm(params, name="view_form", action="/openerp/form/save")
    187 
    188     @expose(template="/openerp/controllers/templates/form.mako")
  global tw = <module 'openerp.widgets' from '/usr/local/lib/p...2-py2.6.egg/addons/openerp/widgets/__init__.pyc'>, tw.form_view = <module 'openerp.widgets.form_view' from '/usr/l...-py2.6.egg/addons/openerp/widgets/form_view.pyc'>, tw.form_view.ViewForm = <class 'openerp.widgets.form_view.ViewForm'>, params = {'_terp_offset': 0, '_terp_filters_context': '',...ocurement Exceptions', '_terp_filter_domain': []}, name undefined, action undefined
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/addons/openerp/widgets/form_view.py in __init__(self=ViewForm, params={'_terp_offset': 0, '_terp_filters_context': '',...ocurement Exceptions', '_terp_filter_domain': []}, **kw={'action': '/openerp/form/save', 'name': 'view_form'})
     79             self.search = Search(source=params.source, model=params.model, domain=search_param, context=params.context, values=params.search_data or {},
     80                                  filter_domain=params.filter_domain or [], search_view=params.search_view, group_by_ctx=params.group_by_ctx or [],
     81                                  **{'clear': params.get('_terp_clear'), 'search_view_id': search_view_id})
     82 
     83             cherrypy.request.custom_search_domain = self.search.listof_domain or []
  params = {'_terp_offset': 0, '_terp_filters_context': '',...ocurement Exceptions', '_terp_filter_domain': []}, params.get = <built-in method get of TinyDict object>, search_view_id = False
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/addons/openerp/widgets/search.py in __init__(self=Search, source='_terp_list', model='procurement.order', domain='undefined', context='undefined', values={}, filter_domain=[], search_view=None, group_by_ctx=[], **kw={'clear': None, 'search_view_id': False})
    211             values = {}
    212 
    213         ctx = dict(rpc.session.context, **self.context)
    214         if not self.groupby and (values and values.get('group_by_ctx')):
    215             self.groupby = values['group_by_ctx']
  ctx undefined, builtin dict = <type 'dict'>, global rpc = <module 'openerp.utils.rpc' from '/usr/local/lib...eb-6.0.2-py2.6.egg/addons/openerp/utils/rpc.pyc'>, rpc.session = <openerp.utils.rpc.RPCSession object>, rpc.session.context = {'client': 'web', 'lang': u'en_US', 'tz': u'America/Los_Angeles'}, self = Search, self.context = 'undefined'

  <type 'exceptions.TypeError'>: type object argument after ** must be a mapping, not str
        args = ('type object argument after ** must be a mapping, not str',)
        message = 'type object argument after ** must be a mapping, not str'
  Loading..

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


References