تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4 الردود
5127 أدوات العرض

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
يونيو 19
3536
0
مارس 15
4542
2
مارس 15
6285
1
أغسطس 25
164
0
يوليو 25
354