Stock split availability module- Run scheduler error

Bug #1440259 reported by Corinne Cobbel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
julius-openobject-addons
New
Undecided
Unassigned

Bug Description

Hi,

We installed your module: Stock split availability and it's very good.
However we have an error message when running the scheduler. (see below the message)
We installed your other module : Stock automatic check availability, thinking it will solve the issue but it's not.
We tested to check avai;ability manually for each delivery order, and some times the same error message appears.
After some checking and more testing we found that apparently it's hapen when products have a negative stock.(But it's maybe not exaustive)
Can you help us to solve this issue?

Thanks

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-7.0_20130909_231057-py2.6.egg/openerp/tools/safe_eval.py", line 241, in safe_eval
    return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
  File "/usr/local/lib/python2.6/dist-packages/openerp-7.0_20130909_231057-py2.6.egg/openerp/osv/orm.py", line 374, in function_proxy
    return attr(self._cr, self._uid, [self._id], *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-7.0_20130909_231057-py2.6.egg/openerp/addons/procurement/procurement.py", line 258, in check_make_to_stock
    ok = ok and self._check_make_to_stock_product(cr, uid, procurement, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-7.0_20130909_231057-py2.6.egg/openerp/addons/procurement/procurement.py", line 362, in _check_make_to_stock_product
    ok = ok and self.pool.get('stock.move').action_assign(cr, uid, [id])
  File "/usr/local/lib/python2.6/dist-packages/openerp-7.0_20130909_231057-py2.6.egg/openerp/addons/stock_split_availability/stock.py", line 268, in action_assign
    self._merge_move(cr, uid, move_id, context=context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-7.0_20130909_231057-py2.6.egg/openerp/addons/stock_split_availability/stock.py", line 208, in _merge_move
    ids_to_remove, context=context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-7.0_20130909_231057-py2.6.egg/openerp/addons/stock_split_availability/stock.py", line 129, in _do_operations_to_merge_move
    prod_to_write_ids = production_obj.search(cr, uid, [
AttributeError: 'NoneType' object has no attribute 'search'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.