This question has been flagged
3 Replies
2149 Views

I am having a Sales Order (many poduct ) and i have to automatically generate a manufacturing order based on this SO when my manufacturing order  is composed by many poduct ?

Thanks

Avatar
Discard
Author

how i can create an MO with many poduct ? One Mo for many product @Ludo - Neobis

Author Best Answer

Thank you,

Many product in the same Manufacturing order

how i can do it ?

 

Avatar
Discard
Best Answer

In your sales order module create a 

<button name="auto_mo" type="object">

Then in that define

def auto_mo(self,cr,uid,ids):

          m_order=self.pool.get('mrp.production')

          id=m_order.create(cr,uid,{values you want to add})

 

 

for full guidance please refer openerp developer book,,,,,,,/////

Avatar
Discard
Best Answer

Would is not be easiest to use the built-in functionality that comes with products?

So using these steps:

  1. Create one or more ingredient products. Set the properties of these products to buy and provide other info, such as make to order or take from stock.
  2. Create the product that you would like to sell and create. Make sure that product has a BOM filled in, as well as produce method. Make it stockable as well, so it will be built.
  3. Then, sell your product and make sure to handle the SO in full. This should now generate a draft MO for the product you sold.

 

Will this do the trick?

Avatar
Discard