Commit Graph
84 Commits
Author SHA1 Message Date
David Beguin 4c9e39cfbd [FIX] website: get visitor tz directly from cookie
Since tz is now (from 6eb4762fee) added to the client cookie,
visitor timezone can directly be set when creating the visitor, using the
request.

Jstz can be removed as even for module in ENT that used this lib,
we can get the timezone using Intl lib instead.

This will also reduce the number of request made only to get visitor's
timezone.

This commit reverts part of 17e8402523
Linked ENT PR: 12963

Task ID: 2333825

closes odoo/odoo#59501

X-original-commit: 3d9a2de3575777c87327691319d89f9de6b8eada
Related: odoo/enterprise#13918
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-10-08 11:45:39 +00:00
David Beguin 17e8402523 [IMP] website : store visitor timezone
In order to be able to send push notifications using recipients timezone,
the visitor timezone is now stored in DB.

The visitor timezone is only updated once, when found_visitor_timezone
cannot be found in localstorage. Once the timezone is updated,
found_visitor_timezone is added to localstorage.

Task ID : 1936643
PR #34973
2019-09-20 14:44:56 +00:00
Christophe Matthieu de444335b7 [REF] web_editor,*: Move and rename files to prepare refactoring
The refactoring of the wysiwyg editor and 'html' field allows us to
move some of the code that was in web_editor but only used in website or
in mass_mailing. Some parts are still in web_editor but will be
moved at a later time.
2019-01-17 08:40:21 +00:00
qsm-odoo d83f7587aa [MOV] web, website(_slides): move PDFjs lib to web
website_sign is now a backend-only module in enterprise, so it should
not use a website library (even in a static way).
2016-09-13 14:18:31 +02:00
qsm-odoo b6b3e156a0 [IMP] web, website(_quote): move jSignature lib location (website -> web)
The jSignature lib is now used by non-frontend module (at least it
will be in upcoming commits).
2016-09-05 15:01:21 +01:00
Martin Geubelle e59a7fe3ff [REF] web_editor, website: move ACE editor to web_editor 2016-09-01 17:15:01 +02:00
Adrien Dieudonne 3029857bad [REF] web, website: move jQuery UI Nested Sortable lib
As this lib will be used in the backend, it is moved to assets common.
2016-09-01 14:06:21 +02:00
Christophe Matthieu 6d04c70abe [IMP] web: add ace editor for xml and python edition
* display all lines and don't display the scroll bar into ace editor
* lazy read ace lib and add missing lib file
* use not minified version of ace lib
* Move ace lib from website to web
* Added ace widget for webclient
* XML mode for view text box
* Python mode for server action text box
* Removed web_ace_editor.xml, instead added template in base.xml itself
* Added widget=ace_editor in compute field of ir.model.fields
2016-08-23 17:03:56 +02:00
Christophe Matthieu 2463d02050 [IMP] website: remove useless MutationObservers lib 2016-02-17 09:47:47 +01:00
Christophe Matthieu 4105da9c7f [IMP] website: remove useless jquery.placeholder lib 2016-02-17 09:47:47 +01:00
qsm-odoo 07c020d7e5 [IMP] website: PDFJS lib - GitHub import
* Import src, web and external directories from PDFJS GitHub repo
2015-08-14 13:54:49 +02:00
qsm-odoo eddcb46c82 [ADD] website, website_quote: new jSignature lib
Note: This is a custom version of the lib which allows to
enable/disable the signature area and which introduces the
compatibility with IE + bug fix of the official version.
2015-07-16 18:03:06 +02:00
Christophe Matthieu cebc73ebf9 [IMP] web_editor: move summernote & nearest lib from website 2015-07-10 17:00:13 +02:00
Christophe Matthieu 8c559044a5 [IMP] web_editor: split website into web_editor (to use editor in backend for html field) and website 2015-07-10 17:00:11 +02:00
qsm-odoo fc3b25cefd [MOVE] web, website_*: select2(-bootstrap) in web and assets-common
* select2 was linked in both backend and frontend (by web and website)
* select2-bootstrap was in website and linked only in frontend but it
  is in fact needed in backend too

