How to differentiate the call for Onchange_event? I mean how will we know whether it is called manually or dynamically?
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ờ
2606
Lượt xem
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ý
I'm not sure I follow you. Do you mean the difference between an onchange_event being called from directly editing a field vs. editing a different field that called a different onchange_event modifying it? If that's the case, I don't have any great answers, mainly just arrange onchange_events in a hierarchy so you don't get stuck in an infinite loop of two fields updating each other.
Actually yes.. tats exactly the case.. i was able to stop it from going into the infinite loop... but not entirely achieved the purpose... i mean now am facing the decimal discrepancy.... working on it.. and anyways thanks for the help :)