summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/core/qweb.js
AgeCommit message (Collapse)Author
2020-03-24[FIX] translate.py,web: aria-label qweb translation and exportNicolas Lempereur
In 12.0 9de1bc0e aria-label translation was added for python views, but: - aria-label attribute are not exported - aria-label are not translated for JS view rendering So by default, aria-label would only be translated for python views that had the same aria-label term in a translatable element (eg. "title" attribute). opw-2222504 closes #48255 closes odoo/odoo#48275 X-original-commit: 6b6b11ea2f8391f1f195bd1650531f77b6bed729 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2017-12-18[FIX] web: prevent double translation in kanban viewGéry Debongnie
The kanban view uses a template which comes from the server, already translated. Before this commit, it tried to retranslate again the template in qweb.js, which may be a problem (in addition to the useless work): if some english string A is translated in B (french), but B is also a valid english string which is translated into C in french, then we will have a wrong result. In this commit, we simply add a flag to disable the translation process, which should also slightly improve the kanban view rendering performance.
2017-04-11[REF] web, *: redesign all JS viewsGéry Debongnie
This commit introduce a full redesign of all JS views. We started basically from scratch. The goal was to unify all the various views under a common framework, to make them testable, to make then usable in different conditions (in studio, or in the frontend), and to make our lives easier. Some important points are: - we introduced new coding guidelines (camelCase, 80 chars width, ...) - we have a brand new testing framework (still QUnit based) - kanban view moved to the web addon - calendar view (formerly web_calender) moved to web as well - the tree view was removed - all new code should be documented We hope that this code is the start of a new era for the Odoo web client, we want to have a high quality codebase, well documented, well tested, well designed. Work done by the framework team: mostly aab, ged, chm, dmo, qsm