Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

TypeError: argument of type 'bool' is not iterable

By
Yannick Dessertenne
on 4/29/15, 4:23 AM 689 views

Hi, I have an error with the Version 8.0-20150225


In the manufacturing part, I dot this error when I try to produce an Manufacturing order.

I have the same error if I try to consume products line by line in the MO.

Any idea where it can come from ? 

Following are the error detail:


Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 530, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 567, in dispatch
    result = self._call_function(**self.params)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 303, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 300, in checked_call
    return self.endpoint(*a, **kw)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 796, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 396, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 953, in call_button
    action = self._call_kw(model, method, args, {})
  File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 941, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/addons/mrp/wizard/mrp_product_produce.py", line 123, in do_produce
    data.product_qty, data.mode, data, context=context)
  File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/addons/mrp/mrp.py", line 936, in action_produce
    location_id=produce_product.location_id.id, restrict_lot_id=lot_id, context=context)
  File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/addons/mrp/stock.py", line 197, in action_consume
    self.action_done(cr, uid, ids2, context=context)
  File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/addons/magento_openerp_stock/magento_openerp_stock.py", line 51, in action_done
    if 'OUT' in data.picking_id.name:
TypeError: argument of type 'bool' is not iterable

0

Pawan

--Pawan--
1267
| 4 3 5
Hyderabad, India
--Pawan--


Pawan
On 8/24/15, 5:32 AM

Yannick,

Please check 'name' field which you are trying to access of your 'picking_id' object.

This error is coming because, your object's(data) picking_id does not have any value in 'name' field.

you can verify it by using print statement and check in terminal, It must show False.

Hope it helps

0
Yannick Dessertenne
On 4/29/15, 4:53 AM

Yes I'm using third party modules.

0
Bipin rathod
On 4/29/15, 4:48 AM

First answer me Are you using third party modules ? because of magento_openerp_stock module given error. and there is no picking.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/29/15, 4:23 AM
Seen: 689 times
Last updated: 8/24/15, 5:32 AM