Commit Graph

4571 Commits

Author SHA1 Message Date
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
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 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 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
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
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 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 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
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
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
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
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
Fabien Meghazi ba3ce4753b Set form views default @version="7.0" 2014-06-11 14:03:20 +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 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 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 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 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 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 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 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
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
etenesaca 1ce6322bfc Merge branch 'master' of https://github.com/odoo/odoo 2014-05-20 16:08:22 -05:00
etenesaca 49657b28e6 Now when a search is conducted in the fields and not m2o results have a message saying "No results to show" since the show nothing will display the user is confused 2014-05-20 14:58:40 -05:00
Christophe Simonis a756b82372 [MERGE] forward port of branch saas-4 up to revid bb26dea 2014-05-20 20:19:55 +02:00
Géry Debongnie 7c6c720425 [IMP] better architecture for searchview/drawer
Before, the searchview and the searchview drawer had to be instantiated by
the user and appended separately to their correct place.  Now, the
searchview is responsible for creating/destroying the drawer, and the
user is responsible for correctly using the insert method with
the node where the searchview/drawer are to be inserted.
2014-05-20 15:27:44 +02:00
Géry Debongnie 1c32d93115 [FIX] correctly display the searchview/drawer (addon web)
the searchview has been splitted in two widgets: SearchView and
SearchViewDrawer.  They are dependent of each other, so a drawer
has to be created for each searchview.  This was not the case in
some form views (inline, created by a wizard).
2014-05-20 11:41:28 +02:00
Géry Debongnie 72f532a463 [IMP] hide drawer when switching views (addon web)
the drawer wasn't closed when switching views, which might be a
problem when the user switches to a form view.  Also, renames the
variable 'searchview_drawer' to 'drawer'.
2014-05-20 10:54:58 +02:00
Géry Debongnie c70df56174 [IMP] lots of layout work for inline search view (addon web)
mainly to correctly style the custom filters list.
2014-05-19 17:03:05 +02:00
Géry Debongnie 646de9e5af [FIX] add support for default filters in search view
support for default filters was broken in the previous commit,
now it works again.
2014-05-19 15:40:45 +02:00
Géry Debongnie 7e6d223e9e [IMP] work on inline search view in web client
incomplete work.  So far, the search view widget has been split in
two widgets: SearchView and SearchViewDrawer.  The SearchViewDrawer
has been inserted inline, and some preliminary work has been done
to improve the layout.
2014-05-19 14:16:09 +02:00
Cedric Snauwaert cef51e2a50 [FIX]modal: in some particular case, we have 2 actions opening modal one after another, fix problem in those case where second modal was close instead of first one 2014-05-19 14:01:47 +02:00
Sandy Carter 3594dc56da [FIX] Add context propagation for m2m list view
Fix bug https://bugs.launchpad.net/openerp-web/+bug/1279885 :
    Many2many fields in Tree views will not get translated.
    If you check the context for a name_get of a m2m field, it is passed as
    None.

