← Back to team overview

openerp-india team mailing list archive

[Bug 997642] Re: [6.1] Services with "Make to stock" procure_method stay in "Running" state

 

Hello Yann,

Thanks for your fast reply!

I have checked both behaviour without project_mrp and with project_mrp.

Faced the inconsistency as you said, If I creates a SO as your scenario (without project_mrp) the procurement goes in to done state.
If I tried the same scenario with project_mrp installed, It will create a procurement with "Running"state which is wrong.

Also I have checked your patch it's solved this issue.

Thanks for contribution!

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
       Status: Incomplete => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 1 (openerp-dev-addons1)

** Summary changed:

- [6.1] Services with "Make to stock" procure_method stay in "Running" state
+ [Trunk/6.1] Services with "Make to stock" procure_method stay in "Running" state

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/997642

Title:
  [Trunk/6.1] Services with "Make to stock" procure_method stay in
  "Running" state

Status in OpenERP Addons (modules):
  Confirmed

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_procurement.py:
  - in action_check_finished, the result in combined from the super one and the new one defined in check_task_done of [projet_mrp]
  - 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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/997642/+subscriptions


References