+ Remove useless link of the lib by other modules
2015-07-09 16:27:24 +02:00
Christophe Simonis a9471c43b9 [MERGE] forward port of branch saas-6 up to e941c0f 2015-04-17 15:33:00 +02:00
Jérome Maes 6a11f594a8 [IMP] website_slide, website : move the PDFJS library from slides to the website module to allow reusing it in website modules.
This huge library handle PDF file to display them, count their pages, ... Due to its size, the lib is declared in a separated optional bundle who should be called with a 't-call-assets' only on the page it is required.
2015-04-15 14:56:24 +02:00
Christophe Matthieu c35f8a7b48 [FIX] summernote: when the editor create a link, we need to use deleteContents with the flag to_write as true to insert the link at the same place. 2015-04-09 16:07:12 +02:00
Christophe Simonis 2565aa60e0 [MERGE] forward port of branch saas-6 up to c2b4766 2015-03-25 19:14:46 +01:00
Christophe Matthieu 2f5e4149fb [FIX] summernote: wrap the content with p when the user keyup on 'enter' but should not wrap the content if the editable area is a p, li or other para 2015-03-23 12:25:06 +01:00
Géry Debongnie 996b6571b7 [REF] website: update to the new module system 2015-03-18 09:09:22 +01:00
Christophe Matthieu 513d1a26d1 [FIX] summernote: Summernote change the native id of the editable area if a script use a unique id, summernote break the default comportment. Replace id by data-note-id to set the editor 'id' 2015-03-09 16:33:03 +01:00
Christophe Matthieu ebc5b3b11b [IMP] summernote: dom.isImg is unnecessary, because isVoid function contains that. 2015-02-12 11:58:11 +01:00
Christophe Matthieu 64b0c36f16 [FIX] summernote lib: scroll to top when click on input in editable mode 2015-01-23 12:14:15 +01:00
Christophe Matthieu 60efc27f15 [FIX] website editor: can't select a picture followed by a br tag 2015-01-23 12:14:15 +01:00
Christophe Matthieu 9477b838c6 [IMP] website editor: move media style options from the customize menu to the top editor bar 2015-01-16 16:38:09 +01:00
Christophe Matthieu 65fee06990 [FIX] summbernote lib: if a content selected with CTRL+a begin by an image, the editor switch to the image editor but the range is not correct. Need to display the image style only for real image edition. 2015-01-16 16:38:08 +01:00
Christophe Matthieu 75341ddcf9 [FIX] summernote lib: summernote raise when we triple click on a br in air mode. (merge proposal create to summernote) 2015-01-16 16:38:08 +01:00
Christophe Matthieu a14c802443 [FIX] summernote: wrong selection and delete when user try to delete a br in a text 2015-01-16 16:38:08 +01:00
Christophe Matthieu 1c6eec023d [UPD] website: update of summernote lib 2015-01-08 11:01:43 +01:00
Christophe Matthieu 7c22b96604 [FIX] summernote lib: When we edit a text in a existing link (with the modal) a link is created into the previous link 2015-01-08 11:01:43 +01:00
Christophe Matthieu 1800c07f44 [IMP] summernote lib: save range each time the cuser mouseup or keyup in editable area and restore each time the user active an event.
In this case the user can click on an other page area and then click on the option without any error
2015-01-05 10:59:44 +01:00
Christophe Matthieu 30c0e36afa [IMP] summernote lib: set active/unactive buttons for image edition
https://github.com/summernote/summernote/pull/804
2015-01-05 10:59:43 +01:00
Christophe Matthieu 064275d7fb [FIX] summernote lib: the prevent default for mousedown image to prevent ie and ff default 'features' must set the range because the cursor is used for edition.
Modify the code to use the dom range. Warning for picture because the browser can't target the image but the container.