Add context propagation to m2m fields in list views.
Fix translation issues when viewing a a many2many field in a Tree view.
2014-05-16 17:42:20 -04:00
Xavier Morel 477d7ad803 Merge branch 'web-trunk' 2014-05-14 15:13:35 +02:00
Christophe Simonis 08c504d39e [FIX] web: Dialog: avoid triggering "closing" twice. 2014-05-13 13:38:10 +02:00
Fabien Meghazi f3c8cc50c8 [IMP] Include openerpframework in common assets. Add module list in bundle 2014-05-12 17:18:12 +02:00
Martin Trigaux 27a6d2e9f4 Forward-port of latest saas-4, up to revision 3994 (rev-id jke@openerp.com-20140509131203-4gy3nhlj0v6fk7zv) 2014-05-12 10:10:32 +02:00
Cedric Snauwaert dee000be14 [FIX]modal: when closing a modal, focus previous one to allow several escape hit key
bzr revid: csn@openerp.com-20140509094836-yhncaqp60od67w7k
2014-05-09 11:48:36 +02:00
Mahendra Barad b4aa0eb76f [MERGE] [ADD] kanban_state_selection widget, allowing to manage kanban_state-like selection fields using bullet + dropdown; priority widget allowing to manage priorities using stars.
bzr revid: tde@openerp.com-20140508160156-b2jekyiajkjp7bse
2014-05-08 18:01:56 +02:00
Thibault Delavallée 7d5de8d90d [IMP] dropdownselection widget renamed kanban state selection
bzr revid: tde@openerp.com-20140508153418-hs6ix3qouy1fu482
2014-05-08 17:34:18 +02:00
Thibault Delavallée 750cc768c1 [CLEAN] web: cleaned priority widget implementation: cleaned xml / js code
bzr revid: tde@openerp.com-20140508140545-kkogxe1dhbh7ryrk
2014-05-08 16:05:45 +02:00
Richard Mathot (OpenERP) 0ab06fa991 [IMP] Tooltip placement
bzr revid: rim@openerp.com-20140508133931-3ffe66hwgnffvdqu
2014-05-08 15:39:31 +02:00
Vidhin Mehta (OpenERP) 9967c9e19c [MERGE]Trunk.
bzr revid: vme@tinyerp.com-20140508125444-7d1m7qk7bi2hrbmv
2014-05-08 18:24:44 +05:30
Thibault Delavallée dae5ee484a [CLEAN] web: cleaned dropdown selection widget implementation: cleaned css and js code.
bzr revid: tde@openerp.com-20140508123347-ye6pvk1uo5jargec
2014-05-08 14:33:47 +02:00
Barad Mahendra d9f8f11541 [IMP]improve the widget for dropdown selection and priority
bzr revid: mba@tinyerp.com-20140508055735-ekt5gh7w119w2i2j
2014-05-08 11:27:35 +05:30
Barad Mahendra d3410a6924 [Merge]with trunk
bzr revid: mba@tinyerp.com-20140507104547-p7pmav8pez08zf1h
2014-05-07 16:15:47 +05:30
Fabien Meghazi f6e33eca13 [IMP] do_warn on ClientAction not found
bzr revid: fme@openerp.com-20140506122840-01b9xtewp4wcv42g
2014-05-06 14:28:40 +02:00
Fabien Meghazi c033b660e8 [ADD] openerp.loadBundle()
bzr revid: fme@openerp.com-20140506103649-wrfa25boj2chy6gl
2014-05-06 12:36:49 +02:00
Thibault Delavallée 80c77d0355 [FIX] web: view_form: fixed effective_readonly behavior of the
binary multi files widget. The option to add an attachment should
be available only in edit mode.

lp bug: https://launchpad.net/bugs/1314974 fixed

