[stock] error when manually creating stock.move
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Vinay Rana (OpenERP) |
Bug Description
Error happens when manually creating stock.move to the chained location ("Automatic Move" and "Fixed Location" selected for the Location posting to ) and there is no stock.picking object attached to the original move. As there should be new additional stock movement created, it tries to do it, and tries to create another picking, which may not exist (field picking_id is not mandatory). So the error happens.
OpenERP-Client Version : 5.0.10
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/usr/lib/
result = LocalService(
File "/usr/lib/
return getattr(self, method)(*params)
File "/usr/lib/
res = service.execute(db, uid, object, method, *args)
File "/usr/lib/
return f(self, dbname, *args, **kwargs)
File "/usr/lib/
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/
create_
File "/usr/lib/
'address_id': picking.
AttributeError: 'bool' object has no attribute 'id'
As there is no picking_id, the field is set to False...
Additional information:
When "Automatic No Step Added" is selected for Location we are posting to, there is no problem as system tries to change the original stock.move object, thus not creating picking.
Assuming, that picking_id is not a mandatory field, this is a bug, because if there is no picking it should not try to create another one for new movement to chained location.
Related branches
Changed in openobject-addons: | |
status: | New → Confirmed |
assignee: | nobody → vra (openerp) (vra-openerp) |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Hello Sraps,
Can you please check the attached patch and notify me?
Thanks.