Commit Graph

5983 Commits

Author SHA1 Message Date
Christophe Matthieu 3630c0fc14 [FIX] tour: display username in log for point of sale module 2014-08-20 17:54:10 +02:00
Christophe Simonis ddef2dd10a [MERGE] forward port of branch saas-3 up to 8f13e83 2014-08-20 17:51:20 +02:00
Christophe Simonis 8f13e8320e [MERGE] forward port of branch 7.0 up to d0a0b7d 2014-08-20 17:45:05 +02:00
Géry Debongnie 53a5c6d241 [FIX] correct domain for autocomplete in many2one
The domain was using '=', which is correct when selecting a specific
element in autocompletion, but not when searching for all elements
matching a string.
2014-08-20 11:55:15 +02:00
Sébastien BEAU 3b901f0aa0 [FIX] web: ignored readonly attribute on image widget 2014-08-19 15:27:36 +02:00
fka-odoo 9247c37de7 [FIX] web: rendering issue in mail composer on Firefox
The cleditor width does not include the margins. Setting 100% will make the editable area too large (104%) on Firefox (opw 611700).
Replaced by auto, the default value adviced by CLEditor.
2014-08-19 11:55:53 +02:00
Denis Ledoux dcd26acccf [FIX] web: do not focus if the focus_field is not a field
Sometimes, focus_field could be a button, and in such cases, we should not focus on it

opw-612045
2014-08-14 17:33:59 +02:00
Jérome Maes 1a9b9442ac [FIX] base : context evaluation with active_id server side. It now keeps the active_id in case of a refresh. 2014-08-14 16:00:18 +02:00
Thibault Delavallée 6389181e8f [FIX] web: CharDomain form widget: fixed change selection
button not correctly displayed depending on the effective_readonly
parameter. It is now correctly computed.

Also added a link to see records when in view mode, instead of not
being able to see the selection if not in edit mode.
2014-08-14 13:10:26 +02:00
Olivier Dony e11eddf753 [MERGE] Forward-port of saas-5 up to 20cc18d 2014-08-13 20:46:47 +02:00
Olivier Dony 2a94d1d811 [MERGE] Forward-port saas-4 up to 2694ed1 2014-08-13 17:34:27 +02:00
Olivier Dony 2694ed1472 [MERGE] Forward-port saas-3 up to b9275da 2014-08-13 17:33:12 +02:00
Olivier Dony b9275da8a5 [MERGE] Forward-port 7.0 up to 23cffab 2014-08-13 17:30:06 +02:00
Denis Ledoux 8276fb5853 [FIX] export: add the context in the export
In some cases, the data dispalyed in a list depends on the context
This context needs to be passed to the export method, so the exported data reflects correctly the data from the list view
2014-08-13 14:52:01 +02:00
Denis Ledoux fe83c11301 [MERGE] forward port of branch saas-4 up to b49755b
The forward port of the fix 3609ba10f2 will be done separately, as the mrp scheduler has been completely refactored from saas-5.

Conflicts:
	addons/l10n_be_coda/wizard/account_coda_import.py
	addons/point_of_sale/static/src/xml/pos.xml
	addons/procurement/schedulers.py