bzr revid: tde@openerp.com-20140505145138-x9iwzp74ha2q0bp2
2014-05-05 16:51:38 +02:00
Vidhin Mehta (OpenERP) e41508cb8d [MERGE]Trunk.
bzr revid: vme@tinyerp.com-20140505043233-2t2e2vb1yv86hyxp
2014-05-05 10:02:33 +05:30
Gery Debongnie 132ccb7180 [MERGE] merge from trunk
bzr revid: ged@openerp.com-20140502123355-9dqpwq1g9rrpisxj
2014-05-02 14:33:55 +02:00
Antony Lesuisse aa943fae18 [FIX] qweb loading concat mode only, increase cache age to one day
bzr revid: al@openerp.com-20140501204242-jngte754yqyj4nb0
2014-05-01 22:42:42 +02:00
Antony Lesuisse 5e21a4235d [MERGE] saas-4 up to dle@openerp.com-20140501121915-q88k37nd25ietw8c
bzr revid: al@openerp.com-20140501172508-tjennzht30ktw3nz
2014-05-01 19:25:08 +02:00
Denis Ledoux b88755c431 [REVERT] 2 previous revision, as it looks like that the fix causes more troubles than it resolve a problem
bzr revid: dle@openerp.com-20140501121633-6umc2sxwi0h0lhay
2014-05-01 14:16:33 +02:00
Fabien Meghazi acf2123123 [MERGE] Web assets moved from manifests to ir.ui.view bundles
bzr revid: fme@openerp.com-20140430151302-e42monb4klz4udw5
2014-04-30 17:13:02 +02:00
Denis Ledoux d59cb1eda2 [FIX] web: missing ; from previous revision
bzr revid: dle@openerp.com-20140430131739-ywyqb1gh68xbxid1
2014-04-30 15:17:39 +02:00
Denis Ledoux 8d49639933 [FIX] web: reset active_model, id, ids on executing button of type object
bzr revid: dle@openerp.com-20140430123727-cnz6k8is2sqe65w0
2014-04-30 14:37:27 +02:00
Cédric Snauwaert af03a3e4e0 [FIX] export: make the 'Close' button works fine with modal
bzr revid: mat@openerp.com-20140430115650-334th9boorlb80aw
2014-04-30 13:56:50 +02:00
Richard Mathot (OpenERP) 03cfbf0f46 [MERGE] from lp:openerp-web
bzr revid: rim@openerp.com-20140430080103-tc4a9ow7rwp3b5nk
2014-04-30 10:01:03 +02:00
Fabien Meghazi f144f3a7c7 [REM] useless load_script
bzr revid: fme@openerp.com-20140430073342-nyjdb88soxggzkvr
2014-04-30 09:33:42 +02:00
Fabien Meghazi 22725bd29f [MERGE] upstream
bzr revid: fme@openerp.com-20140429142729-y4kfuohn4lsklnud
2014-04-29 16:27:29 +02:00
Simon Lejeune 6bef64f513 [MERGE] trunk
bzr revid: sle@openerp.com-20140422123804-dnjnwfyfrpxjgrlo
bzr revid: sle@openerp.com-20140424124720-ihcrqojmnmj0k66q
bzr revid: sle@openerp.com-20140428162227-sbvq5ogtshpz0vw6
bzr revid: sle@openerp.com-20140429124237-dhk3378fvche068v
2014-04-29 14:42:37 +02:00
Kunal Chavda (OpenERP) 6f51331d52 [MERGE][FIX] Position of m2o autocompletion on too small and non scrollable screens
bzr revid: rim@openerp.com-20140429112237-jdnd04gr1t2qot5r
2014-04-29 13:22:37 +02:00
Fabien Meghazi dde0c9324b [IMP] Convered qunit test suite to template
bzr revid: fme@openerp.com-20140428182451-u4mgen9669gnldva
2014-04-28 20:24:51 +02:00
Vidhin Mehta (OpenERP) 4312b921f3 [MERGE]Trunk.
bzr revid: vme@tinyerp.com-20140425130739-ug3n26htiqrky5j3
2014-04-25 18:37:39 +05:30
Martin Trigaux dd03491df9 sync with 7.0
bzr revid: mat@openerp.com-20140425113555-nkjxldq61io6kvdo
2014-04-25 13:35:55 +02:00
Chirag Dodiya (OpenERP) 775e553d5a [IMP]Improved code for add <p> tag
bzr revid: cod@tinyerp.com-20140425101340-znewo5agt8vdl5mw
2014-04-25 15:43:40 +05:30
Chirag Dodiya (OpenERP) 616c20a0f7 [MRG]Merge lp:openerp-web
bzr revid: cod@tinyerp.com-20140425061936-csz156gyzu0holkw
2014-04-25 11:49:36 +05:30
Martin Trigaux 10d3dd4ec3 [FIX] update to latest version saas code with updated underscore lib
bzr revid: mat@openerp.com-20140424160833-p0uf6zzst0pnj3i7
2014-04-24 18:08:33 +02:00
Christophe Simonis 7a7d7febf8 [MERGE] forward port of branch saas-3 up to revid 9429 chs@openerp.com-20140424123538-rxk9got9k2on1ki1
bzr revid: chs@openerp.com-20140424131824-4ksluvhnegp7kplb
bzr revid: chs@openerp.com-20140424134533-lhhcd32n3s0m9cqk
2014-04-24 15:45:33 +02:00
Cedric Snauwaert 8ddf7a21b7 [FIX]calendar tooltip attachment container
bzr revid: csn@openerp.com-20140423145235-ajph1xj2l492q1sy
2014-04-23 16:52:35 +02:00
Fabien Meghazi d4b534e7be [MERGE] upstream
bzr revid: fme@openerp.com-20140423123735-fc38fzp3mtai8xnb
2014-04-23 14:37:35 +02:00
Denis Ledoux 5ff7146e15 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 4179 revid:dle@openerp.com-20140422150918-nxv2v4bcvi6u3v6g
bzr revid: dle@openerp.com-20140417101315-2pjn31wb7ald3qe4
bzr revid: dle@openerp.com-20140417161003-g3mchwrucp6ab8tu
bzr revid: dle@openerp.com-20140422160712-iq4yur3jmw5n01ar
2014-04-22 18:07:12 +02:00
Denis Ledoux 6083ed4b46 [FIX] web: abitility to do exact id matching with child_of operator for searchs on many2one fields
bzr revid: dle@openerp.com-20140422150918-nxv2v4bcvi6u3v6g
2014-04-22 17:09:18 +02:00
Gery Debongnie f584b030bc [FIX] correct fix for the scrolling problem in graph view: the view now saves its scrolling position before redrawing itself (addon web_graph)
bzr revid: ged@openerp.com-20140422150316-m51u750732re8qib
2014-04-22 17:03:16 +02:00
Christophe Simonis 8a1b43be67 [MERGE] forward port of branch saas-4 up to revid 3981 dle@openerp.com-20140418151400-1g98vljq3cjv0czs
bzr revid: chs@openerp.com-20140422094727-7hi9bv3wm1bi0ov9
2014-04-22 11:47:27 +02:00
Vidhin Mehta (OpenERP) 4a5e671166 [FIX]destroy tooltip because after expanding inner menu, paren menu ellipsis deactived.
bzr revid: vme@tinyerp.com-20140421092638-1qq85mrfrpt0rjc1
2014-04-21 14:56:38 +05:30
Cedric Snauwaert 115c586e0a [FIX]tooltip: fix bootstrap bug when using auto placement and element was removed before the tooltip actually show resulting in an error
bzr revid: csn@openerp.com-20140418152511-f11mzqefa791vgl2
2014-04-18 17:25:11 +02:00
Denis Ledoux b250c5f9f5 [MERGE] Forward-port of latest saas-3 bugfixes, up to rev. 4003 revid:dle@openerp.com-20140417161003-g3mchwrucp6ab8tu
bzr revid: dle@openerp.com-20140418151400-1g98vljq3cjv0czs
2014-04-18 17:14:00 +02:00
Vidhin Mehta (OpenERP) 099ba54e28 [IMP]add tooltip to menu with bootstrap.
bzr revid: vme@tinyerp.com-20140418133036-lspgwn0fywl5zrn3
2014-04-18 19:00:36 +05:30
Cedric Snauwaert d535196bb6 [FIX]pretty tooltip: attach tooltip to body to insure that some element don't move over the place.
increase tooltip z-index to be visible when a modal is open

