Technical Mailinglisten Archive

Re: Locate the creation of stock_move inside of stock_picking

Camptocamp France SAS, Alexandre Fayolle - Camptocamp
- 10.03.2015 07:49:45
On 10/03/2015 12:42, Hakim Benoudjit wrote:
<blockquote cite="" type="cite">
Hi there

Can anyone please tell me where I can find the creation of stock_move?
I know that it's related to the creation of stock_picking but I cannot find it.
I thought that maybe when I create a stock_picking, it will create its stock_moves automatically. So I started exploring's create() method but I could not find another create call inside it, that will create stock_move.

I think this is valid also for sale_order with sale_order_line and account_invoice with account_invoice_line.

This is done by writing to the one2many field, called indirectly here:

Alexandre Fayolle
Chef de Projet
Tel : + 33 (0)4 79 26 57 94

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex