Commit Graph
7355 Commits
Author SHA1 Message Date
Aaron Bohy 9c504fcacd [FIX] Web: views.js: use initial_mode edit
Use the option initial_mode of views when openning a view in 'edit' mode
at first rendering. This fixes a bug with FieldOne2Many widgets whose buttons
were not displayed at first rendering in 'edit' mode (e.g. in the Sales
Team FormView).
2015-01-28 16:08:56 +01:00
Aaron Bohy 40b8fdec00 [FIX] Web: views.js: view switching: hide view.$container
Without hidding view.$container, when coming back to Kanban or List
views, it was no more possible to click anywhere on those views.
Fixes the bug introduced by rev c465605049
2015-01-28 13:08:43 +01:00
Aaron Bohy c465605049 [FIX] Web: views.js and view_pivot.js: sidebar
The sidebar in view pivot was not hidden when switching from view pivot
to another view. Thus, the sidebar content of view pivot was still in a
dropdown of the sidebar of the new view (when this new view has a
sidebar as well).

Also changed the way of switching between views: we now first hide the
current view before creating and displaying the new one. This prevents
weird rendering in the header as well.
Moreover, the task of hidding/showing the view's buttons is left to the
view instead of the ViewManager.
2015-01-27 17:25:38 +01:00
Yannick Tivisse b2eab15594 [FIX] Web : add fontawesome in list handle widget 2015-01-27 15:06:22 +01:00
Yannick Tivisse 93de877e36 [IMP] web : harmonize action buttons css + sass 2015-01-27 14:07:57 +01:00
Harrison Hubbell 4caeda8669 [IMP] URL widget for list view columns
closes #4338
closes #3592
2015-01-26 16:58:10 +01:00
Géry Debongnie 1f3ab82f77 [FIX] focus the input searchbox when displaying searchview
usability issue: the searchview wasn't focused when created.
2015-01-26 15:43:58 +01:00
Simon Lejeune 28c38320a9 [IMP] web: jquery-ui autocomplete widget styling
a little more integrated with the Odoo webclient
2015-01-26 15:00:57 +01:00
Simon Lejeune 92f539078f [FIX] web: correct append of the autocomplete widget in the viewmanager
Adapt rev 4a3e5df93a and rev e1cde4d038 to the current webclient
structure. Without this patch, autocomplete widget is completely broken
with multiple viewmanager.
2015-01-26 15:00:50 +01:00
Christophe Matthieu a65fee458a [IMP] website editor: display snippet block on the left side and open it on mouse enter 2015-01-26 10:14:02 +01:00
Yannick Tivisse 018dcc8e3c [IMP] modify class oe_highlight to harmonize the action buttons 2015-01-26 09:13:02 +01:00
Jérome Maes 8a51dc4e02 [IMP] web : remove unused code of systrayMenu 2015-01-23 17:03:24 +01:00
Christophe Simonis 4eb385fc0b [MERGE] forward port of branch 8.0 up to 0ec3c75 2015-01-23 14:57:07 +01:00
Aaron Bohy 3cae676619 [FIX] Use local copies of png instead of fetching them from websites
Debian does not allow fetching data from external website at runtime.
This fixes the privacy-breach-generic lintian warnings for Debian packaging.
The removed youtube url was a dead link...
2015-01-23 11:23:04 +01:00
Aaron Bohy 2a39214d2e [FIX] File permission: remove unnecessary executable perm on files
Some .xml,.csv,.po,.woff,.ttf,.png,.eot,.svg had perm 755, provocating
'executable-not-elf-or-script' lintian warning for Debian packaging.
Set permission to 644 for those files.
Also remove unnecessary executable permissions on some .py:
	-addons/l10n_fr_hr_payroll/report/fiche_paye.py
	-addons/l10n_ro/res_partner.py
	-addons/l10n_ro/__openerp__.py
	-addons/l10n_ro/__init__.py
	-addons/l10n_do/__openerp__.py
	-addons/l10n_do/__init__.py
2015-01-23 11:11:27 +01:00
Aaron Bohy 629572cb76 [FIX] Web: qweb-test.js.html: use local copy of jquery and qunit
Use the local copy of those libraries instead of fetching them at runtime.
This fix was required for Debian packaging. It fixes the
privacy-breach-may-use-debian-package lintian error.
2015-01-23 11:11:27 +01:00
Géry Debongnie 0521c8b83f [FIX] web: fix various bugs in FieldCharDomain
now, the FieldCharDomain widget should
* correctly display the selected records instead of the whole list
* allow the removal of the current selection in edit mode (by adding
  a facet in the searchview)
* allow the selection of a full group when the list view is grouped

also, it correctly now uses the ReinitializeFieldMixin instead of
reimplementing half of it in a buggy way.
2015-01-22 20:45:08 +01:00
Christophe Simonis 6f841038f3 [MERGE] forward port of branch 8.0 up to 3735394 2015-01-22 18:47:13 +01:00
Denis Ledoux 34de1c0f78 [FIX] web: display error message when export fail. 2015-01-21 17:05:55 +01:00
Denis Ledoux 560f2359a0 [FIX] web: correctly retrieve exception from @serialize_exception
and _serialize_exception as well.
2015-01-21 17:03:54 +01:00
Yannick Tivisse 9207c4645a [IMP] Replace all oe_e class by fontawesome + remove entyporegular library 2015-01-21 16:11:26 +01:00
Martin Trigaux 4f14290670 [FIX] web: rounding of fields
round_precision expects a decimal (e.g. 0.01) while digits contains the number
of digits (e.g. 2)
replace by round_decimals
2015-01-21 16:04:29 +01:00
Olivier Dony 495ec92251 [I18N] Update translations from Launchpad 8.0 branches 2015-01-21 15:36:54 +01:00
Olivier Dony 39f00b3637 [I18N] Update translation templates with latest terms
Total new terms: 270
Total deleted terms: 82
Total identical terms: 19653
Old total number of terms: 19735
New total number of terms: 19923
2015-01-21 15:31:22 +01:00
Christophe Simonis 4ccca49d34 [MERGE] forward port of branch 8.0 up to 592f1cd 2015-01-21 12:11:38 +01:00
Adrien Peiffer 37e85a1e35 [FIX] view form: Use digits to round float values on client side 2015-01-21 10:38:32 +01:00
Géry Debongnie fe352d673f [FIX] web: properly hide list view in pop up dialogs
a many2many field can open a pop up dialog with different views, such
as form view and list view.  when the user click on the create button,
it should hide the list view and display the form view.  apparently,
this behavior was hardcoded in the pop up dialog, and broken at some
point between v8 and master.

A proper fix would be to abstract the
view manager behavior as a mixin and use it for the selectcreatepopup
widget, for the one2many view manager and for the viewmanager.  But this
will take too much time for now, so a quick fix will do it. (however a
task has been created)
2015-01-21 09:49:17 +01:00
Simon Lejeune e901fa20e4 [FIX] web: don't shadow exception in do_backup 2015-01-20 17:36:19 +01:00
Christophe Simonis 18e22be138 [MERGE] forward port of branch 8.0 up to 0aab81c 2015-01-19 17:15:56 +01:00
Jeremy Kersten fe7b6ef900 [FIX] planner: remove console.log and add default value for menu_id.
Add default value because top menu 'Website' from backend don't have a data menu-parent, and toString from undefined displays a traceback.
2015-01-19 16:23:40 +01:00
Géry Debongnie 81588efe26 [FIX] web: remove typo in views.js 2015-01-19 14:17:19 +01:00
Géry Debongnie af8c2e4db6 [IMP] pyeval: implement weekday function
courtesy of mva.  This adds the weekday function to date objects in
pyeval.  This will be useful for adding better filters (such as this
week) in the searchview.
2015-01-19 14:08:09 +01:00
youring 5c59479577 [FIX] openerp -> odoo renamings in db files
closes #4762
2015-01-19 10:27:28 +01:00
Antony Lesuisse c1c8ac7d7f [FIX] dbmanager: backup allow pg_dump custom dump to be larger than diskspace
- delete a forgotten print
- allow pg_dump custom dumps to be larger than the available disk size, the
  previous commit allowed dumps to be larger than memory, this one remove this
  limitation. zip dumps are still limited to by the disk size.
2015-01-19 02:42:34 +01:00
Antony Lesuisse ec9a543014 [FIX] dbmanager: backup support both zip and pg_dump custom format
- let the user choose between the pg_dump custom format or the zip format including the filestore
- use file objects to allow dumps larger than memory
- postgres subprocess invocation is now clean and thread-safe, we dont touch the local process environ anymore
- add a manifest to the zip dump format with version information about odoo, postgres (pg_dump doesnt output it) and modules
2015-01-19 02:05:12 +01:00
Jérome Maes f04280757b [FIX] web : add forgotten lato font direcotry from a279d8a976 2015-01-16 18:52:10 +01:00
Damien Bouvy a1fac87d25 [IMP] web,website: portal users should be redirected to the frontend on login (and regulars users to the backend) on login 2015-01-16 17:25:07 +01:00
Goffin Simon 0fd773a486 [IMP] Cleanup and refactoring of exception handling
Unify and refactor exception handling in framework and addons.

The generic `except_osv` is now deprecated, and replaced by more specialized exception subtypes:
 - `UserError` (renamed from Warning, as it conflicts with the built-in `Warning`) raised when a non-technical error occurs during a business operation. It could be a missing information in the data provided by the user, or a misconfiguration.
 - `AccessError`: raised when any operation is denied because the user conducting it does not have the required access rights.
 - `AccessDenied`: raised when an operation that requires authenticated access is attempted via an unauthenticated request.
 - `MissingError`: raised when an operation is attempted on a record that does not exist.
 - `ValidationError`: raised when an operation violates a SQL or Python constraint.
 - All other exceptions are internal errors due to a system problem or bug, and raised untouched to the client-side, which should display a traceback.

