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

Maybe someone knows when def _compute_amounts_in_user_currency(self): is triggered? it's in _name = "account.invoice.report" model. can't make this method start calculations. In Bussiness Intelligence report I have bad calculations so need to check how this method is calculating user_currency_price_total field

아바타
취소
작성자

I mean how can i trigger this method to debug it?

베스트 답변

Hi Grf, 

Please note that this function has api depends. Which means that it will be triggered when one of the field mentioned in depends ('currency_id', 'date', 'price_total', 'price_average', 'residual') is changed. 

try to add print'0000' inside the function and then change one of the fields, you will see the print result in your logs. If you do not make changes on any of them, you will get no print result in the logs.

Thank you.

아바타
취소
작성자

there are no fields to change, this function is triggered from Bussiness Intelligence report. It's not printable report and views in it is writen in SQL so that's why i'm having this problem

관련 게시물 답글 화면 활동
Expected singleton 해결 완료
9
3월 20
42431
1
10월 17
4580
1
3월 15
5039
2
3월 15
7172
2
4월 23
4695