Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
10473 Vistas

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

Avatar
Descartar
Mejor respuesta

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

Avatar
Descartar
Autor Mejor respuesta

Yes I'm using third party modules.

Avatar
Descartar
Mejor respuesta

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

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
feb 23
3495
0
feb 22
1718
1
sept 21
1689
1
oct 18
3176
5
jun 15
3704