summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/pivot.xml
AgeCommit message (Collapse)Author
2020-08-12[IMP] web: sample data in pivot viewAaron Bohy
A previous commit has paved the way for displaying sample data in the reporting views. The present commit brings the required changes to have sample data in pivot views. Task ID: 2282196 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2020-05-18[FIX] web: pivot no content helperAaron Bohy
This commit reverts [1], which fixed the no content helper message of the pivot view, by moving the message definition in the JS. With Owl components, one must always use the translation function in the env (env._t), and no longer import it from 'web.core'. Moreover, there is no valid reason to define the message in JS here, except that there was a bug in owl, that has been fixed by [2] (merged in Odoo by the previous commit). [1] https://github.com/odoo/odoo/commit/c7cc672aba669175280d619ad39b14daefd7733f [2] https://github.com/odoo/owl/commit/2af8cccd65424ea75fbaa9f0a83c6974be4b1b5d closes odoo/odoo#51442 Signed-off-by: Géry Debongnie (ged) <ged@openerp.com> Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-04-29[FIX] web: pivot view nocontenthelp messageHardik Prajapati
Since the commit https://github.com/odoo/odoo/commit/46cf65d68e9c13193dff4b563b9b0bbb2199dfc1 when help is not defined in action then nocontenthelp is displayed as [object, object] due to the desciption passed from renderder of the pivot view. So in this commit while calling the NoContentHelper pass the descitption as string instead of jquery element. we can use the t-value in template but that string will create issue for transalation so pass the desctiption from the pivot render. closes odoo/odoo#50347 Taskid: 2240167 Closes: #49859 X-original-commit: c7cc672aba669175280d619ad39b14daefd7733f Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-02-27[FIX] web: fix boolean fields display in pivot viewNisha patel
Since formatBoolean returns a jQuery object, boolean fields were displayed as [Object object] in pivot view. so fix the issue of checkbox in the pivot view by not calling fromatValue for boolean instead just set the checkbox element in in template itself and added test case for checkbox in pivot view. closes odoo/odoo#46445 Taskid: 2172258 Closes: #44299 X-original-commit: d7d0caf6f599f313687c958c5aff5764c0d23ffd Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-01-21[FIX] *: fix translations inconsistency in 't-set'Romain Derie
This commit fix most `t-set` errors that either led to: 1. unwanted text to be considered as translatable. eg: `<t t-set="classes">text-left bg-100 p4</t>` would create an `ir.translation`. 2. text that should be translatable were not. eg: `<t t-set="text" t-value="'Both'"/>` would not create an `ir.translation` while it should. If a text should be translatable, it should never be inside a `t-value`: - `<t t-set="text">Both</t>` If a text should not be translatable, it sould either be inside `t-value`, `t-valuef` or the `<t>` tag should have `t-translation="off"`: - `<t t-set="classes" t-translation="off">text-left bg-100 p4</t>` - `<t t-set="classes" t-valuef="text-left bg-100 p4"/>` - `<t t-set="classes" t-value="'text-left bg-100 p4'"/>` https://github.com/odoo/odoo/pull/43660 https://github.com/odoo/enterprise/pull/7839 https://github.com/odoo/design-themes/pull/203 closes odoo/odoo#43660 Related: odoo/enterprise#7839 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2019-12-09[REF] web: rewrite pivot view renderer with OWLPierre Rousseau
Because the webclient and other higher level components such as the actionManager are not yet rewritten in OWL, we cannot make a complete migration of the controller and the model to a more OWL-ish code. We have rewritten the renderer completely in OWL, it uses more extensively a template and manages its own state and its sub-components. We did not rewrite the controller, however we have made it inherit from `web.ControllerAdapter` which is a thin compatibility layer used when a odoo controller uses a OWL renderer. In the tests, the only changes are that all the events triggered by the test and handled by OWL must be triggered on DOM nodes directly and not on JQuery elements. closes odoo/odoo#39491 Related: odoo/enterprise#7135 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com> Co-authored-by: VincentSchippefilt <vsc@odoo.com> Co-authored-by: pro-odoo <pro@odoo.com>