All exceptions take a single message argument.

The `test_exceptions` module has been updated to showcase both new and old (deprecated) exceptions.

A great many old `except_osv` had a useless title with "Error!" or "Warning", those have been removed, as this is handled by the client-side widget that displays the messages.

This commit introduces a more consistent policy for logging errors and warnings:
 - All messages that do not require administrator attention should be logged at INFO level or lower. This includes all errors that are notified to the user in a friendly manner, even for access right problems or validation errors during business operations.
 - All messages that indicate a likely misconfiguration or malicious use by the users should be logged at WARNING level, as they typically require administrator attention.
 - All other unhandled internal errors cannot typically be handled by the user and should be logged at ERROR or higher level, as they require immediate administrator attention.
2015-01-16 17:15:18 +01:00
Yannick Tivisse ded2962d41 [FIX] web tour.js: data-original-title issue with bootstrap lib, bootstrap take the image name as tip title instead of the title allready defined 2015-01-16 16:55:36 +01:00
Jérome Maes a279d8a976 [IMP] web, pos, planner : remove duplicated Lato font, and move it to web 2015-01-16 16:13:04 +01:00
Jérome Maes 45352c43ca [FIX] planner: less gready with reflow and better integration with webclient (oe_systray)
* Only trigger a menu reflow when needed (show/hide planner)
* Do not include webclient and menu; use webclient reference
(Courtesy of sle-odoo)

Also, change the way to switch planner page. Switching keep now the URL fragment of the webclient, and don't use collapse bootstrap class. Fix url builder server side.
2015-01-16 16:13:04 +01:00
Géry Debongnie 76832cb6a4 [FIX] web: fix breadcrumbs duplicate form views
and prevent the last breadcrumb to be clickable (revert of 61dec05).
The last breadcrumb clickable to refresh the view is no longer necessary
with the form view icon available.

The weird code on the click handler for switching views is due to the
fact that most views refresh with a do_search but the form view is
refreshed with a do_show.  A more generic way to update the view
seems necessary to prevent such artifacts.
2015-01-16 11:17:02 +01:00
Géry Debongnie 65ac1b3a70 [IMP] pyeval: implement weekday function
courtesy of mva.  This adds the weekday function to date objects in
pyeval.  This will be useful for adding better filters (such as this
week) in the searchview.
2015-01-16 10:26:09 +01:00
Martin Trigaux 48002b3278 [FIX] web: debugger in previous commit
Damn you commit -a
2015-01-15 15:38:16 +01:00
Martin Trigaux fc9ce0bcff [FIX] website_forum: description not translated
Make the field description on a forum translatable and add it in the forum view. opw 619786
2015-01-15 15:37:31 +01:00
Denis Ledoux 87dd06c941 [MERGE] forward port of branch saas-3 up to 8c150c6 2015-01-15 14:43:32 +01:00
Denis Ledoux a692c6e934 [MERGE] forward port of branch 7.0 up to f406847 2015-01-15 11:49:28 +01:00
Xavier Morel 8c3d71ccb8 [CHG] Fix task 7536 / PR #499 differently
Issue was the propagation of contextual values across actions, more
precisely conserving the selected fiscal year when selecting an account
from the chart of accounts tree view: the chart of accounts tree view is
generally opened for a specific fiscal year, and it seemed sensible that
opening an account would show only the journal items for the previously
selected fiscal years rather than all items ever.

PR #649 altered action.read by tentatively evaluating the action's
context, however this has the side-effect of providing evaluated
contexts when creating or editing actions via the UI, usually breaking
them in the process (as the context at this point is basically
nonsensical for the action's purpose).

This backs out the previous fix, and creates a fix restricted to the
tree view's JS (thereby removing the feature for window actions not
invoked from a tree view).

closes #4677, closes #4690
2015-01-14 13:28:23 +01:00
Denis Ledoux 275367581b [FIX] web: view is not always defined when a many2one is rendered
This rev. is associated with rev. 38aa984f31

closes #4660
2015-01-13 12:45:47 +01:00
Mitesh Savani 9162b9930c [ADD][IMP] web: added toogle button for form view. Like already
done in list view, this is a button used for boolean fields
used to switch between pending-grey-false and done-green-true.

hr_holidays: use this newly-introduced button on form view.
I am sure HR people will love R&D now.

Courtesy of RD India: Mitesh Savani (msa@odoo.com)
Reviewed by Use Merge: Thibault Delavallée (tde@odoo.com)
2015-01-12 14:33:07 +01:00