Commit Graph
7204 Commits
Author SHA1 Message Date
Christophe Simonis 856476d441 [MERGE] forward port branch saas-12 up to b1b700a 2016-09-22 15:23:45 +02:00
Christophe Matthieu 0777af3e60 [IMP] qweb: Add extra condition branching (t-elif) (closes #3b3dbcd)
To have the same feature client and server side (t-elif was added in the qWeb client side)
2016-09-19 11:24:56 +02:00
qsm-odoo f98aa664df [FIX] web: fix low perf. of web_tour when a modal is opened
When a modal was opened, the system seemed slower because a web_tour
callback was called every 500 ms.

This was because of jQuery. Using the "find" method on a jQuery element
will temporary set an ID on this element for some jQuery reason. So,
when a modal opened, a DOM mutation was caught by the web_tour observer
which then called the "update" method in which a $modal.find
is done... and so an ID was set and a new DOM mutation was caught again.

The solution here is to provide an unique ID on each modal in odoo so
that the find function has not to set an ID, and so does not trigger
any DOM mutation.
2016-09-16 16:43:19 +02:00
Christophe Simonis 5b796318b4 [FIX] web: correctly hide advanced search input for 'is set/is not set' operator 2016-09-16 14:54:43 +02:00
Jitendra Prajapati c129ae36aa [FIX] web: Set focus on first field when opening a modal
This will improve the onbarding of project and the usability in general.

Project: When creating a project a small modal opens with one or more fields, and you have to click on it just to type the project name.

Usability: one many2one (and others), when clicking on "Create and Edit", the focus is set on the first field.
2016-09-16 11:19:15 +02:00
Christophe Simonis f4fc3985b6 [MERGE] forward port branch saas-12 up to 10cde43 2016-09-16 11:03:50 +02:00
Christophe Simonis 10cde43fd4 [MERGE] forward port branch saas-11 up to 4c2b536 2016-09-16 10:34:39 +02:00
Christophe Simonis f8a601cad7 [MERGE] forward port branch saas-10 up to e634a52 2016-09-15 18:55:01 +02:00
Christophe Simonis 784eaf28dc [MERGE] forward port branch 9.0 up to 6647e1f 2016-09-15 16:45:13 +02:00
Christophe Matthieu a2946f72d9 [FIX] web: error when click twice on "Salary Structures Hierarchy" 2016-09-15 11:44:37 +02:00
Christophe Simonis 5adca2bc46 [MERGE] forward port branch saas-6 up to 2fa3591 2016-09-15 11:02:44 +02:00
Christophe Simonis 2fa3591a9b [MERGE] forward port branch 8.0 up to 9874892 2016-09-15 10:49:55 +02:00
Nicolas Lempereur 1da79b872e [FIX] web: keep m2m value in list view
Currently, when rendering a list view cell with a many2many we would
empty the list of ids, and fill it again once a name_get is resolved.

But in some instance, the code could use the data when it has been
emptied out.

For example, if we set the tax_id field (inside the order_line list view
inside the sale.order form view) as requred, if we modify the order line
and save directly (without clicking outside of the list view) we can get
an incorrect error saying that the "Order Line" is not valid.

It has been reproduced when saving with CTRL + SHIFT + S on google
chrome and firefox, and there have been reports that for some
configuration it also happen when clicking on the "Save" button.

This commit change the behaviour so the value is kept whilst the name_get
is ongoing, and just use a default "false" value for the name during this
interval.

closes #13478
opw-668067
2016-09-14 15:52:48 +02:00
Christophe Matthieu c2f47139f3 [FIX] web: error in pivot view when click on the corner of the dropdown to select a group (eg: + total) 2016-09-14 15:20:38 +02:00
Christophe Simonis 25f271c099 [MERGE] forward port branch saas-12 up to 13765b5 2016-09-14 12:39:12 +02:00
Christophe Simonis 13765b59c3 [MERGE] forward port branch saas-11 up to 19b4f5e 2016-09-14 12:06:31 +02:00
Denis Ledoux 4e7981f7ac [FIX] web: prevent search dropdowns to close on click inside
The class `oe-search-options`
has been renamed to `o_search_options`
at the revision
977db823c7

See the full explanation of the bug fix here:
4601b044a6e4dbf162cfca9bf0be5ff2a21dd4f5q
2016-09-13 18:22:39 +02: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
Christophe Matthieu 8182d98ac7 [FIX] web: traceback when click on logo 'Edit Company data' button 2016-09-12 10:10:49 +02:00
Christophe Simonis 298e2032ea [MERGE] forward port branch saas-12 up to 9f28139 2016-09-09 18:13:31 +02:00
Fabien Meghazi 75f60f6941 [ADD] web: Add extra condition branching (t-elif, t-else)
A new preprocess method is added to the template engine in order to do
preprocessing/sanitization of the templates before compilation.
This method can be overloaded in order to add new features such as
translation, ...
2016-09-09 18:03:08 +02:00
Christophe Simonis 7a02b90e17 [MERGE] forward port branch saas-11 up to dc4d6b6 2016-09-09 15:43:06 +02:00
Christophe Simonis dc4d6b6a7a [MERGE] forward port branch saas-10 up to e1bd405 2016-09-09 15:14:39 +02:00
Christophe Simonis e1bd405d8c [MERGE] forward port branch 9.0 up to af87c57 2016-09-09 11:49:48 +02:00
Christophe Matthieu 2adcf523cf [FIX] web: company image not update when use 'Edit Company data' button
Wrong class selector and must add '#' to force the browser to reload the picture because the picture is in the cache with the previous cache informations.
2016-09-08 16:17:04 +02:00
Christophe Matthieu 8bb4d9df68 [FIX] web: traceback when click on 'Edit Company data' button
Try to bind event without wait the action deferred
2016-09-08 16:15:30 +02:00
Martin Geubelle 3f0fc7219c [REF] sales_team, web: remove sales_team_dashboard view
The view `sale_team_dashboard` (which extends kanban) has been removed
and replaced by a default kanban view.

To use it in the ViewManager, an option `js_class` is added
on the arch description and this class be used as the View.

This avoids creating a new view type just for one view.
2016-09-08 09:15:30 +02:00
Martin Trigaux 360a2c5724 [FIX] web: untranslatable term
Do not translate variables content, does not make sense
Its value should be translated earlier
2016-09-07 11:19:21 +02:00
Pierre Masereel 8e65b57df7 [FIX] web, web-kanban: update dataset size at record's drop in a column
When we drag and drop a record in a folded column, the number of elements
in this column displayed  in the column title is not updated.
This issue is present because when a record is droped in a column
its id is not added to the dataset of its new column.

To fix this, we had to add the id of the record in the dataset, and
override the method 'add_ids' in 'DataSetSearch' to have the size
of the dataset equal to the number of ids in it. We have replicated
the behaviour of the function 'remove_ids' in the new function 'add_ids'.
2016-09-06 17:15:44 +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
Christophe Simonis 1a77d9d02a [MERGE] forward port branch saas-12 up to 476cb5a0 2016-09-03 23:57:57 +02:00
qsm-odoo 5a1db6cde2 [DEL] web: remove old tour system 2016-09-02 18:09:07 +01:00
Christophe Simonis 55d2e4b7cf [MERGE] forward port branch saas-11 up to bde7f88 2016-09-02 17:23:34 +02:00
Christophe Simonis 54e5bbdf35 [MERGE] forward port branch saas-10 up to 897b9b8 2016-09-02 16:28:28 +02:00
Christophe Simonis 897b9b8fc0 [MERGE] forward port branch 9.0 up to cb1ae53 2016-09-02 15:19:39 +02:00
Christophe Simonis 490f9cfe7e [MERGE] forward port branch 8.0 up to 2559b2c 2016-09-02 14:02:43 +02:00
qsm-odoo d41ed40c70 [IMP] web, website: adapt tour launching to new system
* The debug manager contains a feature to launch tours, adapt it
to new web_tour.tour system
* The website help menu allowed to relaunch tutorial tour in debug
mode. This feature is not adapted to new tour system and was useless
in the first place (debug mode in frontend is barely used anyway).
-> remove the website help menu and the feature
2016-09-02 12:39:06 +01:00
Christophe Matthieu f7cfef83b4 [IMP] web, web_tour: move jquery selector feature addons from tour to web_tour 2016-09-02 12:20:41 +01:00
Christophe Matthieu dbec9f2506 [IMP] web: remove menu tour
(unlaunch, need to create an new test for menu)
2016-09-02 12:20:40 +01:00
Nicolas Martinelli 1bcbca4be3 [FIX] web: statusbar click
When the statusbar is clicked, a `debounce` function prevents a
doucle-click, and therefore making several `write` calls. In debug
mode, the click doesn't work anymore.

For some mysterious reason, the event is propagated to the parent. The
`currentTarget` is not the `li` element, but the parent `ul`. By
setting the `immediate` argument to `true` (execute the first function
instead of the last), this solves the issue.
2016-09-02 12:46:10 +02:00
Nicolas Martinelli 2559b2cf4f [FIX] web: statusbar click
When the statusbar is clicked, a `debounce` function prevents a
doucle-click, and therefore making several `write` calls. On some status
bars, clicking doesn't work anymore.

The reason is because, in some mysterious cases, the event is propagated
to the parent. The `currentTarget` is not the `li` element, but the
parent `ul`. By setting the `immediate` argument to `true` (execute the
first function instead of the last), this solves the issue.
2016-09-02 10:27:41 +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
Raphael Collet 16696b2a05 [FIX] openerp, web: make execute and call_kw invoke methods in the new API
Also refactor the test to prevent private methods to be remotely called.
2016-08-31 17:21:55 +02:00
Denis Vermylen (dve) fbe3608c7e [FIX] web: avoid autoresize duplicates
In web_planner, changing pages would take more and more time after
a few clicks if autoresize was called on textareas. Every time we
would change page, autoresize was called on all textareas and added
an additional textarea for each one, doubling the amount on each page
change.
The autoresize function in dom_utils was checking too shallowly for
duplicates and created a new textarea where autoresize would again be
called upon on a later stage.
This commit fixes both problems.
2016-08-31 17:17:37 +02:00
Nicolas Lempereur 40ceda20eb [IMP] web: pivot don't repeat total header 2 times
opw-687243
2016-08-31 15:56:34 +02:00
Josse Colpaert cc719412d9 [IMP] attachment: binary does not need save as button in widget 2016-08-30 13:59:53 +02:00
Simon Lejeune 1871b33dbf [IMP] web: export: keep compatible fields when switching export type
Previously all the fields were removed when switching export type, even
if they are available in the newly selected export type. This commit
fixes that.
2016-08-26 18:16:35 +02:00
Jeremy Kersten 49b705e862 [IMP] web: allow to custom button_boolean widget
eg:
    <field name="active" widget="boolean_button"
         options="{
            'terminology': {
                'string_true': 'Published',
                'hover_true': 'Unpublish',
                'string_false': 'Unpublished',
                'hover_false': 'Publish'
             }
          }"
    />
2016-08-26 15:21:09 +02:00
Christophe Matthieu 4302dda5a4 [IMP] web/test_new_api: move widget_x2many tour into test_new_api 2016-08-26 13:50:38 +02:00
Martin Trigaux dfb842ea30 [FIX] web: use the correct grammare in error message
The "There *are* more than 42 fishs" form should be used.
Source: @yenthe666 & http://english.stackexchange.com/a/35998
2016-08-26 11:21:18 +02:00