I'd like to know if someone have an ideia how I can check if an element exists in a template that inherits or calls other one.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
As long as I know there is none about that in Odoo but it's not difficult to get it done developing a new QWeb tag to check that. You just need to be aware of where do you need to check, in the local template you supposedly are not on the top and if you wanna check from the top you need to get the same template name/id from the qwebcontext, on another template you need to pass the template name/id to the tag call so you could get the arch to check the xpath expressions. The result could be set into qwebcontext or maybe will be even helpful to set it to qwebcontext and instead evaluate the tag body of the new tag. This are just dropped ideas
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
0
Jun 15
|
4897 | ||
|
4
Des 23
|
18337 | ||
|
0
Apr 21
|
1770 | ||
|
1
Jul 25
|
2178 | ||
Extension View - Multiple xpath replacements
Diselesaikan
|
|
2
Mei 24
|
2943 |
Actually, if an element doesn't exist, you will get error log when upgrading module.