Commit Graph
7941 Commits
Author SHA1 Message Date
Leonardo Rochael Almeida 60af7cac02 [IMP] replace simplejson with stdlib json
The stdlib version of the json library is more recent than the 3.5.3
version we are pinning in `requirements.txt`

There is no reason to use it.

Closes #6940
2015-09-28 10:53:32 +02:00
Leonardo Rochael Almeida 06b3026bcd [IMP] unittest2 > unittest
The `unittest2` package is simply a backport of `unittest` from the
Standard Library of Python 2.7 to previous versions.

There is no reason to use it any longer.

Closes #6941
2015-09-28 10:37:27 +02:00
Jérome Maes 8ffca19680 [FIX] web : attachment controller got unexpected args
On webclient, on 'Attachment(s)' dropdown (form view) when clicking on an attachment to download it, a request is sent to /web/content/ with a param 't' containing the current date. This param wasn't used neither before the new controller, but the old one accept additional kwargs. The new controller crashes, and since the t parameter is not used, removing it seems better.
2015-09-25 16:05:44 +02:00
qsm-odoo 8ebdff6f76 [REF] web: datepicker widget
(backport of enterprise version)

* JS/XML refactoring
* Allow user to override default options for the picker
2015-09-24 17:05:28 +02:00
Martin Geubelle 1b3939a8b1 [IMP] web, web_planner: add wow effect on button
* As the animations were already defined in web_planner, they are now moved in web (animations.less)
2015-09-24 15:14:12 +02:00
qsm-odoo 333018640a [FIX] web: record selector state in listview editable
Before this commit, when editing a line in a listview editable, the
record selector (checkbox) lost its state after the line edition.
2015-09-24 14:40:17 +02:00
qsm-odoo cbf25a83f4 [FIX] web: invisible element position in a listview editable
Elements which are not displayed (display: none) cannot be positionned
correctly by jQueryUI in a listview editable. Therefore, the solution is
to make them visible (but opacity: 0) during the time their position is
being computed.

This was a problem because a listview editable field may become visible
under some conditions AFTER their position was already computed.
2015-09-24 14:40:17 +02:00
Christophe Matthieu 7e8fa2aac5 [FIX] web: trigger onchange only once when write re-order sequences 2015-09-24 14:13:55 +02:00
Christophe Matthieu 19dfde8558 [FIX] web: don't trigger remove then add the record to re-order list view
To re-order the list view remove the record and add the same record after.
(If an onchange is called, the user can have a message to avoid remove a one2many item)
Add an silent option on remove function of collection, the trigger is already call when write the sequence.
2015-09-24 14:13:55 +02:00
Christophe Matthieu 7a465bf7c7 [FIX] web: clone values in read_ids (avoid external changes)
Some widgets like list editable use and change values dictionary. When the write is called, the values in the cache is equal to the changes send => field no dirty => no change triggered.
2015-09-24 14:13:55 +02:00
Martin Geubelle e89d528788 [IMP] web, web_planner: move 'Help' in systray
* 'Help' has now its own dropdown, directly accessible in the systray, instead of being hidden in the Administrator dropdown
* 'About' has been moved there also
* We can access the planner through this dropdown, even if the planner is hidden (complete)
2015-09-24 11:25:43 +02:00
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