Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: Locate the creation of stock_move inside of stock_picking

by
hakim
- 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 <alexandre.fayolle@camptocamp.com>:
On 10/03/2015 12:42, Hakim Benoudjit wrote:
<blockquote cite="mid:CAC0V5F9OUxdQ4BeozcwpJb1wDpLi_=Li2HbW_5JskbM+Ki+ZFQ@mail.gmail.com" 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 orm.py'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: https://github.com/odoo/odoo/blob/8.0/openerp/models.py#L4245

-- 
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
http://www.camptocamp.com

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-framework-62
Post to: mailto:expert-framework@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Cordialement,
Best regards,
Hakim Benoudjit