bzr revid: csn@openerp.com-20140418101235-08yqheh70wi4hb6g
2014-04-18 12:12:35 +02:00
Martin Trigaux fa4e285be7 [FIX] FieldMany2One: avoid error when saving changes in popup from a related fields (opw 606601)
bzr revid: mat@openerp.com-20140418092033-mvqng3thuy61kfoq
2014-04-18 11:20:33 +02:00
Kunal Chavda (Open ERP) 8b2bc4da90 [MERGE]with latest.
bzr revid: kch@tinyerp.com-20140418084142-d8lm531l8dyk7roo
2014-04-18 14:11:42 +05:30
Simon Lejeune 545e8ae529 [MERGE] trunk
bzr revid: sle@openerp.com-20140417150234-45cmuz6bnandmxiv
2014-04-17 17:02:34 +02:00
Cedric Snauwaert 4aec292e5c [FIX]tooltip: when not in debug mode, display tooltip in form view with bootstrat as well
bzr revid: csn@openerp.com-20140417140452-afqwxqv8pbvpbs3m
2014-04-17 16:04:52 +02:00
Gery Debongnie 8ae48fae7d [IMP] simplify the stat button html structure (one less span) (addon web)
bzr revid: ged@openerp.com-20140417133630-q001n7sjrt9xw0to
2014-04-17 15:36:30 +02:00
Denis Ledoux 7c668d8eac [FIX] web: double click on save button was trying to save the data two times if there is some latency, event target should be used instead of delegate target
bzr revid: dle@openerp.com-20140417101217-3fwnm76qne6f1vwk
2014-04-17 12:12:17 +02:00
Denis Ledoux f928ba4f10 [FIX] web: double click on save button was trying to save the data two times if there is some latency
bzr revid: dle@openerp.com-20140417101000-6gtyxntkm5d7zcoy
2014-04-17 12:10:00 +02:00
Cedric Snauwaert 336fba01e5 [FIX]tooltip: should not use placement auto since it is currently bugged in bootstrap
(see: https://github.com/twbs/bootstrap/issues/13268)

bzr revid: csn@openerp.com-20140417095944-3k2c8829tm6lmxmo
2014-04-17 11:59:44 +02:00
Cedric Snauwaert 77172b410b [MERGE]merge with latest trunk
bzr revid: csn@openerp.com-20140417090153-m6d65ubew0wlr9ic
2014-04-17 11:01:53 +02:00
Cedric Snauwaert 347985e050 [FIX]tooltip: overwrite bootstrap default for tooltip
bzr revid: csn@openerp.com-20140417085954-mirh4eeotsorlyeo
2014-04-17 10:59:54 +02:00
Simon Lejeune 6c6310bd38 [MERGE] trunk
bzr revid: sle@openerp.com-20140414155401-0h8yjg06ig4gdb1s
bzr revid: sle@openerp.com-20140415192015-z1p7ehl2882jfxfc
bzr revid: sle@openerp.com-20140416163644-yuaup4qapgbsbmec
2014-04-16 18:36:44 +02:00
Cedric Snauwaert 7990c39127 [FIX]modal: button were not showing in calendar
bzr revid: csn@openerp.com-20140416151543-im41f9rpqj6ll742
2014-04-16 17:15:43 +02:00
Denis Ledoux ecd96fc0a6 [ADD] web: in view form, when opening a many2one, use get_formview_action method of orm to get the window action to open
bzr revid: dle@openerp.com-20140416143548-i5l6kl00ixgd9x4w
2014-04-16 16:35:48 +02:00
Thibault Delavallée cbd17e3a9f [FIX] char_domain widget: better use of options to compute the model in which
we want to select records.

bzr revid: tde@openerp.com-20140416133402-k3qjrtieevfxz743
2014-04-16 15:34:02 +02:00
Cedric Snauwaert b7f3808824 [FIX]modal not correctly destroying from DOM at exit
bzr revid: csn@openerp.com-20140416120034-sps3a7dc2mgpwfzt
2014-04-16 14:00:34 +02:00
Barad Mahendra 756e2a56b8 [REV]unwanted changes
bzr revid: mba@tinyerp.com-20140416105227-nk3q8bq15wwcsgrh
2014-04-16 16:22:27 +05:30
Cedric Snauwaert 20556abc08 [MERGE]clean and refactored tooltip from branch trunk-tipsy-to-boostrap
bzr revid: csn@openerp.com-20140416102659-vft9tfuqmax0qx3q
2014-04-16 12:26:59 +02:00
Mohammed Shekha 91930b470d [FIX]Fixed the issue of reference field throws traceback that view is undefined, the reason is that reference field passing DefaultFieldManager while creating instance of many2one widget and DefaultFieldManager is eventually extending instance.web.widget not instance.web.form.FormWidget and hence DefaultFieldmanager will nto having view attribute, instead of calling self.view.do_onchange, trigger changed_value which is going to do the same job.
bzr revid: msh@tinyerp.com-20140416083857-sug0k4a28nkvgg27
2014-04-16 14:08:57 +05:30
Thibault Delavallée 482638ab27 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140416082917-lnqc60vm3cid3gl6
2014-04-16 10:29:17 +02:00