Search code examples
odooodoo-10

How the Delivery orders are created from Sale Order in ODOO 10?


In sale app, where are the inventory delivery orders created from sale order while confirming the quotations? What are the functions which are called during this workflow in ODOO10?


Solution

  • Finally found where it is being created,

    First while confirming a sale order, it creates a procurement order, then from the procurement it creates stock moves, and from the stock move it creates the whole stock.picking delivery order.

    You can find the code of where the creation of a delivery order in:

    stock-->procurement-->_get_stock_move_values.

    Here all the values of initial demand and the main fields of stock.picking are passed and created.