Merge lp:~openerp-dev/openobject-addons/trunk-bug-1081193-hip into lp:openobject-addons

Proposed by Hiral Patel (OpenERP)
Status: Merged
Merged at revision: 8568
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1081193-hip
Merge into: lp:openobject-addons
Diff against target: 11 lines (+2/-0)
1 file modified
stock/product.py (+2/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1081193-hip
Reviewer Review Type Date Requested Status
Ajay Patel (OpenERP) (community) Approve
Christophe Matthieu (OpenERP) (community) Needs Information
Review via email: mp+139389@code.launchpad.net

Description of the change

Hello,

Steps to reproduce this bug:
1. create a company(X) without any parent company
2. create a user for this company
3. Warehouse module is needed to be installed.
4. Then login with this user and click on product menu. Error will be generated.

Thanks,
hip

To post a comment you must log in.
Revision history for this message
Christophe Matthieu (OpenERP) (chm-openerp) wrote :

Hi,
With this steps, I can't reproduce this bug. Could you give me more information or a video ?
Thanks.

review: Needs Information
Revision history for this message
Hiral Patel (OpenERP) (hip-openerp) wrote :

Hello,

I have attached the video to reproduce this bug.

Thanks.

Revision history for this message
Ajay Patel (OpenERP) (ajay-openerp) wrote :

seems ok

Thanks,
Amit

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/product.py'
2--- stock/product.py 2012-12-18 22:50:15 +0000
3+++ stock/product.py 2013-01-31 12:04:30 +0000
4@@ -235,6 +235,8 @@
5 else:
6 location_ids = []
7 wids = warehouse_obj.search(cr, uid, [], context=context)
8+ if not wids:
9+ return res
10 for w in warehouse_obj.browse(cr, uid, wids, context=context):
11 location_ids.append(w.lot_stock_id.id)
12

Subscribers

People subscribed via source and target branches

to all changes: