Commit Graph
7930 Commits
Author SHA1 Message Date
Christophe Simonis 57168a9e90 [MERGE] forward port of branch saas-6 up to a669433 2015-09-23 14:34:26 +02:00
Nicolas Lempereur 17ce3fafb2 [FIX] web: m2m tags, wait for deferred
We have to wait that the request getting the fields data is resolved
before using it.

Completing 655b13b0
2015-09-22 17:41:21 +02:00
Yannick Tivisse 0d1240684a [FIX] web: kanbanSelection widget : labels are not mandatory
Coming from hr_recruitment, where kanban_state is displayed, but without the customization
Also, remove lingering options in view, and missing fields for project_issue
2015-09-22 17:08:55 +02:00
Yannick Tivisse e5181b05f7 [FIX] web_kanban, web: KanbanSelection widget refactoring
- Change the widget behavior from asynchronous to asynchronous, by adding 3 related fields
  on the project.task model, which are the custom labels defined for the stage
- Instead of making a rpc call, we are taking directly the labels on the parent for the kanban view,
  or on the view datarecord for the form view
- There are now 2 templates for the kanban view or the form view
- The development has been backported in the community version
- The options attribute has been removed on the project_view.xml file for the kanban_state field
2015-09-22 11:33:58 +02:00
qsm-odoo 3807733be6 [FIX] web: field radio empty value
The get_value method of field radio returned sometines an undefined
value (while it is expected to return false is there is no value).

This caused traceback for siblings fields trying to access the value
of an empty field radio (onchange, ...).
2015-09-21 16:21:14 +02:00
Denis Ledoux a3648fd23a [MERGE] forward port of branch 8.0 up to aabbdc7 2015-09-21 16:01:58 +02:00
Denis Ledoux aabbdc7339 [FIX] web: Safari, download of attachments with accents
The structure `filename*=UTF-8` works in Safari, from
release 6.2 (which is set as version 537 in the user_agent version).

This structure has the advantage to handle the UTF-8 encoding,
and therefore special characters, such as accents.

Therefore, from this Safari release, we use the same format
than other browser. For older releases, we use the format
`filename=`, without UTF-8, ASCII encoded, replacing
special characters by `?`.

opw-649863
2015-09-21 15:30:05 +02:00
Christophe Matthieu b6c987a2fc [FIX] web: Tour test: remove false positive
re-test (element, waitFor, waitNot) because if click on a link to change page, don't want to click again after
2015-09-21 13:45:36 +02:00
Olivier Dony 0f06e5f54f [FIX] tests: outdated resource paths in manual test files 2015-09-18 15:52:11 +02:00
Ravi Gadhia 5bae0ce6f4 [FIX] web: autofocus in autocomplete popup on a m2x field
* When the autocomplete popup list appears, the focus should be on first element in list, in order to quick create a new record if no match
* Tour.js has been modified because jquery ui autocomplete needs a mouseenter event to be notified that this element will be set
2015-09-17 11:34:22 +02:00
qsm-odoo e29745cc47 [FIX] web,project: kanban_selection widget position
Move the project kanban_selection widget out of h1 and make it as
direct child of form sheet. This allows to put it on the right of
oe_title no matter what (+ enterprise compatibility).
2015-09-15 13:17:43 +02:00
Martin Geubelle 70c0c99112 [FIX] web: m2m tags glitch on some resolutions 2015-09-15 11:50:06 +02:00
qsm-odoo 5c76b5958c [IMP] web,website: mimetypes images
* Convert CSS to LESS.
* Put file in assets_common instead of both backend and frontend.
2015-09-15 09:36:10 +02:00
Martin Trigaux 2e8996ce0b [I18N] add missing translations
Fetching was stopped at sale, because reasons
2015-09-15 09:30:37 +02:00
Nicolas Lempereur ee0caa2465 [FIX] web: pivot groupby by field from inherits
A related field used in a group by (filter with group_by in context)
which isn't stored on the model, but stored in the related model should
be allowed to be grouped by uppon on a pivot view.

In 8.0 it wasn't the case, but when adding it as a
 <filter context="{'group_by':'field_name'}" />
it was added in the list of fields.

In saas-6 these group by are only available in the search view, but in
some instance (the field is not stored directly on the model) this could
lead to an error which is fixed by this commit.

closes #8349
opw-647401
2015-09-14 17:55:31 +02:00
Martin Trigaux 1348fee217 [I18N] all: regenerate .pot and pull .po
How great is it to get Odoo (almost) 9.0 (almost) translated?

Clean .tx/config file
Regenerate .pot files
Fetch current translations from Transifex (10% completion)
2015-09-14 17:53:37 +02:00
Nicolas Lempereur f7f436ead5 [FIX] web: date widget, set date when shown
In 36146b3f setting the date of the datetimepicker was done when it was
opened, but only for widget datetime. Thus we could get an issue for a
widget date when we wanted to use it to select two same date.

e.g if we select 23 september for a date, it works. if we then use the
widget on another date, 23 september is selected and it will not trigger
a value change if we leave this value.

This fix adds the date setting when opening the date widget, and also
prevents the bootstrap datetimepicker feature* of closing the widget
when setting the value of the date-only picker.

closes #8506
opw-648619

* this feature is explained in the following issue:
  https://github.com/Eonasdan/bootstrap-datetimepicker/issues/603
2015-09-14 12:44:46 +02:00
Nicolas Lempereur 1fe932a7bc [FIX] web: css for popup search view float position
The widget SelectCreatePopup display the search view drawer directly
after the search view input field. But in current firefox version this
could lead to an issue with float positionning.

fixes #8462
opw-648999
2015-09-14 12:15:10 +02:00
Xavier Morel 9882c8826e [IMP] web: improve Widget.proxy's error reporting
Provide a more informative error message than "undefined is not a
function" when a method passed by name to the events object is missing
on the widget.
2015-09-14 10:20:30 +02:00
qsm-odoo d4c4267dcc [FIX] web: Formview saving when listview editable in edition
In some cases, saving the formview when a listview editable line was
being edited forced the line changes to be discarded.
2015-09-11 11:38:08 +02:00
Christophe Matthieu 614b40b304 [FIX] attachment: fix the close button position 2015-09-11 11:07:07 +02:00
Christophe Matthieu 9c7d366229 [FIX] web: add a check to detect server convert_to_onchange errors. 2015-09-11 11:07:07 +02:00
Nicolas Lempereur 655b13b093 [FIX] web: m2m wait deferred to use fields 2015-09-09 10:36:07 +02:00
Odoo Translation Bot 101540b491 [I18N] Update translation terms from Transifex
Fetch the translations with the option --all to fetch missing languages
and use --minimum-perc 10 to avoid empty files

Fixes #8423
2015-09-08 17:07:59 +02:00
Martin Geubelle 247e586542 [FIX] web: many2many2tags if no color field
If there is no field 'color' on tag model, the colorpicker should not be displayed.
2015-09-08 16:24:32 +02:00
qsm-odoo 1a405ed7c4 [FIX] web: widget_x2many tour
The test was not stable enough since listview editable and onchange
API changes.
+ Some step were wrong (test of the wrong element)
+ Minimize differences with enterprise version (so that the two tests
are testing the same things)
2015-09-08 14:14:31 +02:00
qsm-odoo 3f7d350fe2 [FIX] web: Listview editable
(backport of enterprise version)

Fix various problems with list view editable :
* Click outside which should discard/save the line in edition
* Warnings which should not appear when line is being discarded/saved
* JS test

+ JS code refactoring
2015-09-08 14:14:31 +02:00
qsm-odoo 4932bb13f3 [FIX] web: Tour step without element should not click on body 2015-09-08 14:14:31 +02:00
Yannick Tivisse 49739facfc [IMP] web: Rename 'More' button into 'Action' 2015-09-07 18:25:51 +02:00
Martin Trigaux 613286b0e8 [I18N] export application terms of all modules
Now that most refactoring has been merged

It is better to have red a great work of another culture in translation than never to have read it at all.
― Henry Gratton Doyle
2015-09-07 17:21:58 +02:00
Martin Geubelle 371276dff4 [IMP] web, web_kanban: many2manytags color selection 2015-09-07 14:20:36 +02:00
Christophe Matthieu dd807f02a3 [FIX] web: traceback when save directly after introduce text in m2o
m2o try to open a qui create modal but the form view are closed and $input doesn't exists.
2015-09-07 13:32:15 +02:00
Odoo Translation Bot 927c00525c [I18N] Update translation terms from Transifex 2015-09-06 01:50:52 +02:00
Christophe Simonis 3bb0cb2a50 [MERGE] forward port of branch 8.0 up to 9c8b99a 2015-09-04 18:30:48 +02:00
Denis Ledoux bd9cbdfc41 [FIX] web: sql constraint translation
The `check` decorator expects the context to be in the `kwargs`
or to be the last arguments of the method.

