summaryrefslogtreecommitdiff
path: root/addons/web/static/lib
AgeCommit message (Collapse)Author
2019-07-12[MERGE] Forwardport of saas-12.2 to saas-12.3 up to 01365a3f625c9e7Martin Trigaux
closes odoo/odoo#34747 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-10[MERGE] Forward port of 12.0 to saas-12.2 up to 3b1d00acda9358108Martin Trigaux
closes odoo/odoo#34732 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-10[MERGE] Forward port of saas-11.3 to 12.0 up to db5261b19e40fc0Martin Trigaux
closes odoo/odoo#34723 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-10[MERGE] Forwardport of 11.0 to saas-11.3 up to 198b5ecce28Martin Trigaux
closes odoo/odoo#34719 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-10[MERGE] Forwardport of saas-15 to 11.0 up to 239af6ee99efe8Martin Trigaux
2019-07-08[FIX] web: jSignature not able to sign on "pen touch" deviceRomeo Fragomeli
Before this commit, on a device with a "pen" (e.g. Surface Pro, ...), it was not possible to sign a document on some browsers recently updated (e.g. Chrome, Firefox, ...) only Internet Explorer was working. Instead of drawing continuous lines only few dots appeared. For Chrome and Firefox we have to catch events with "addEventListener". For Edge we add touch-action property to convert touch events into click. Steps to reproduce: 1) Go to sales app 2) Then go to quotations (menu Sales) 3) Create a new quotation 4) Click on preview 5) Click on the "Accept" button at the end of the preview 6) Use the "pen" to draw the signature (BUG) We use a custom version of the jSignature lib (c.f. odoo/odoo@eddcb46), so we have to patch the file in the Odoo repo with a mix of some pull request found in the official repo and forks. Link: https://github.com/brinley/jSignature/pull/109 https://github.com/brinley/jSignature/pull/159 https://github.com/willowsystems/jSignature/pull/96 opw-2029684
2019-06-21[MERGE] forward port branch saas-12.2 up to 8747d72f1efChristophe Simonis
2019-06-21[MERGE] forward port branch 12.0 up to 0e72b983c35Christophe Simonis
2019-06-19[FIX] web: update moment ar locale for monthNicolas Lempereur
The months name in momentjs used an arabic translation with the month then some crap (or the month said a second time) after. This does not seem expected, and has been solved in moment.js library 2 years ago: https://github.com/moment/moment/pull/4271 This PR apply this change in moment.js localization included in Odoo. opw-2006265 closes #34248 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-04-12[FIX] web: crash in editable lists with date fieldAaron Bohy
Assume an editable list view with a date(time) widget, click to edit a line, focus the date field (the datepicker opens), press ESC: there is a crash in the lib, and the datepicker remains open forever. This fix is twofold: - we added a check in the lib to prevent it from crashing (it is easily reproducible: it crashes when an opened datepicker is removed from the DOM). - we added an event handler of ESC keydown event to hide the datepicker before the field is removed from the DOM.
2019-03-18[MERGE] forward port branch 11.0 up to 7e33b547714Christophe Simonis
2019-03-18[MERGE] forward port branch saas-15 up to c6353942ffdChristophe Simonis
2019-03-18[MERGE] forward port branch saas-14 up to 5162ca7be7dChristophe Simonis
2019-03-18[MERGE] forward port branch 10.0 up to 36ba37a7a1cChristophe Simonis
2019-03-12[FIX] web: qweb2: allow null values in a foreach iterationDenis Vermylen
Before this commit iteration in a t-foreach containing null or undefined values crashed because they have no attributes. closes odoo/odoo#31828 Signed-off-by: Fabien Meghazi <amigrave@users.noreply.github.com>
2019-05-02[MERGE] forward port branch saas-12.1 up to b11930047f6Denis Ledoux
2019-04-26[MERGE] forward port branch 12.0 up to c9913152ecbDenis Ledoux
2019-04-23[FIX] web: crash in editable lists with date fieldAaron Bohy
Backport of 7bc53ac30e. Assume an editable list view with a date(time) widget, click to edit a line, focus the date field (the datepicker opens), press ESC: there is a crash in the lib, and the datepicker remains open forever. This fix is twofold: - we added a check in the lib to prevent it from crashing (it is easily reproducible: it crashes when an opened datepicker is removed from the DOM). - we added an event handler of ESC keydown event to hide the datepicker before the field is removed from the DOM. closes odoo/odoo#32647 Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
2019-03-21[MERGE] forward port branch saas-12.1 up to 6878c9f3424Christophe Simonis
2019-03-19[MERGE] forward port branch 12.0 up to 82c4393fd02Christophe Simonis
2019-03-18[MERGE] forward port branch saas-11.3 up to 4e39328a76aChristophe Simonis
2019-02-22[MERGE] forward port branch saas-12.1 up to 0f4abc5c228Christophe Simonis
2019-02-21[MERGE] forward port branch 12.0 up to 84143a34b31Christophe Simonis
2019-04-01[IMP] web: remove nvd3 libraryMathieu Duckerts-Antoine
It has been decided to use Chart.js instead of nvd3 to render charts. Now that nvd3 is no more in use, we remove it. Task ID: 1946138
2019-04-01[IMP] web: add library Chart.jsMathieu Duckerts-Antoine
This commit makes possible to use the Chart.js library to create various charts. Task ID: 1946138
2019-03-25[MERGE] forward port branch saas-12.2 up to 230ad8c381eChristophe Simonis
closes odoo/odoo#32088 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-03-12[FIX] web: correctly display crashes in firefoxAaron Bohy
After the update of jQuery, crashes were no longer displayed (in dialogs) on browsers using the unhandled-rejection-polyfill lib (e.g. firefox). This was due to a bad conversion from ES6 to ES5. Issue reported on the jquery update pad. closes odoo/odoo#31767 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-03-07[FIX] web: bad conversion from ES6 to ES5Aaron Bohy
We had to manually convert the unhandled-rejection-polyfill lib, and we forgot to replace this by self in two arrow functions. This was causing crashes e.g. on Firefox. We also forgot some uses of const, which is not really an issue as const is supported on all browsers, but it is not ES5. Issue reported on the jquery update pad. closes odoo/odoo#31658 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-03-06[ADD] web: unhandled-rejection-polyfill libAaron Bohy
2019-03-06[IMP] web: qunit: add hook at end of each testAaron Bohy
This hook will be used to check that there are no leftovers in the DOM.
2019-03-06[REF] web: update qunit to v2.9.1David Monjoie
The new version of qunit better reports failures of promises then the previous version.
2019-03-06[REF] web: update select2 to v3.5.4David Monjoie
2019-03-06[REF] web: update jquery.ui to v1.12.1David Monjoie
2019-03-06[REF] web: update jquery to v3.3.1David Monjoie
Part of task 1896658
2019-03-06[ADD] web: es6-promise polyfill libAaron Bohy
2019-02-12[FIX] web: quotes and backslashes in search viewMathieu Duckerts-Antoine
The commit 6d3ada178f7caf6ea159b871648ca4c440c7845b aimed to solve problems occuring whith (single or double) quotes when creating new custom filters. Unfortunately, the point was missed and bugs were still present. The present commit solves the orginial problem satisfactorily. There was also a problem in the management of backslashes. Type '\\' in the search bar would lead to a domain like [('...', 'ilike', '\\\\\\\\\\\\\\\\')]. This has also been fixed. Note that it is necessary to input "\\" if one is looking for a backslash in db (as before). A remark on the _formatAST function (py_utils.js): We deescape only the chars `'`, `"`, and `\` because it does not seem possible to produce a string in the search view that would intend a search for a line return or a tab for example. A general remark: Domains should always be in normalized form. In that way they could be manipulated and combined together without a tokenization/parsing! closes odoo/odoo#29756
2019-02-11[MERGE] forward port branch saas-12.1 up to 93d736e905eChristophe Simonis
2019-02-27[FIX] web: remove bootstrap sourceMappingURLqsm-odoo
Same as https://github.com/odoo/odoo/commit/8e17223c260add842d83b2549d7bdaa4c3cc4d6c Part of https://github.com/odoo/odoo/pull/31401 task-1944790
2019-02-27[IMP] web: update bootstrap 4.2.1 -> 4.3.1qsm-odoo
See https://blog.getbootstrap.com/2019/02/11/bootstrap-4-3-0/ and https://blog.getbootstrap.com/2019/02/13/bootstrap-4-3-1-and-3-4-1/ Again, some fixes were added in this version and not in a 4.2.x version so there is no clean way to backport them in 12.0 / saas-12.2. If needed, the file bootstrap_review.scss is there for that. Among the new features, two notable ones: - The '.modal-dialog-scrollable' class which does what odoo already implemented for all its modals. So we could remove our custom code in a next update. - Responsive font sizes ! Plan was to develop something similar for the website, so this comes at the right time. The behavior is opt-in, we will enable it in a next update. Part of https://github.com/odoo/odoo/pull/31401 task-1944790
2019-02-15[FIX] web: quotes and backslashes in search viewMathieu Duckerts-Antoine
The commit 6d3ada1 aimed to solve problems occuring whith (single or double) quotes when creating new custom filters. Unfortunately, the point was missed and bugs were still present. The present commit solves the orginial problem satisfactorily. There was also a problem in the management of backslashes. Type '\\' in the search bar would lead to a domain like [('...', 'ilike', '\\\\\\\\\\\\\\\\')]. This has also been fixed. Note that it is necessary to input "\\" if one is looking for a backslash in db (as before). A remark on the _formatAST function (py_utils.js): We deescape only the chars `'`, `"`, and `\` because it does not seem possible to produce a string in the search view that would intend a search for a line return or a tab for example. A general remark: Domains should always be in normalized form. In that way they could be manipulated and combined together without a tokenization/parsing! closes odoo/odoo#31025
2019-02-13[FIX] web: moment lib: update es localeLucas Perais (lpe)
The parsing/formatting of abbreviated month name was broken. The locale es in its version for moment 2.22.0 fixes it OPW 1931272 closes odoo/odoo#31104
2019-01-31[FIX] web: correct tempusdominus lib patchingChristophe Simonis
Oversight of previous forward-port.
2019-01-31[MERGE] forward port branch saas-11.3 up to aeed32d4ffdChristophe Simonis
2019-01-30[MERGE] forward port branch 11.0 up to 1dbe4ea0d7fChristophe Simonis
2019-01-30[FIX] web: support full attribute syntaxMartin Trigaux
Only the syntax <t t-operation="attributes"> <attribute name="foo">bar</attribute> </t> was currently supported for attributes while the syntax <t t-operation="attributes"> <attribute name="foo" value="bar" /> </t> Is also correct and supported server side. Using value instead of the node content is needed to avoid translating the node while it is parsed by babel to extract translatable content
2019-01-31[MERGE] forward port branch 12.0 up to cb8fefa8999Christophe Simonis
2019-02-05[IMP] web: add JS-related lib files for ace editorAndrea Ulliana
In task handled in https://github.com/odoo/odoo/pull/29999, we will need support for javascript files in ace editor. This commit adds the related lib files. See https://ace.c9.io/#extending-highlighters: https://github.com/ajaxorg/ace/tree/master/lib/ace/mode 1. https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/doc_comment_highlight_rules.js 2. https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/javascript_highlight_rules.js 3. https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/javascript.js task-1919350
2019-02-04[MERGE] forward port branch saas-12.1 up to 4524ad06a8aChristophe Simonis
2019-01-29[FIX] web: current dateNicolas Martinelli
- Set the OS in a timezone such as the current day is different from the day in UTC (e.g. America/Nome before 10:00 AM or Australia/Melbourne after 3:00 PM) - Open any datepicker - The 'little triangle' indicating the current day is wrongly set (one day before or after) Knowing that Odoo always creates momentjs date and datetime with the `UTC` flag set to `true`, the `bootstrap-datetimepicker` does something which seems inconsistent. First, it retrieves the `viewDate`, and sets it to the beginning of the month and week in: https://github.com/odoo/odoo/blob/1c6c504215f3ef09e6336c92c9d350e87599eaa1/addons/web/static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js#L725 In this part, it is important to note that each `startOf` functions called sets the hours/minutes/seconds to zero. It means that the reference time is changed. Then, it iterates on this newly created date, and determines `today` by comparing it to `getMoment()` in: https://github.com/odoo/odoo/blob/1c6c504215f3ef09e6336c92c9d350e87599eaa1/addons/web/static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js#L748 However, `getMoment()` returns the current date and time, but with the `UTC` flag set to `false`. Therefore, we compare a UTC datetime on which the reference time has been changed to a non-UTC datetime, which fails to give the appropriate current day. There are two approaches to solve this. The first possibility is to change the way Odoo defines momentjs dates and datetimes, maybe by removing the `UTC` flag at creation. This sounds like a bad idea, since other widgets or views (such as the calendar or the pivot view) make use of them. This is likely to introduce a bunch of new issues with TZ in these views. The second approach is patching the library to fit our use. Although we usually don't do such a thing, this allows to specifically solve this use case, and in particular placing the 'small triangle' at the appropriate date without impacting any other part of the system or the library. It can be easily performed by comparing the dates and the months to make it work. opw-1915251 closes odoo/odoo#30538
2018-12-12[MERGE] forward port branch 12.0 up to 047e2b28de4Christophe Simonis