Odoo Help

4 Answers

Anil R. Kesariya (AKE)

--Anil R. Kesariya (AKE)--
| 7 6 8
Rajkot, India
--Anil R. Kesariya (AKE)--

Odoo Techno Functional Expert

* Engaged with odoo since May - 2012.

* Customise existing module or develop new module base on customer requirement.

* Played key developer role in many past and running projects.

* Expert in requirement gathering of business and transforming requirement into odoo platform.

* Major expertise in core modules, database, report development and theme development.

* Integration expert.

Linkedin  : https://in.linkedin.com/in/anil-kesariya-97b20a66

Anil R. Kesariya (AKE)
9/30/15, 9:40 PM

Hi pascal,

For multiple files you can use this.

'qweb': ['static/src/xml/*.xml']

This load your all xml files.

Hope this would work for you.



Pascal Tremblay
9/30/15, 9:49 PM

Ho wow. very very interesting. Will try it tomorrow. Thanks 1000 times.

Anil R. Kesariya (AKE)
9/30/15, 9:51 PM

welcome buddy


Marvin Taboada

--Marvin Taboada--

| 4 3 6
Cochabamba, Bolivia
--Marvin Taboada--
Marvin Taboada
9/30/15, 11:33 PM

Hello Pascal,

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:

* https://github.com/odoo/odoo/blob/8.0/addons/point_of_sale/static/src/js/widgets.js#L935

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.


Ask a Question
Keep Informed
1 follower(s)
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.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now