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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
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
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
Expected singleton
Đã xử lý
|
|
9
thg 3 20
|
42167 | |
|
1
thg 10 17
|
4302 | ||
|
1
thg 3 15
|
4768 | ||
|
2
thg 3 15
|
6833 | ||
|
2
thg 4 23
|
4349 |
I mean how can i trigger this method to debug it?