[6.0.3] Physical inventory - import inventory action broken

Bug #898498 reported by Colm
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Low
OpenERP Publisher's Warranty Team

Bug Description

The Import Inventory action in Physical Inventories is broken and only imports stock moves into to selected location, all outgoing moves are ignored which means the amounts imported will generally always be incorrect.

In stock_fill_inventory.py the search filter only includes 'location_dest_id':
Line 89: move_ids = move_obj.search(cr, uid, [('location_dest_id','=',location),('state','=','done')], context=context)

One way to test the import action is that if the imported inventory is confirmed without any changes there should be no posted moves in the physical inventory.

Related branches

Revision history for this message
Colm (colml) wrote :

I checked the trunk version and this has been partially fixed in trunk revision #5339. Both in and out moves are recorded there.

It still is broken however as any product with move history is included in the import. Any inventory with zero stock should not be imported.

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

This issue has already fixed in trunk on lp:797772.

So I am confirming this for stable 6 only and assigning to OPW team.

Thank you!

Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

Fixed in following branch,
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-381931-ado
Revision ID: <email address hidden>
Revision 5171

Changed in openobject-addons:
status: Confirmed → Fix Committed
Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

Hello,

This bug is still present in stable 6.0 and 6.1
I have fixed this issue in following branches,
 lp:~openerp-dev/openobject-addons/6.0-opw-578768-rha
r5333, Revision ID: <email address hidden>

lp:~openerp-dev/openobject-addons/6.1-opw-578768-rha
6975 Revision ID: <email address hidden>

Thanks!

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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