Procurement method can not be changed on bill of materials

Bug #453087 reported by Ana Juaristi Olalde
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Vinay Rana (OpenERP)

Bug Description

Define a product "piece1" with procurement make to stock.

Define bill of materials of another product "final product" using piece1 as part of bill of materials of "final product".

On general information tab on Bom structure, you could see the procurement method for piece1 is make to stock.

It's imposible changing this value to make to order.

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

*On general information tab on Bom structure, you could see the procurement method for piece1 is make to stock.
  To see the method you have to first change the supply method into produce and then only you will be see the value changes (from product form).

Hope this will solve your problem.
thanks.

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote : Re: [Bug 453087] Re: Procurement method can not be changed on bill of materials

It's not the problem... Once I have generated the order, there is no way to
change it. It's like procurement method on sales order. When I create the
order, since it is draft mode I can change procurement method for each line,
without having to touch the default procurement method on product form.

That's not possible once you have generated the manufacturing order for
product. So... I don't understand how to solve this problem by now.

Thank you very much for you replay.

2009/10/20 vra (openerp) <email address hidden>

> *On general information tab on Bom structure, you could see the procurement
> method for piece1 is make to stock.
> To see the method you have to first change the supply method into produce
> and then only you will be see the value changes (from product form).
>
>
> Hope this will solve your problem.
> thanks.
>
> --
> Procurement method can not be changed on bill of materials
> https://bugs.launchpad.net/bugs/453087
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in OpenObject Addons Modules: New
>
> Bug description:
> Define a product "piece1" with procurement make to stock.
>
> Define bill of materials of another product "final product" using piece1 as
> part of bill of materials of "final product".
>
> On general information tab on Bom structure, you could see the procurement
> method for piece1 is make to stock.
>
> It's imposible changing this value to make to order.
>

--
Ana Juaristi Olalde
Consultor Freelance OpenERP
www.anajuaristi.com
www.openerpsite.com
www.avanzosc.com
677 93 42 59 - 943 85 06 25

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

Hello,

If You want to change the procurement method from procurement order for that you need to first cancel those procurement and then make duplicate of that procurement order so now it will allow you to change the procurement method from order to stock or stock to order.

thanks.

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :

I think I'm not explaining right.
I'm speaking about after you create the manufacturing order. Please create
the manufacturing order and try to change the procurement method for
planified materials on second tab. It's imposible. So if you execute
scheduler on this moment, procurement order will be badly created with bad
procurement method. It's complicated controlling this manually.

Thank you.

2009/10/20 vra (openerp) <email address hidden>

> Hello,
>
> If You want to change the procurement method from procurement order for
> that you need to first cancel those procurement and then make duplicate
> of that procurement order so now it will allow you to change the
> procurement method from order to stock or stock to order.
>
> thanks.
>
> --
> Procurement method can not be changed on bill of materials
> https://bugs.launchpad.net/bugs/453087
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in OpenObject Addons Modules: New
>
> Bug description:
> Define a product "piece1" with procurement make to stock.
>
> Define bill of materials of another product "final product" using piece1 as
> part of bill of materials of "final product".
>
> On general information tab on Bom structure, you could see the procurement
> method for piece1 is make to stock.
>
> It's imposible changing this value to make to order.
>

--
Ana Juaristi Olalde
Consultor Freelance OpenERP
www.anajuaristi.com
www.openerpsite.com
www.avanzosc.com
677 93 42 59 - 943 85 06 25

Changed in openobject-addons:
assignee: nobody → vra (openerp) (vra-openerp)
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

hello,

Please uninstall the mrp_jit module because it will make the procurement order directly into ready state so you cannot able to change the procurement method but without mrp_jit module the procurement order state is in confirm and you will change the procurement method easily.

Hope this will help you.

Thanks.

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :

I will try to explain again...

1.- Define a product make to order, buy
2. Include this product as part of bill of materials of another product. You could see automatically the field method on bill of materials is set to "to order".
3. Try opening the line. You can see the field method is not shown. All fields of bill of materials are shown but not the method.

