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 would want to create 3 or 4 different Pos Ticket in my multi company installation of Odoo 8.
I thought I could define more than one file in the 'qweb' section, but it doesn't work...
'static/src/xml/pos_cie_2.xml', <----- Could we declare a second file here? It doesn't seem to be possible!!!
Loading several QWeb templates is possible with both options, please see:
But I don't think it's possible to load different templates for the same Widget and have them available at the same time.
Widgets declare its template only once, the 'PosWidget' declares its template here:
For other widgets, as the form widgets, one can create new widgets by inheriting existing ones and overriding their definition (template reference included), and then it can reference the new widgets to be used instead of the existing/default ones.
Even though you can create new PosWidgets, based in the original one, I don't think there is a way to switch widget implementations at runtime.
If someone else knows a way, please let us know.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
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: 9/30/15, 5:59 PM|
|Seen: 639 times|
|Last updated: 9/30/15, 11:36 PM|