2014-08-13 10:45:36 +02:00
Denis Ledoux b49755b545 [MERGE] forward port of branch saas-3 up to 591326c 2014-08-13 10:29:14 +02:00
Denis Ledoux 8a7728790b [MERGE] forward port of branch 7.0 up to 60ab6f1 2014-08-12 17:49:12 +02:00
Denis Ledoux 60ab6f111e [FIX] web: on switch form (from list & kanban) do not load record if empty dataset 2014-08-12 17:45:05 +02:00
Martin Trigaux 7a50b3b057 [FIX] web: missing self initialisation
The self is needed in the _value() method below, opw 608878
2014-08-12 16:08:30 +02:00
Denis Ledoux ae65be2b2a [MERGE] forward port of branch saas-5 up to 0739bc4 2014-08-11 15:58:02 +02:00
Denis Ledoux 0739bc4eda [MERGE] forward port of branch saas-4 up to 7ecaab9 2014-08-11 15:31:04 +02:00
Denis Ledoux 7ecaab9fe2 [MERGE] forward port of branch saas-3 up to 2f4be42 2014-08-11 15:30:37 +02:00
Denis Ledoux 2f4be42d8c [MERGE] forward port of branch 7.0 up to 3632949 2014-08-11 15:28:54 +02:00
Denis Ledoux 3632949cff [FIX] web: image fields re-render on next/previous
By default, on binary images read, the server returns the binary size
This is possible that two images have the exact same size
Therefore we trigger the change in case the image value hasn't changed
So the image is re-rendered correctly
2014-08-11 14:39:50 +02:00
Cedric Snauwaert 576e3c776a [FIX] css: add display table rule to oe_popup_form class
To correct the display of the "add contact" wizard in modal (buttons not well placed)
2014-08-11 14:20:49 +02:00
Thibault Delavallée 765beaa0c9 [FIX] web: form view: priority and kanban widgets cleaning, now more like classic form widgets (edit mode: use set_value, view mode: perform a write) 2014-08-11 10:44:21 +02:00
Christophe Simonis 135962184d [FIX] web: make search by `id` possible.
+ correct tests
2014-08-06 17:27:27 +02:00
Christophe Simonis dc9bcf479d [FIX] Allow search on `_inherits` fields.
As `_inherits` fields are now handled via `related`
fields (not stored, obviously), a new descriptor
`searchable` has been added to `fields_get()` result
to indicated if the field is searchable or not.
2014-08-06 15:01:01 +02:00
Cedric Snauwaert 81415b526b [FIX] web: tooltip container set to body in all case
Mandatory since we changed the structure of the dom since 8.0.
2014-08-05 13:57:49 +02:00
Christophe Simonis 7b3e28dc74 [FIX] web: redirect "My Odoo.com Account" link to accounts.odoo.com 2014-08-04 16:00:33 +02:00
Cedric Snauwaert 12a9e3797d [FIX] web: multiple opened modal need fixing since bootstrap lib update 2014-08-01 14:53:48 +02:00
Olivier Dony 494ecc620f [MERGE] Foward-port saas-5 up to ee4df1e 2014-08-01 14:24:07 +02:00
Olivier Dony ee4df1e397 [MERGE] Forward-port saas-4 up to 8b15482 2014-08-01 13:06:49 +02:00
Cedric Snauwaert 29cdfc62a7 [FIX] web: remove unneeded overflow-y on modal-body class
Will fix problem where opened dropdown list were hidden behind the modal footer
2014-08-01 11:52:34 +02:00
Cedric Snauwaert 5ddc0305cd [FIX] web: fix tooltip that were stuck visible
tooltip stuck visible should be removed on click + remove tooltip container except for modal in order to prevent them for staying visible in some rare occasion
2014-07-31 17:33:27 +02:00
Christophe Simonis f643660f16 [FIX] web: css tweaks 2014-07-31 16:06:05 +02:00
Christophe Simonis fd4fd35e32 [MERGE] forward port of branch saas-5 up to e4cb520 2014-07-30 20:52:14 +02:00
Christophe Simonis e4cb5202a0 [MERGE] forward port of branch saas-4 up to fa07bc8 2014-07-30 20:30:14 +02:00
Cedric Snauwaert 7127d2cdc3 [FIX] web: fix multiple modal closing (e.g. set defaults)
move call trigger('closing') after the modal('hide') call to prevent element being destroyed before we could do that call leaving a backdrop visible
2014-07-30 09:39:03 +02:00
Denis Ledoux 64ed698a58 [FIX] web: return _super deferred in start method
Forget to include the _super method in the deferred returned by the start function of the search view
See previous rev. 70605240a9
2014-07-29 19:43:56 +02:00
Denis Ledoux 70605240a9 [FIX] web: headless search views are ready from start
function start, line 783, filters_ready waits for fields_view_get deferred to be resolved before calling prepare_filters, which prepare the view filters.

The thing is that, at line 416, if this.headless boolean is true, the searchview is marked as ready (by resolving the this.ready deferred), and the fields_view_get deferred will never be resolved, as it is resolved in the else case, where the this.headless boolean is false.

Therefore, in this.headless true case, this prevents the deferred $.when(this._super(), filters_ready) to be resolved, as the deferred filters_ready will never be resolved. Therefore, the deferred returned by the start function is never resolved, and the searchview will never be regarded as ready neither.

In views.js, the ViewManager is marked as ready when the deferred manager_ready = $.when(searchview_loaded, main_view_loaded, this.view_completely_inited) is resolved. In the this.headless true case, as the searchview is never marked as ready, the manager isn't neither.

