콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
5139 화면

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
3536
0
3월 15
4542
2
3월 15
6293
1
8월 25
167
0
7월 25
354