4. Try to use this material in a BOM where you need procurement to be "to stock"... you need going to the product form changing procurement method, before you include it on BOM. After... there is no way to change it. So procurement will be created according to this setting.

It's my opinion this is not right. You should be able to choose the procurement method on bill of materials. Depending on case, it can be generally to stock and punctually to order. This is like that on Sales order lines, but not on bill of materials.

I don't know how explaining bug more detailed!!... Sorry for my poor english. Please ask again if you don't understand something.

Thank you very much:

Ana

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

Hello,

1.- Define a product make to order, buy
2. Include this product as part of bill of materials of another product. You could see automatically the field method on bill of materials is set to "to order"

when you define any product type buy : it will not calculate method which is function field and calculate automatically only show the order or stock in method field when the product supply type must be produce.
so i donot know how can you get this "to order" when you defined product supply type : buy.

3. Try opening the line. You can see the field method is not shown. All fields of bill of materials are shown but not the method.

Its your personal request that you want to show the method field in form view also so you can manually open the view from following path:
administator => customization => User Interface => view
and open the form view name : mrp.bom.form.and put the method field in form view <field name="method"/>.

*You should be able to choose the procurement method on bill of materials. Depending on case, it can be generally to stock and punctually to order. This is like that on Sales order lines, but not on bill of materials.

This is not like sale order lines.In bom procurement method is function field which is calculated on the bases of product so when you define product in that time you have already given the procurement method so there is no need to fill it again in the bill of material form. Here it uses function field which takes reference from product.

so if you needed then you have to customize mrp.bom object.

thanks.

Changed in openobject-addons:
status: Incomplete → Invalid
Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :

1. when you define any product type buy : it will not calculate method

You are completly right. I made a mistake on my explanation. It should be 1.- Define a product make to order, produce. This is right.

3. Try opening the line. You can see the field method is not shown. All fields of bill of materials are shown but not the method.

Its your personal request that you want to show the method field in form view also so you can manually open the view from following path:
administator => customization => User Interface => view
and open the form view name : mrp.bom.form.and put the method field in form view <field name="method"/>.

I made this change but method appairs not editable, so still it's not possible changing it. Sorry but my technical knowledge is really limitated.

4. This is not like sale order lines.In bom procurement method is function field which is calculated on the bases of product so when you define product in that time you have already given the procurement method so there is no need to fill it again in the bill of material form. Here it uses function field which takes reference from product.

Yes!!! This is just the reason I opened the bug. It should be like in sales order, I think. When your are defining BOM it should be possible choosing the way you wanna define procurement, even if by default it is taken from product form. First time, there is no need to fill it again in the bill of material form, but if you need doing it, there is no way.
Say that you can't have same product being part of 2 different bill of material with different procurement method, unless you don't change procurement method on product form each time before including it on bill of material.

Nevermind... I think this bug could be fixed as wishlist, instead of invalid bug. Thank you for your attention and patience:

Ana

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

I don't think we should be able to change the procurement type in the BoM. It may become unmanageable. (if you want to change a product, you must change all BoMs). The stock location has a good system to change the procurement type on the location (the location of a manufacturing order can be provided by the routing). This may achieve what you need.

So, if someone wants to develop such a system, I strongly suggest to do it in a separate module.

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :

Hi Fabien:

It was only a suggestion.
I don't understand why on sales order I can change the procurement method independent from product form, so a product could be included on 2 diferent sales order with different procurement and it's not possible on BOM. I think conceptually is the same, it's only the way you wanna procure the material when there is a need... but if it can't be possible on BOM is right.

By the way it is possible configuring it now. It's still possible to obtain this in an standard way, because if you change procurement method on product before including it on BOM, and you change it again for including in another BOM, the procurement method is not changed on first BOM... so... I don't know how deals mrp with this. I will test and tell you when I have got a free moment!!!

Again.. never mind. I think by the moment we don't need building a new module for it. Thank you very much:

Ana

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.