This leaded to some issues, like the action buttons in form views being disabled on click, and never re-enabled once the action/wizard executed. See opw-610723
2014-07-29 19:38:28 +02:00
Denis Ledoux 88c022dfc8 [MERGE] forward port of branch 7.0 up to bbb8d8f25a 2014-07-29 11:42:10 +02:00
Denis Ledoux bbb8d8f25a [MERGE] forward port of branch 7.0 up to 767d2ea9a6 2014-07-29 11:35:19 +02:00
Denis Ledoux 767d2ea9a6 [FIX] web: on refresh, do search_read with fields passed 2014-07-28 19:02:11 +02:00
Olivier Dony bcd9456db5 [REVERT] 8b41906: disabled all on_change on new record form
This reverts commit 8b41906bf8.
2014-07-25 12:45:21 +02:00
Vidhin Mehta eb08c12b09 [FIX] web: wrong tooltip display for long menus
Due to the switch to Bootstrap 3.2 in this version, tooltip auto placement works erroneously (see https://github.com/twbs/bootstrap/issues/13897).
This is a workaround, waiting for a fix in Bootstrap assets.

(Closes #1341)
2014-07-24 15:21:32 +02:00
Martin Trigaux 8b41906bf8 [FIX] web: avoid trying to access to deleted record message when change password
The onchange call can be made with empty ids list (which would fail). opw 610810
2014-07-24 12:12:33 +02:00
Martin Trigaux f9d43e83c6 [FIX] web: correct rev 680f955
Missing backport of commit f652402 for buffered dataset
Again, should not be forwardported
2014-07-23 12:31:25 +02:00
Anaël Closson 680f9554b4 [FIX] web: reload after wizard when record has been removed cause exception
If an action unlink the current records (e.g. unreconcile on account.move.reconcile), trigger history_back to avoid errors when trying to reload inexistant record (opw 607883)
This is a partial backport of saas-4 code (rev c0db6ae, 162ad1c) and should not be forward ported.
2014-07-22 13:18:00 +02:00
Richard Mathot 6f1b820d33 [REF] OpenERP --> Odoo in various UI texts (2)
Some things missed by commit 8b67a7202d
2014-07-18 14:59:38 +02:00
rlu-odoo 8b67a7202d [REF] OpenERP --> Odoo in various UI texts
Rebranding has been done in:
- data/demo files
- html templates
- help notices
- comments
- logger messages
- and other various messages

(Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08)

Closes #1260
2014-07-18 13:45:41 +02:00
sle-odoo 736c5dd87e Merge pull request #1097 from odoo-dev/8.0-fix-view-editor-sle
[FIX] view_form: use the reference of menu from the instance, not from t...
2014-07-14 13:51:46 +02:00
Christophe Matthieu 9b8e307eb1 Merge pull request #1143 from odoo-dev/8.0-fix-website_sale-chm
[FIX] website_sale: fiscal_position is undefined; website: add user into the tour logs
2014-07-14 12:10:03 +02:00
Christophe Matthieu 6139887f5a [FIX] Tour.js: add user name into the log 2014-07-11 14:37:37 +02:00
Simon Lejeune 239144d519 [FIX] view_form: use the reference of menu from the instance, not from the widget ancestors
Fixes #1024: when using a formview on a non trivial way, the reference of the menu using the widget ancestors may be wrong
2014-07-11 11:51:54 +02:00
Christophe Matthieu 67e15d8d86 [FIX] web: update bootstrap to version 3.2.0; add bootstrap less files 2014-07-10 16:59:31 +02:00
Christophe Matthieu 90335242cf [FIX] tour.js: display a wrong error message when an error is detected with phantomjs test tour 2014-07-09 14:58:19 +02:00
Cedric Snauwaert 94d65557fc [FIX]menu bar: clean up css and few cosmetics 2014-07-07 14:13:41 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Martin Trigaux bce9219488 [FIX] views: when loading an action, the active_* parameters should overwrite previous context 2014-07-04 12:20:51 +02:00
ssh-odoo 6cc4bd4312 [Imp]:Improve configuration warning msg
[imp]:remove space

[rem]:remove code

[imp]:remove changes

[imp]:remove changes

[rem]:remove unused changes
2014-07-03 16:11:15 +05:30
Christophe Matthieu 2ba44c51bd Merge pull request #855 from odoo-dev/master-enable-test-chm
[FIX] website_sale_options: enable tour test; close and return error log without throw error.
2014-07-02 17:35:09 +02:00
Christophe Matthieu 0c1489e8bd [IMP] tour.js: add return when calling error to stop the tour. 2014-07-02 17:06:25 +02:00
Olivier Dony c887e53b32 [FIX] web: force seession context reload when reloading client
The goal is to ensure that HTTP requests
done while reloading the client (e.g. the
menu bar, etc.) do not use a deprecated
session context.

Also undo the previous fix from a0ee2b5
as it would cause other issues (e.g.
prevent setting the admin password/lang
when creating a new db using the db manager)
This logic does not belong in the business
methods of res.users.
2014-07-02 15:18:56 +02:00
Christophe Matthieu ca02d8820a [FIX] website: customize menu stay empty if it's open to quick. Don't throw an exception when the tour have an error: log error and close tour. 2014-07-02 13:54:57 +02:00
Christophe Matthieu 78f87dce34 [FIX] website_sale_options: tour and filter by attributes 2014-07-02 13:00:13 +02:00
Christophe Matthieu 6a2f3e2c2a [IMP] tour.js: raise an error when phantomjs run a tour and an other running tour has been detected. 2014-07-01 13:37:41 +02:00
Géry Debongnie 4ab85f2fb3 [FIX] prevent an incorrect state in autocompletion
When going up and wrapping around, the focus was on a hidden separator,
so hitting enter = stacktrace.  Now, the focus goes on the last
selectable list item.-
2014-07-01 09:39:26 +02:00
Olivier Dony 9132b1d306 [IMP] ir.filters: new filters are local to the menu/action by default
Allow binding an optional `action_id` to filters.
The web client will try to identify the specific
action ID when saving new filters. If no contextual
action exists, the filter is saved globally for
the model.

This will automatically keep filters within their
original menu when there are several menus/actions
leading to a given list of documents.
In some cases the action_id will not match the
filter model, which should be fine (e.g. when opening
a many2one completion popup for model `foo` within
a menu of model `bar`).

It is also still be possible to have a filter apply
to all actions/menus for a given model by manually
deleting the action_id value in the filter
(e.g. via the Manage Filters debug menu).

When updating a filter the action_id value is ignored
so that old global filters will be gradually replaced
by new "local" filters.

Also added an _order to ensure stable ordering of the
filters.
2014-07-01 03:29:05 +02:00
Olivier Dony 686fea4b3e [IMP] search views: more generic name for saved filters
Also rename variables to a more neutral term
that will hopefully remain untouched (custom filters)
regardless of the UI label.
2014-07-01 03:29:04 +02:00
Olivier Dony 3ce42a2ddb [IMP] search: softer CSS for search autocompletion popup 2014-07-01 02:08:47 +02:00
Antony Lesuisse 8de012946b [MERGE] web search lazy autocompletion by ged
Search many2one only when they are slected
Remove dependecy on jquery.ui automcomplete.
2014-06-30 18:32:24 +02:00
Géry Debongnie 88bb66e784 [FIX] fix tests in autocompletion 2014-06-30 16:13:02 +02:00
Géry Debongnie cde4ad1159 [IMP] remove useless code
the 'first' attribute is not used anymore
2014-06-30 14:58:12 +02:00
Géry Debongnie 2c43d60518 [FIX] don't display separators in the drawer
now, separators (defined by the tag 'group'!) are only displayed
in the autocomplete and not in the searchview drawer
2014-06-30 14:42:05 +02:00
Cedric Snauwaert 359ea4a8ff [FIX]do not double bind click on menu due to on_hashchange 2014-06-30 12:27:34 +02:00
Antony Lesuisse 810a2e6357 Merge branch 'master' into master-autocompletion-ged 2014-06-30 01:54:49 +02:00
Christophe Simonis 1f57528bc6 [MERGE] forward port of branch saas-5 up to 8dfd5ea 2014-06-27 16:14:40 +02:00
Christophe Simonis 8dfd5eab01 [MERGE] forward port of branch saas-4 up to a4bc65c 2014-06-27 16:08:09 +02:00
Christophe Simonis a4bc65cdba [MERGE] forward port of branch saas-3 up to bdc4dd4 2014-06-27 16:06:37 +02:00
Christophe Simonis bdc4dd4a65 [MERGE] forward port of branch 7.0 up to 95cff0b 2014-06-27 16:00:28 +02:00
Martin Trigaux 95cff0ba34 [FIX] view_form: backport of commit 180212b999 (opw 609787) 2014-06-27 15:43:11 +02:00
Martin Trigaux 30ac7248d6 [FIX] view_list: hide pager in view group
Displaying the pagert in view group does not make sense as it's not updated when changing filter and every group (even if more than 80) is displayed in view group
2014-06-27 15:28:34 +02:00
Géry Debongnie 2ae0e6b7c3 Merge remote-tracking branch 'odoo/master' into master-autocompletion-ged 2014-06-27 15:06:45 +02:00
Simon Lejeune 4915453b2f [FIX] oe_loading not append at the right place 2014-06-27 15:00:51 +02:00
Géry Debongnie e556fd735e [FIX] ignore separators when moving in autocomplet 2014-06-27 13:57:33 +02:00
Denis Ledoux f55e4a5e14 [FIX] web: no switch_mode trigger if not switched
The switch mode event was triggered even if the view was not actually switched
This leaded to inconsistencies, like adding the view in the breadcrumb history, while the switch did not happen
2014-06-27 13:03:52 +02:00
Géry Debongnie 18da121ae2 Merge remote-tracking branch 'odoo/master' into master-autocompletion-ged 2014-06-27 12:06:15 +02:00
Géry Debongnie 512f7acfdc [IMP] autocomplete now display separators
separators given in the search view are now displayed
in the autocomplete widget
2014-06-27 12:05:34 +02:00
Géry Debongnie 3c1c6888ba [FIX] fix 2 display bugs with expand autocomplete
* the order was reversed
* there was an useless facet with just the string name
2014-06-27 11:40:37 +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
Cédric Snauwaert f909ae9170 Merge pull request #784 from odoo-dev/saas-5-tooltip-fix-csn
[FIX]tooltip: fix various display problems with the tooltip
2014-06-26 13:56:12 +02:00
Cedric Snauwaert 3781167f9b [FIX]tooltip: fix various display problems with the tooltip 2014-06-26 11:19:37 +02:00
tfossoul 45a120d030 [FIX] KanbanSelection: Reload the record_id on form view
When you are on a form view, you click on a left/right arrow(on the top-right of the view) to pass to the next records. If you click on the widget to change the kanban_state, the widget will change the state of the previous record and not for the current because the record_id is not reset
2014-06-26 09:55:26 +02:00
Géry Debongnie 0a4a7f3d20 [IMP] new autocomplete widget
Task #5009

This new autocomplete widget (the one used in the search bar) does not
do remote calls automatically, but on demand. In theory, it should lead
to a better user experience, not having the ui blocked every time long
remote calls are done.

It also has the benefits of bringing us one step closer to not
depending on jquery.ui. Bonus point: the code is quite short (< 200 loc
i believe)
2014-06-25 13:26:41 +02:00
Christophe Simonis 1eaa69d342 [MERGE] forward port of branch saas-5 up to 9e8e365 2014-06-25 12:44:13 +02:00
Christophe Simonis 9e8e3653f2 [MERGE] forward port of branch saas-4 up to f68c835 2014-06-25 12:43:41 +02:00
Christophe Simonis f68c83545a [MERGE] forward port of branch saas-3 up to a66f3dd 2014-06-25 12:33:17 +02:00
Denis Ledoux e1e0cfbba8 [MERGE] Forward-port of 7.0 bugfixes up to e2201369a3 2014-06-24 13:56:51 +02:00
Denis Ledoux e2201369a3 [FIX] web: format.js, toString while parsing date
When attempting to parse client date, value is not always a string.
We force the toString when adding the leading 0, as the replace method is for string
2014-06-24 13:53:02 +02:00
Denis Ledoux 8e83dbff5d [MERGE] Forward-port of 7.0 bugfixes up to 7d3453d119 2014-06-24 12:27:09 +02:00
Martin Trigaux f9ce9a00d0 Merge pull request #17 from savoirfairelinux/7.0-m2m-context
[FIX] view_list: Add context propagation for m2m list view

If the _rec_name field of a model is translatable, the value was not translated when displayed in a list view through a many2many field (e.g. server_action_ids on base.action.rule).
2014-06-23 17:41:03 +02:00
Cedric Snauwaert 0f825ed48e [FIX]modal: when trying to dropdb or change password, if rpc call result in error, modal was stuck 2014-06-23 11:25:22 +02:00
Géry Debongnie 31a8d3db3c Merge remote-tracking branch 'odoo/master' into master-default-order-list-ged 2014-06-23 08:44:24 +02:00
Christophe Simonis e862ff7033 [MERGE] forward port of branch saas-5 up to 4cb5381
Conflicts:
	openerp/addons/base/module/wizard/base_module_upgrade_view.xml
2014-06-22 15:36:10 +02:00
Christophe Simonis 4cb5381dee [MERGE] forward port of branch saas-4 up to 1f20f61 2014-06-22 15:33:22 +02:00
Christophe Simonis 1f20f61ab4 [MERGE] forward port of branch saas-3 up to 75884c3 2014-06-22 15:30:57 +02:00
Christophe Simonis 75884c3e1a [MERGE] forward port of branch 7.0 up to 7e85786 2014-06-22 13:44:30 +02:00
Jacques-Etienne Baudoux 7e85786b83 web: do not select the first result if click on search more
When searching for a record in a m2o field, if we click on 'search more' we loose the focus on the field and select the first suggestion (which triggers potential on_change). This prevents the selection for this case.
2014-06-20 17:41:09 +02:00
Christophe Matthieu e7ccf52043 Merge pull request #696 from odoo-dev/master-tour-change-retry-delay-chm
[IMP] tour.js: change delay time for retry to load a tour
2014-06-20 17:28:53 +02:00
Christophe Matthieu 081487679f [IMP] tour.js: change delay time for retry to load a tour 2014-06-20 17:27:10 +02:00
Martin Trigaux bccd75796e [IMP] web: allow fields in list view to use the attrs readonly to dynamically show and hide the fields 2014-06-20 14:11:21 +02:00
Mehul Mehta a6b9413a78 [ADD] Add a icon for remove pictures from product and partner 2014-06-20 12:52:24 +02:00
Christophe Simonis 6bc5218718 [MERGE] forward port of branch saas-5 up to c9f6587 2014-06-20 12:31:48 +02:00
Christophe Simonis c9f6587dbc [MERGE] forward port of branch saas-4 up to 4be9142 2014-06-20 12:30:44 +02:00
Christophe Simonis 4be9142c11 [FIX] web: regenerate messed up `base.css` during commit 5087612 2014-06-20 12:27:55 +02:00
Christophe Matthieu 0da4276838 [IMP] tour.js: improve log messages 2014-06-20 10:53:07 +02:00
Christophe Matthieu 5165b52b43 merge upstream 2014-06-19 18:46:49 +02:00
Christophe Matthieu d89c36866e [IMP] tour.js: less flickering and clean code 2014-06-19 18:10:38 +02:00
Christophe Matthieu 2d686988a4 [FIX] tour.js: forgotten backdrop and orphan css 2014-06-19 17:52:32 +02:00
Christophe Matthieu f8b23df55a [FIX] tour.js: fickering of the popover in tutorial mode in backend 2014-06-19 17:29:39 +02:00
Christophe Matthieu 148a332b4a [FIX] tour.js: don't throw error in tutorial mode; error with multi ajax request (change page, data...) 2014-06-19 17:14:37 +02:00
Christophe Simonis eef6330c55 [MERGE] forward port of branch saas-5 up to adf07a9 2014-06-19 16:23:32 +02:00
Christophe Simonis adf07a9490 [MERGE] forward port of branch saas-4 up to 5087612 2014-06-19 16:13:35 +02:00
Christophe Simonis 5087612d1d [MERGE] forward port of branch saas-3 up to bf53aed 2014-06-19 15:44:07 +02:00
Christophe Simonis bf53aeda94 [MERGE] forward port of branch 7.0 up to e5533d0 2014-06-19 15:32:32 +02:00
Denis Ledoux 893e4aae9f [FIX] web: focused field in view editable list
When adding an item to the editable list, the focused field was no longer the first visible field
This is related to revision 4a508885ac
visible_columns list is not ordered
2014-06-19 14:58:44 +02:00
Thibault Delavallée cb7d43864a [FIX] Fix attach icon that was under the upload label. 2014-06-19 12:56:46 +02:00
Géry Debongnie 3d43f9d454 [FIX] fixes searchbar navigation (web client)
the code handling the keydown events was moved, but the variable this
was not adjusted accordingly, resulting in a broken navigation.

It is now possible to press LEFT and RIGHT again to move the focus
between facets.
2014-06-19 12:43:25 +02:00
Christophe Matthieu 14e29ce321 [FIX] tour.js: clear localStorage before testing; add a better log title 2014-06-19 12:19:30 +02:00
Thibault Delavallée 1a639ccd03 Merge pull request #138 from odoo-dev/saas-3-bug_1307341-ptr
[FIX] kanban: ie9: fixed the display of 'show more' button
2014-06-19 12:04:32 +02:00
Christophe Matthieu 9f36a77b7b [FIX] website: wrong cycling error message 2014-06-18 15:27:20 +02:00
Christophe Matthieu ffe8590183 [FIX] tour: check if the tour is already finish before check next step 2014-06-18 15:12:52 +02:00
Christophe Matthieu fd0e0323ba [FIX] Tour: error log fail; template of modal 2014-06-18 13:11:17 +02:00
Christophe Matthieu 1c8e3c3156 [IMP] Tour: add tour in web module; tour became available in backend. 2014-06-18 12:25:53 +02:00
Christophe Matthieu bc3fc54fac [IMP] Tour: add tour in web module; tour became available in backend. 2014-06-18 12:25:13 +02:00
Denis Ledoux 86b80cf95e [FIX] web: allow using dates and datetimes without leading zeros 2014-06-18 11:12:27 +02:00
Denis Ledoux a32e989fba [FIX] web: save date(time) field value on key enter in editable list
In editable list, on keypress enter, the _next method is called, saving the current line and starting the edition of the next one
The _next is triggered before the date(time) field change event, and, therefore, the saved value of the date(time) field is the old one
2014-06-17 12:56:13 +02:00
Denis Ledoux 3c0292645f [MERGE] Forward-port of 7.0 bugfixes up to 63ea0df73f 2014-06-16 17:37:10 +02:00
Géry Debongnie 5f09c7dedc [IMP] improves sorting mechanisms in datasets
Create a deserialize_sort method and add a set_sort method to
datasets.  The set_sort method is useful to avoid duplicating code
in lists and kanban views (to set the initial default order)
2014-06-16 10:44:23 +02:00
Géry Debongnie cb7450acec [IMP] improves the default order parameter
It is renamed 'default_order' and now supports the usual syntax for
sorting fields: for example 'field1, field2 desc, field3 asc'
2014-06-13 14:55:26 +02:00
Géry Debongnie 4c0222355d [IMP] add default order parameter to list views
List views can now be sorted by default with a simple keyword 'order'.
For example

...
<field name="arch" type="xml">
    <tree string="Product Variants" order="name">
        <field name="name"/>
        ...
2014-06-13 11:57:18 +02:00
Denis Ledoux 4a508885ac [FIX] web: view_list_editable, on add an item, focus on the first cell of new row
Before, the focus was set on the first row, and, thererefore, if the list was enough long, it jumped out and the actual new row was hidden
2014-06-12 20:03:50 +02:00
ged-odoo 74168c4e9d Merge pull request #272 from odoo-dev/master-inline-searchview-ged
[MERGP] Inline Searchview

This task split the searchview in two parts: SearchView and SearchViewDrawer. The drawer is displayed inside the main view and the searchview stays in place.  It also changes the scrolling behavior of the web client: the main view area can scroll without affecting the UI (so the various menus stays in place)

Because of this, other large changes have been made:

the drawer has been redesigned,
the Custom Filter widget has been split in two (Custom Report and SaveCurrentFilter),
the main view is now scrollable, so the UI stays in place and only the view can change
The text 'Group By...' has been changed into 'Group By' (most addons had to be modified)
bootstrap classes are used when it makes sense (for example, badge)
the left menu is also scrollable (separately from the main view)

It is likely that some stupid bugs have been introduced.  Please don't hurt me.
2014-06-12 16:27:11 +02:00
Géry Debongnie c73736694e [FIX] css hack to make it work with IE9
hopefully, it should allow IE9 to correctly display the web client
content
2014-06-12 14:14:28 +02:00
Martin Trigaux 0b4921e4d6 parse_value: interger != float
Wwhen parsing a integer field, do not accept float values. '1' or '1.0' is ok but not '1.1'. (opw 608544)
2014-06-12 13:48:41 +02:00
Géry Debongnie b9135264b9 [FIX] fix scrolling in left menu in Firefox
and possibly also in IE
2014-06-12 10:39:49 +02:00
Fabien Meghazi ba3ce4753b Set form views default @version="7.0" 2014-06-11 14:03:20 +02:00
Géry Debongnie 6f8c5bf51e [FIX] probably fix scrolling issue in left menu
it seems like there is some issues with the max-height property in
some browsers.
2014-06-11 11:16:54 +02:00
Géry Debongnie b5a81f1da0 [FIX] perhaps really fix the leftmenu scrolling 2014-06-11 11:04:08 +02:00
Géry Debongnie 6bd73f0c0f [FIX] correct a problem with left bar scrollin 2014-06-11 10:51:58 +02:00
Géry Debongnie af58bc5914 Merge remote-tracking branch 'odoo/master' into master-inline-searchview-ged 2014-06-11 10:10:58 +02:00
Thibault Delavallée 43f9b18183 [FIX] web: form_view: fixed event variable name in chardomain widget (hidden in chrome but make the widget crash in firefox) 2014-06-11 08:56:42 +02:00
Géry Debongnie 048e8b29df [FIX] remove a css property that caused issue
with the view_manager_header layout
2014-06-10 16:43:25 +02:00
Géry Debongnie 63c702f009 [IMP] better layout with pure css for web client
this patch removes javascript calls to adjust the layout.  It manages
to do the correct layout with only css, which will correct quite a few
issues.
2014-06-10 16:22:02 +02:00
Christophe Simonis a7c2125735 [MERGE] forward port of branch saas-4 up to 6b8e972 2014-06-10 13:15:46 +02:00
Christophe Simonis 6b8e9727e5 [MERGE] forward port of branch saas-3 up to 4601d85 2014-06-10 12:29:47 +02:00
Christophe Simonis 4601d85944 [MERGE] forward port of branch 7.0 up to 6fdb783 2014-06-10 11:49:14 +02:00
Christophe Simonis ab9ac783db [FIX] web: many2many field handle "no_create" option 2014-06-05 13:46:53 +02:00
Géry Debongnie 52a8c4cf9a [MERGE] merge from master 2014-05-30 20:21:03 +02:00
Christophe Simonis ee304fa65f [IMP] replace OpenERP by Odoo in backend + change company default logo. 2014-05-30 17:30:36 +02:00
Géry Debongnie c522fe6add [FIX] compute the correct offset to adjust view
the jquery method length() compute the height of its element, even if
it is diplay:none.  But in our case, we want the offset to be zero if
there is no visible view_manager_header.  (for example, general settings
in settings menu)
2014-05-30 15:10:18 +02:00
Géry Debongnie 803b8b0b14 [FIX] change css to prevent unreachable fields
in drawer, advanced search, it can happen that the form extends out
of the drawer.  Overflow:auto at least allows the user to interact
properly with the form.
2014-05-30 12:15:48 +02:00
Géry Debongnie 18581ad851 [FIX] crop the text in drawer when it is too long 2014-05-30 12:12:49 +02:00
Géry Debongnie 6cbf8c5a28 [FIX] use _.isEmpty instead of Object.keys
Object.keys is not supported by all browsers (*cough* IE *cough*).
Also, bonus, isEmpty is more readable and more 'semantic'
2014-05-30 11:33:56 +02:00
Géry Debongnie 1a7101d94e [IMP] scroll back to top when opening searchview 2014-05-30 09:58:07 +02:00
Géry Debongnie 6b4a227cd4 Merge remote-tracking branch 'odoo/master' into master-inline-searchview-ged 2014-05-30 09:22:12 +02:00
Olivier Dony e276ac33f6 [MERGE] Forward-port saas-4 up to bf135ad 2014-05-28 17:45:31 +02:00
Géry Debongnie f4bcf5fa28 [FIX] adjust viewtop when breadcrumbs are involved
due to the way breadcrumbs work, the method adjust_view_top was
not called at the correct time.  This had the unfortunate consequence
that the main view was on top of the header.
2014-05-28 16:44:54 +02:00
Denis Ledoux 6ed774de61 [FIX] web: on new ir actions act_window target current, change the active* params from context for the dataset only
This fix is related to a37bad205b
This previous fix did solved the issue of its purpose, but had a side effect for actions using these active* params, e.g. search views
For instance, Go to Project > Projects, click on any project, you are than redirected to tasks/issues of this project
If you reload the page, an error pops up, complaining that active_id cannot be found
2014-05-28 15:50:02 +02:00
Géry Debongnie 5cc8f9ca42 Merge remote-tracking branch 'odoo/master' into master-inline-searchview-ged 2014-05-28 10:37:16 +02:00
Olivier Dony 04211015fc [MERGE] Forward-port of latest saas-4 fixes, up to 0452851 2014-05-27 20:49:49 +02:00
Olivier Dony fd21abd847 [MERGE] Forward-port latest saas-3 bugfixes, up to 30f43da 2014-05-27 17:18:43 +02:00
Olivier Dony 30f43daa3b [MERGE] Forward-port of latest 7.0 bugfixes, up to aeaa826 2014-05-27 16:50:02 +02:00
Mohammed Shekha 26cb208903 [FIX]Refixed the issue of o2m record duplication 2014-05-27 19:35:09 +05:30
Géry Debongnie 70052e1fd6 [FIX] correct some issues with scrolling area
the height of the oe_view_manager_header is variable, and the top can't
be positioned correctly with pure css without a lot of work, so this
commit adds a touch of javascript to make sure that the view is
correctly positioned.
2014-05-27 14:21:52 +02:00
Thibault Delavallée a26a0e6d30 [FIX] web: chardomain widget: fixed selection of some records in a list (bad domain formatting), fixed domain evaluation tah is done server-side instead of through a stringigy. 2014-05-27 13:31:12 +02:00
Mohammed Shekha 477fa85e55 [FIX]Fixe the issue o2m record duplication. 2014-05-27 10:10:06 +05:30
etenesaca 2097af20b7 * Deleted: oe_m2o_dropdown_option_no_results_to_show AND REUSED oe_m2o_dropdown_option
* Deleted: manually translation in es.po
2014-05-26 11:51:24 -05:00
Denis Ledoux a37bad205b [FIX] web: on launching ir_actions_act_window, reset the active_* params if the target is current
This commit is related to 8d49639933 and b88755c431
When hitting buttons of type object, the active_model and active_id(s) were kept, and, therefore, when calling a feature using the active* args, this feature used the active* args from the previous action.
Nevertheless, concerning wizards, the active* args should be indeed the active* args of the previous action, as wizards expects to have the active* args from the previous action. Thus, we reset these active* args only when this is not a wizard (target === 'current')
For example, from a sales order, hit the 'view invoice' button, and on the invoice, hit the 'send by email' button: The active_id in the send by email wizard were the id of the sale order, not of the invoice
2014-05-26 17:05:02 +02:00
Géry Debongnie bb8b659ce3 [FIX] adjust the tests after changes to the searchview
* oe_searchview_custom has been split in oe_searchview_custom and
oe_searchview_filter: a test need to take that into account
* in adjust_top, the parent might not have a $ method.
2014-05-26 16:43:04 +02:00
Géry Debongnie d657f0f598 [FIX] corrects some display problem in addon web
the drawer was displayed for all views instead of only graph views
2014-05-26 16:29:54 +02:00
Géry Debongnie e9732dab8d [FIX] fix various issues with the drawer (addon web)
* separate the css class oe_searchview_custom into oe_searchview_custom
and oe_searchview_savefilter to be able to style them independently
* by default, the drawer has display:none
* fix a bug occuring when the user removed a custom filter (it hid the
remaining filters)
2014-05-26 15:45:28 +02:00
Géry Debongnie d5f5d07779 [FIX] remove an useless <div> in searchview drawer 2014-05-26 15:02:33 +02:00
Géry Debongnie 5e367d958c [FIX] adjust view top when header height changes
the header height is not fixed, it can change when the breadcrumbs
start a new line, or when there is only one view type (for ex, in most
reporting views).  So, the top value of the view_manager_body has to be
adjusted accordingly.
2014-05-26 14:51:47 +02:00
Géry Debongnie 14d4cd4ad4 [FIX] remove a useless border (css fix) 2014-05-26 13:32:27 +02:00
Géry Debongnie 62900fe01b Merge remote-tracking branch 'odoo/master' into master-inline-searchview-ged
Conflicts:
	addons/crm/crm_case_section_view.xml
2014-05-26 10:06:31 +02:00
Géry Debongnie 6e6ae4cbf9 [IMP] improves the scrolling behaviour
the mail menu is a client action, so not subject to the same template
as regular views.  so, it had to be patched to properly scroll like
other views (meaning: the 'header', left menu and top menu are fixed)

Also, changes the width of the searchbbar into a min-width css property,
to allow it to grow more.  The reason is that we don't want the searchbox
to take two lines (or more), which will force the view_manager_header to be
higher, and which will cause slight issues with the scrollbar (absolutely
positioned)
2014-05-26 09:37:16 +02:00
Géry Debongnie 779aabfc5b [FIX] various css fixes related to scrolling
(1) it seems that position:relative behaviour is undefined in a td,
so it has been moved to the div below oe_application
(2) the left menu bar can now scroll vertically if necessary.
2014-05-23 17:06:50 +02:00
Géry Debongnie b374cf0089 [IMP] fix a css problem with multiple view_manager
when a view_manager is contained inside another, the
css rule for defining a scrollable zone (with position:absolute)
was also applied to the inside view manager.
2014-05-23 16:07:42 +02:00
Géry Debongnie 3c468073d4 [IMP] small css tweaks
correct a few problems introduced by the change to the scrolling area.

Note: body is in overflow:auto to allow scrolling when there is no view
manager (for example, client action)
2014-05-23 15:51:57 +02:00
Géry Debongnie 088b33d0bc [IMP] change scrollable area to main view
Now, only the main view is supposed to scroll (the part below the
header with the view selector).  The left menu, top bar and header
are supposed to stay fixed.  This is done by carefully using
position:relative and absolute.  However, this is likely to
introduce some (many?) issues, perhaps with tooltips position and
such.  The bug hunt is on!
2014-05-23 15:09:48 +02:00
Géry Debongnie 8b132b70c5 [IMP] slightly improve the html structure
of web client: remove an useless div .oe_view_manager_parent
introduced by a clueless developper.
2014-05-23 15:07:09 +02:00
Géry Debongnie c4fc0f5992 [IMP] work on scrollable zone in web client
add a div parent to oe_view_manager_body, and move the searchview
drawer inside oe_view_manager_body.  This is in preparation to the
goal of making the oe_view_manager_body div scrollable
2014-05-22 13:53:26 +02:00
Géry Debongnie a24020e004 [FIX] update the searchview tests
to accomodate the fact that the searchview has been changed.
Two changes need to be accounted:
(1) the drawer html structure has changed (oe_selected class is
replaced by badge, some li tags are replaced by spans, ...) and
(2) the CustomFilters has been split into CustomReports and
SaveFilter, so there is an extra filter in the drawer inputs.

Also, the searchview need a parent to react to the switch_mode event,
so the tests add a fake parent to the view in make_search_view
2014-05-22 09:59:32 +02:00
Géry Debongnie 8159f4a18c [IMP] improves searchview appendTo
after some thought, the extra method insert was not really necessary.
It was at first a way to force the user to give two nodes to determine
where the searchview and the drawer were to be inserted.  However,
the second node can be omitted, a perfectly reasonable default is
to append the drawer just after the searchview.

Then, the role of insert is exactly the same as appendTo, so it makes
sense to override appendTo and remove insert.  Simpler, and the job is done.
2014-05-22 09:55:04 +02:00
Pariket Trivedi 6d65ff1f99 [FIX]:IE9 Kanban: The 'show more' button is not display correctly. 2014-05-22 11:56:28 +05:30
Géry Debongnie 36471c3955 [FIX] correctly loads default filters (addon web)
also, hide/show the custom reports list when it is empty/non empty
2014-05-21 14:27:17 +02:00
Géry Debongnie aec3ba08ae [IMP] improvements to inline searchview (web)
this commit splits the widget CustomFilters in two widgets:
CustomReports and SaveFilter.  CustomReports is the widget
displaying the list of reports, and SaveFilter obviously is the
Save Current Filter widget.

The goal was to put the custom reports in the first column and the
Save Current Filter form in the second.
2014-05-21 13:18:30 +02:00
etenesaca bd8b2e9002 Optimized search fields from m2o
Added translation of the message
Now this style of message in a CSS class and not use HTML tags
2014-05-20 21:16:52 -05:00