The `call_kw` route, which is decorated by the `check` decorator,
like every route,
expands its kwargs arguments.

Therefore, once in the `check` decorator,
the context is located in the `kwargs` key
of the kwargs.
(More simply, instead of
`kwargs.get('context', {})`
it's
`kwargs.get('kwargs', {}).get('context', {})`

As the context is not retrieved correctly,
the lang is not set correctly either,
and the sql constraints were not translated.

In 7.0, it worked, because there was a double
check, as the call_kw was called trough an rpc
(`dispatch_rpc`) call,
which was decorated by the `check` as well.

As a fix for 8.0, we apply the same logic,
we perform a double check, with an indirection.

The check decorator should probably be
refactored, but this cannot be done
in a stable release such as 8.0.

Closes #3634
2015-09-04 12:58:00 +02:00
Christophe Matthieu 522fcacb21 [IMP] base: assets now directly use /web/content url 2015-09-03 19:31:00 +02:00
Christophe Matthieu 952b03e32d [IMP] web: boot.js display the log only on error or with the debug mode 2015-09-03 19:31:00 +02:00
Simon Lejeune 30e07438b5 [FIX] web: view manager: sanitize type
by ignoring the views which types aren't in the view registry
2015-09-03 18:05:19 +02:00
Arthur Maniet cdb30b507a [ADD] stock_barcode: field widget with barcodes scan + manual input
Barcodes are detected by catching keypresses. When a keypress is not
part of a barcode, it is 'released' by forging a keypress event.
For security reasons, a non-native keypress doesn't trigger the native
input mechanism. So in order to make both barcode-scanning and manual
keypresses work in a field, it is necessary to have a handler listen
to the 'false' keypresses and simulate the native input behaviour.
2015-09-03 11:23:38 +02:00
Raphael Collet 8af431d906 [ADD] web, web_kanban: add archive/unarchive
In kanban views, add archive/unarchive for all records in a column.
In list views, add archive/unarchive in sidebar.
2015-09-02 14:29:42 +02:00
qsm-odoo 4ea032e055 [IMP] web: Backport of useful odoo variables 2015-09-02 12:32:06 +02:00
Jérome Maes 58c9530311 [FIX] im_livechat : fix session binding. Required to bind session on server url from livechat to male it work outside odoo server. In website_livechat, the web.session js namespace is redifined, and i'm still not sure this is a good idea 2015-09-01 21:04:33 +02:00
Aaron Bohy a0cbf891af [REM] *: remove chat menu and timeline view 2015-09-01 20:57:13 +02:00
Aaron Bohy 5907be1f33 [ADD] web: backport of function getPosition()
to compute the offset of a DOM element
2015-09-01 20:06:03 +02:00
Aaron Bohy 294abae968 [IMP] web: dialog: wait for button's onclick handler to close
When a button in the modal's footer has an onclick handler and closes the
modal, the action of closing the modal should wait for the potential deferred
returned by the handler.

For instance, if an handler performs an asynchronous call and, when resolved,
triggers a notification, the notification doesn't reach the webclient if the
modal is already closed because the widgets hierarchy is broken.
2015-09-01 20:05:34 +02:00
Aaron Bohy ac39b03a24 [ADD] web: less mixins for animation and transition 2015-09-01 20:05:25 +02:00
Aaron Bohy 23f0c49bbe [REF] web: backport some classnames renaming
oe_form_binary_form -> o_form_binary_form
oe_form_binary_file -> o_form_input_file

Required for new design compatibility (classnames accessed in addon mail)
2015-09-01 20:05:20 +02:00
Aaron Bohy 4989033fe0 [IMP] web: searchview: options to disable parts of the menu 2015-09-01 20:05:15 +02:00
Aaron Bohy 0fe349def2 [IMP] web: sidebar: generalize it for client actions 2015-09-01 20:05:09 +02:00
Aaron Bohy 5bd8e02dc8 [IMP] web: action_manager: update client action's title
when the widget's title changes, as it is displayed in the breadcrumbs
2015-09-01 20:05:05 +02:00