MPS creates 0 quantity Procurements

Asked by Grzegorz Grzelak (OpenGLOBE.pl)

I have created fresh db with Manufacturing profile. Installed "stock_planning" module.

I created 3 periods and corresponding Sales forecast for product A:
2009/10 15
2009/11 12
2009/12 20

I purchased 9 pieces of product A

Then I evaluate MPS line for period 2009/11

With following data:
Confirmed In, Confirmed Out =0
Planned Sales = 12
Planned Out = 3 (manually entered)
Expected Out = 3
Planned In = 1 (Manually entered)
Expected In = 1
Stock = 7

I click "Procure Incoming Left" and I got Procurement order with quantity 0 and reservation "Stock > Output".

I am still not sure which field should be taken as quantity for Procurement (probably "Expected In"). I have checked a lot of values combination and always got Procurement 0 quantity with reservation Stock to Output. If any combination of values goes to Procure nothing it shouldn't create Procurement order at all. And for sure this procurement shouldn't create Output moves.

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #448626.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#1

Fixed by revision 3949 <email address hidden>.

Thank you.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#2

Fixed by revision 3909 <email address hidden> in trunk extra addons.

Revision history for this message
Grzegorz Grzelak (OpenGLOBE.pl) (grzegorz-og.pl) said :
#3

The bug is fixed. Procurement is created with quantity from field "Expected In". But Procurement should mean that we Buy or Produce something. And MPS creates Procurement with reservation Stock -> Output what rather means sales. I created a product with Supply Method - Buy. So I think clicking "Procure Incoming Left" in MPS should create Purchase order.

I convert it to Question because I could not understand something but it looks as bug to me.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#4

Hello,

You mean to say, clicking "Procure Incoming Left" in MPS does not create a purchase order?

Provide specific information with example please.

Thank you.

Revision history for this message
Grzegorz Grzelak (OpenGLOBE.pl) (grzegorz-og.pl) said :
#5

Hi Jay:

Example is the same as at the beginning of this question. Now after your fix difference is that Procurement order is created with quantity 1 (from Expected In) but Procurement is still with reservation Stock -> Output. Running this procurement doesn't create purchase order.

I repeat that I don't understand how it should work. And maybe I make some needless noise. But it is very simple example and I don't think I do something wrong.
All the best.

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#6

I have tested this issue at my side but purchase order is generated.
follow the following steps->

1. product is defined with the following listed thing needs to take care before creating :Master Procurement Schedule.
    1. Minimum stock rule is not defined for particular product.
    2. Product has enough stock.
    3. Product does not contain supplier.

2.Needs to run the wizard from : Manufacturing => compute All Scedulars.
3.After doing this check the procurement that it does not have any exception.

Thanks.

Revision history for this message
Grzegorz Grzelak (OpenGLOBE.pl) (grzegorz-og.pl) said :
#7

vra: Have you followed my example?

I am trying to follow your steps but they are not detailed enough and I cannot understand some of them:

vra: 1. Minimum stock rule is not defined for particular product.
GG: I agree, minimum stock rules shouldn't have any influence on MPS as MPS should work independent of any rules.

vra: 2. Product has enough stock.
GG: I cannot understand this point. stock enough for what? Stock should have no influence on MPS procurement.

vra: 3. Product does not contain supplier.
GG: I totally don't understand. How can you create Purchase order when Supplier is unknown.

vra: 2.Needs to run the wizard from : Manufacturing => compute All Scedulars.
GG: thats my doubt. When I click "Procure Incoming left" it creates Procurement with reservation (Stock->Output) and then after Running scheduler system creates another Procurement order and creates Purches order, but please tell me what for is first Procurement which looks like Sales?

vra: 3.After doing this check the procurement that it does not have any exception.
GG: I have never get Procurement without exception. I always get error "No minimum orderpoint rule defined".

I found another bug when I am in current period system doesn't recalculate field stock in MPS. It is recalculated only in future periods.

Please follow my steps and/or describe in details your steps to find the problem.

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#8

hello Grzegorz Grzelak,

I think you misunderstand some points.

1.vra: 3. Product does not contain supplier.
 This means i want to say that you must enter the supplier information in the product object otherwise =>it will not create purchase order as you specified this in the answer.

2.GG: I have never get Procurement without exception. I always get error "No minimum orderpoint rule defined".
=>This error i have produced in myside and the reason is not define the minimum stock rule for the particular product.You can define this with following ways :
   a. Open the particular product object form and by link (Right side) Minimum stock rule.
   b. From menu Stock => Automatic Procurement => Minimum stock rules.

