Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
5154 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 19
3540
0
มี.ค. 15
4545
2
มี.ค. 15
6315
1
ส.ค. 25
184
0
ก.ค. 25
354