https://github.com/summernote/summernote/pull/803
2015-01-05 10:59:43 +01:00
Christophe Matthieu 5b07a0dc61 [FIX] summernote lib: some browsers raise when select a range to target a node like an image or a br; createFromNode can't select a node withe more or less of one item. For eg: <div>text <span>one</span></div> the range selected is only 'text '
https://github.com/summernote/summernote/pull/799
2015-01-05 10:59:43 +01:00
Christophe Matthieu 6bd7084476 [IMP] summernote lib: extend createlink to allow to add a class on a link 2015-01-05 10:59:43 +01:00
Christophe Matthieu 12bbcda4c2 [IMP] summernote lib: check if a plugin add a method before the summernote methods because the plugins may be want to overwrite a default comportment. Key and click call plugins with more arguments (to allow the change and use of the lib) and the same arguments (some plugins can use button and key command for the same method)
https://github.com/summernote/summernote/pull/809
2015-01-05 10:59:42 +01:00
Christophe Matthieu 9069d0127c [IMP] website: use the new summernote editor 2015-01-05 10:59:42 +01:00
Christophe Matthieu 685d447892 [IMP] summernote: change lib for overwrite method 2015-01-05 10:17:10 +01:00
Christophe Matthieu 1596e45e81 [IMP] website: add summernote lib 2015-01-05 10:17:10 +01:00
Christophe Matthieu 7ce3961693 [FIX] website: update jQuery.transfo lib + adapt code 2014-10-27 10:24:13 +01:00
Simon Lejeune 6e8b678667 [FIX] web: manual update of select2 lib to 3.5.1 version
The previous version of the lib seemed to be in an inconsistent state.
This fix the select2-offscreen class when the page is larger than
10 000px (this situation happens when importing a file with lots
of column).
2014-10-02 15:41:55 +02:00
Simon Lejeune 195fa93168 [MERGE] backend front end integration
Render the top-menu (backend menu or frontend editbar) server-side.
Use Fontawesome icons (mail, timezone, chat).
Refactor website widgets, split Website.editorBarin editorbar, ace, editorbar- content, editorbarCustomize.
2014-06-27 11:03:34 +02:00
chm@openerp.com 58b6aeb01d [IMP] website tour: remove bootstrap Tour lib
bzr revid: chm@openerp.com-20140321110750-ew8rj3nv2jcort1x
2014-03-21 12:07:50 +01:00
chm@openerp.com abfccd8936 [WIP] website tour: bootstrap-tour - v0.9.1
bzr revid: chm@openerp.com-20140320151542-blfr1rs1j24xanh8
2014-03-20 16:15:42 +01:00
Christophe Simonis d504764eff [MERGE] forward port of branch saas-3 up to revid 9298 chm@openerp.com-20140311130852-3ft0v1mc9ht1any6
bzr revid: chs@openerp.com-20140311145205-s56fj113fsrnisc3
2014-03-11 15:52:05 +01:00
Paramjit Singh Sahota 89de7d9f25 [MERGE] Merged lp:~openerp/openobject-addons/saas-3
bzr revid: psa@tinyerp.com-20140227114202-g2yw8pmsn4v0lm05
2014-02-27 17:12:02 +05:30
Paramjit Singh Sahota 2e49e46698 [FIX] Fixed the sliding issue of carousel library in IE9. The transition was not working in any snippet
bzr revid: psa@tinyerp.com-20140221061236-7jcbgae7m081pjv8
2014-02-21 11:42:36 +05:30
Paramjit Singh Sahota e776245b8b [ADD] Added jquery.placeholder lib. because IE9 is not supporting the placeholders.
bzr revid: psa@tinyerp.com-20140220100716-01mjib3w692qdgi1
2014-02-20 15:37:16 +05:30
Christophe Matthieu 1b52723e97 [IMP] website: remove bootstrap in addons/website and use bootstrap from web
bzr revid: chm@openerp.com-20140211110457-cmqdhbs6wugqt14x
2014-02-11 12:04:57 +01:00