*vra: 2. Product has enough stock.
*GG: I cannot understand this point. stock enough for what? Stock should have no influence on MPS procurement.
=>When you create the Master Procurement Schedule field => Planned Out needs to take care
    If product real stock is 14 then if you given 10 then it will generate procurement with method from stock and in that time purchase order will not created.Similarly if you given 20 then it will generate procurement with method on order and creates purchase order with 6 qty.if product has real stock 0 then it will create purchase order.

 vra: 2.Needs to run the wizard from : Manufacturing => compute All Scedulars.
GG: thats my doubt. When I click "Procure Incoming left" it creates Procurement with reservation (Stock->Output) and then after Running scheduler system creates another Procurement order and creates Purches order, but please tell me what for is first Procurement which looks like Sales?
=>Yes this thing is true.Needs improvement.

I found another bug when I am in current period system doesn't recalculate field stock in MPS. It is recalculated only in future periods.
=> i have tested this thing also but every time it will not calculate field stock.I have tried with future period also so can you provide me more info regarding to this matter?

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#9

Hello,

I found another bug when I am in current period system doesn't recalculate field stock in MPS. It is recalculated only in future periods.
=> I have checked this it will calculate the stock field in the following ways:

    a. if the given period is less then current period => then it will not calculate stock for that.
    b. if the given period is equal to current period => then it will calculate stock field with equal to available real stock.
    c.if the given period is greater then the current period => then it will calculate the stock by following formula :
              Available Quantity + (To Procure - Planned Out)

Thanks.

Revision history for this message
Grzegorz Grzelak (OpenGLOBE.pl) (grzegorz-og.pl) said :
#10

Yes It was some misunderstanding:

1.vra: 3. Product does not contain supplier.
 This means i want to say that you must enter the supplier information in the product object otherwise =>it will not create purchase order as you specified this in the answer.
GG: it was misunderstanding

2.GG: I have never get Procurement without exception. I always get error "No minimum orderpoint rule defined".
=>This error i have produced in myside and the reason is not define the minimum stock rule for the particular product.You can define this with following ways :
   a. Open the particular product object form and by link (Right side) Minimum stock rule.
   b. From menu Stock => Automatic Procurement => Minimum stock rules.
GG: So it looks it works not like a special "Procurement of incoming left" but like usual minimum stock Procurement.

*vra: 2. Product has enough stock.
*GG: I cannot understand this point. stock enough for what? Stock should have no influence on MPS procurement.
=>When you create the Master Procurement Schedule field => Planned Out needs to take care
    If product real stock is 14 then if you given 10 then it will generate procurement with method from stock and in that time purchase order will not created.Similarly if you given 20 then it will generate procurement with method on order and creates purchase order with 6 qty.if product has real stock 0 then it will create purchase order.
GG: From your answer I understand how it works but I think It is wrongly designed. MPS should work independent of any stock quantity and minimum stock rules. If you see in MPS that stock at the end of period will be 5 and you decide you want it to be 7 MPS should buy 2 unconditionally (independent of current stock).

 vra: 2.Needs to run the wizard from : Manufacturing => compute All Scedulars.
GG: thats my doubt. When I click "Procure Incoming left" it creates Procurement with reservation (Stock->Output) and then after Running scheduler system creates another Procurement order and creates Purchase order, but please tell me what for is first Procurement which looks like Sales?
=>Yes this thing is true.Needs improvement.
GG: I think it is because "Procure incoming left" works more like trick not like real functionality. I think it should create Procurement order with Purchase order (or Production order) with reservation Supplier->Stock (or Production->Stock).

Thank you for following checking:
vra: a. if the given period is less then current period => then it will not calculate stock for that.
GG: OK.

vra: b. if the given period is equal to current period => then it will calculate stock field with equal to available real stock.
GG: I think it should work like for c. (like below). When you want to analyse the plan for current month period and you are at the begining of the month you should be able to see simulated stock et and of the month.

    c.if the given period is greater then the current period => then it will calculate the stock by following formula :
              Available Quantity + (To Procure - Planned Out)
GG: Ok but I think it should be counted better. I described it in Blueprint
https://blueprints.launchpad.net/openobject-addons/+spec/stock-planning-ergonomy-and-power
in last point.

I think that according to point marked by you "Needs improvement" (at least) I can report it as a bug again. Do you agree?

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#11

Hello,

Yes i agree.
You can report a separate bug for that.

Thanks.

Can you help with this problem?

Provide an answer of your own, or ask Grzegorz Grzelak (OpenGLOBE.pl) for more information if necessary.

To post a message you must log in.