Technical mailing list archives


Re: Locate the creation of stock_move inside of stock_picking

- 03/10/2015 07:58:16
Thanks a lot Alexandre.
I guess I have to fill the move_ids array, to have stock_picking::create() adding new stock_moves.

2015-03-10 12:52 GMT+01:00 Alexandre Fayolle <>:
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

Post to:

Best regards,
Hakim Benoudjit