跳至内容
菜单
此问题已终结
4 回复
5160 查看

Hi all,

    i am trying to find the source code which is using to update the cost of the products for 'Average and Real Price' cost method. Actually i spend around 2 days for this, but no luck. Where can i find these code ? and when this code is trigger?

Any help?  

形象
丢弃
编写者 最佳答案

 Finally found it,

https://github.com/odoo/odoo/blob/10.0/addons/stock_account/models/stock.py#L193

形象
丢弃
最佳答案

Hi Kabeer,

you can find the code from below link:

https://github.com/odoo/odoo/blob/10.0/addons/sale_stock/models/account_invoice.py#L18

Thanks

形象
丢弃
编写者

Thanks @Sunny Dev. But the above code depends `sale` module, unfortunately i am not using. I wish to know which function is invoked when i perform `Purchase Order -> Receive the products` (here, system automatically update the cost of products). This is what i try to find out.

Hi Kabeer,

I not find the code for right now what you want.

when i find i will as k you.

Thanks

编写者

I found it, updated in my answewr

相关帖文 回复 查看 活动
1
6月 19
3541
0
3月 15
4546
2
3月 15
6319
1
8月 25
192
0
7月 25
354