orderpoint
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 2 |
Bug Description
There are a couple of problems with orderpoints and the scheduler.
The first - there seems to be an issue that automatic orderpoints are not processed when run by non admin user, however this may be just my configuration - feel free to test and confirm if this is the case. I notice a client error around access rights, so I think it may be that the scheduler trys to compute all procurements, but because the user does not have rights to all companies it fails.
This next one is really the one I need looked at. When computing scheduler / orderpoints as admin user, all of the automatic orderpoints are assigned to company 1, instead of the company who the order point belongs to. So basically we end up with draft PO's going to the wrong warehouse and company.
To test. Create 2 companies, a parent and a child. Create warehouses and stock locations for each and a user for both. Define a product without an associated company (so it appears in both companies) with a supplier with no associated company, create 2 minimum orderpoints such that it will be triggered on the child company and parent company, and then to test case 1 - Compute Schedulers as child user and in my case nothing happens (although logs show an error relating to stock move access rights). Then to test my more important case 2, compute schedulers as admin user, and check the resulting Draft PO's. They are all to the parent.
Now I did some further tests, adding company_id to the procurement object creation and this partially fixed the issue. Line 265 of schedulers.py in procurement. Now the resulting purchase orders are created against the correct company, however it still references the wrong warehouse, but the right location. There is no warehouse_id column in procurement_order so there may be an issue in the creation of PO's from procurement orders that it picks up the wrong warehouse, based on the uid.
Related branches
- Rucha (Open ERP) (community): Approve
- Rohan Nayani(Open ERP) (community): Needs Resubmitting
- qdp (OpenERP): Pending requested
-
Diff: 109 lines (+14/-15)3 files modifiedprocurement/procurement.py (+3/-4)
procurement/schedulers.py (+5/-9)
purchase/purchase.py (+6/-2)
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Hello,
I am confirming this issue because I have faced the same problem as follows.
1) The company,warehouse did not pass proper in PO.
2) And the another user does not run the "OrderPoint" and I have faced the traceback on this.
For more information I have attached a video So would you please check it.
Thanks.