[Trunk/6.1] Services with "Make to stock" procure_method stay in "Running" state
Bug #997642 reported by
Yann Papouin
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Addons Team 1 | ||
OpenERP Community Backports (Addons) |
New
|
Undecided
|
Unassigned | ||
6.1 |
Fix Committed
|
Medium
|
Yann Papouin |
Bug Description
If you install module [projet_mrp] you will see that all services with the "Make to stock" procure_method stay in "Running" state.
That's a bug in project_
- in action_
- in check_task_done, all services are parsed with the task check condition, that MUST NOT be the case for services with the "Make to stock" procure method that will always return FALSE.
This is fixed in the patch attached.
Note that a message ('from project: task created.') is also set when the task is created to help user to understand why it stay in a running state.
Related branches
lp://staging/~openerp-dev/openobject-addons/trunk-bug-997642-amb
- OpenERP Core Team: Pending requested
-
Diff: 22 lines (+3/-2)1 file modifiedproject_mrp/project_procurement.py (+3/-2)
lp://staging/~yann-papouin/openobject-addons/6.1-bug-997642-fix-services-make-to-stock
Ready for review
for merging
into
lp://staging/openobject-addons/6.1
- OpenERP Core Team: Pending requested
-
Diff: 33 lines (+6/-3)1 file modifiedproject_mrp/project_procurement.py (+6/-3)
lp://staging/~yann-papouin/ocb-addons/6.1-bug-997642-fix-services-make-to-stock
- Yannick Vaucher @ Camptocamp: Approve (code review, no tests)
- Holger Brunn (Therp): Approve (code review)
-
Diff: 33 lines (+6/-3)1 file modifiedproject_mrp/project_procurement.py (+6/-3)
Changed in openobject-addons: | |
status: | Confirmed → Fix Committed |
To post a comment you must log in.
Hello Yann,
I have completely read your bur report but I am not understand why you need a service type product as a "Make to stock".
As per my knowledge always service type product are "Make to Order". How can you stock your service ;-) I am not understand this.
So would you please provide proper real time use case where we used a service product as a "Make to stock" (procure method).
So If service product are always "Make to order" then it's fine, If we have select "Make to stock" procure method for service type product and it will return False.
Thanks and waiting for your reply!