Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I'm have a page that accepts a get parameter to set the the field name I want to edit but can't make it to work with qweb syntax. An example of the qweb code is.
I think I need something like :
or something like that.
I need to be able to set the content field dynamically that now is fixed in the example. Thanks in advance.!
EDIT: I think I must use t-field in order to be able to edit it in the website editor. That's why I can't use computed fields.
You can create a function that will return the value you expect, and then add it to your Qweb.
To do this you create your function
function_dynamic def (self):
you add to your self.localcontext.update
And for your Qweb you add
<div t-esc = "function">
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/3/15, 12:27 PM|
|Seen: 1039 times|
|Last updated: 3/16/15, 8:10 AM|