Commit Graph
93527 Commits
Author SHA1 Message Date
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
Antony Lesuisse ee9e4d3672 [IMP] server: -d create database if non existent 2015-01-18 20:31:41 +01:00
Antony Lesuisse 1d87a4509f [REM] service: remove old http layer 2015-01-18 20:27:06 +01:00
Samus CTO c90aedd04f [IMP] logging: Use the default python logging handler bound to stderr
Avoid messing up actual output with logs. Useful when using odoo shell in a
pipeline. Example:

echo "for i in env['res.partner'].search([]): print i.email" | ./odoo.py shell -d master | xargs -n1 echo cmd
2015-01-18 19:05:01 +01:00
Goffin Simon 9850080eb0 [ADD] Versioning Module.
This module allow to make versioning and A/B testing of the website.
2015-01-16 23:13:58 +01:00
Christophe Simonis 92c94f3ac1 [FIX] website_sale: remove non-working tour steps.
partial revert of eeb8ed165d
2015-01-16 19:33:58 +01:00
Jérome Maes f04280757b [FIX] web : add forgotten lato font direcotry from a279d8a976 2015-01-16 18:52:10 +01:00
qdp-odoo 2ca0f0e5d1 [FIX] account_bank_statement_import: ofx and qif don't save the uploaded file on the server anymore + data_file is now mandatory in _parse_file() 2015-01-16 18:43:09 +01:00
Sandy Carter 6c55a4bfed Allow EDI fields to be propagated if they have _fnct_inv 2015-01-16 17:49:58 +01:00
Denis Ledoux 5959c41631 [IMP] res_lang: constraint for grouping field
As entering a wrong value in the grouping field of res.lang,
for instance '[,]', leads to an unavailability of the web interface,
We add a constraint to prevent entering wrong values.
2015-01-16 17:47:33 +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
Richard Mathot f9376905cc [FIX] survey: avoid navigation crash
If a survey has "allow users to go back" option enabled, users can go back to previous pages and change their answers before submitting the whole survey.

This commit fixes the very special case, when the user reaches the last page of the survey, then click on "Previous" button, then reopen the survey from the invitation URL (/survey/fill/<survey_id>/<token> without the /prev flag in the URL). This won't crash anymore.

This commit fixes #2658 and #2680.
2015-01-16 17:24:15 +01:00
Richard Mathot b117fcfbac [FIX] survey: prefill glitch
When user answers to multiple suggestion questions with a comment box,
the comment box was prefilled with the ID's of the suggestion instead of
user-entered data.

This commit fixes #3149 and closes #3171.
2015-01-16 17:24:14 +01:00
Richard Mathot dbb9c8ebeb [REM] survey: unused import 2015-01-16 17:24:14 +01:00
Richard Mathot 11f147f2d9 [FIX] survey: prevent pointless AJAX request
Avoid creation of doublon survey_user_input entries when a user loads the landing page of a survey (/survey/start/... route).

Due to some strange spec, jQuery.ajax() function called with "undefined" URL will do an extra call to the URL of the webpage where the script lies (http://api.jquery.com/jQuery.ajax/). Now, we check that URL is not "undefined" to avoid those calls.

By the way, this problem probably happened in every page that had survey.js in its assets... (correct loading of survey.js is fixed in saas-6 at 4dd5dbb289, this fix is complementary.)

This commit fixes #3032 and closes #3337 #3338 #3092.
2015-01-16 17:24:14 +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
Martin Trigaux 07ccd6c1c7 [IMP] website_twitter: remove debugger 2015-01-16 17:14:23 +01:00
Yannick Tivisse eeb8ed165d [IMP] Website_sale tour: Added steps to avoid the continue button 2015-01-16 16:56:43 +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
Damien Bouvy 50fa3b6ba4 [IMP] portal_claim, portal_project_issue ==> website_crm_claim, website_project_issue: modules are renamed and depend on website, adds Claims and Issues links on the user dropdown menu for portal users 2015-01-16 16:45:52 +01:00
Christophe Matthieu 1d82bb16ca [FIX] tools html_sanitize: While editing mass mailing or other html fields, font size, foreground color/background color are not saved after changing them. 2015-01-16 16:38:10 +01:00
Christophe Matthieu ce1ed62676 [FIX] website editor: Issues with link dialog. After changing style one button from the modal, all its right sibling buttons are dis-appeared.; delete content of the range is wrong 2015-01-16 16:38:10 +01:00
Christophe Matthieu 23a6b2f3e3 [FIX] website editor: change default comportment copy paste for input and textarea 2015-01-16 16:38:10 +01:00
Christophe Matthieu 55e93a122e [FIX] website editor: On click Of edit unable to call start of website.snippet.animationRegistry of the stopped snippet animation 2015-01-16 16:38:10 +01:00
Christophe Matthieu cb7d762db2 [FIX] website editor: the dom is splited in two when press enter just after a picture 2015-01-16 16:38:09 +01:00
Christophe Matthieu e134fc885b [IMP] website editor: designer can add new font like font-awsome (add folder and need to push the new parser in website.editor.fontIcons javascript object) 2015-01-16 16:38:09 +01:00
Christophe Matthieu 9477b838c6 [IMP] website editor: move media style options from the customize menu to the top editor bar 2015-01-16 16:38:09 +01:00
Christophe Matthieu 9dafe51f47 [FIX] website editor: can't select and edit an empty field html or text 2015-01-16 16:38:09 +01:00
Christophe Matthieu db9b7bc825 [FIX] website: Selector for the image and table-handlers are still there even if we've deleted the snippet 2015-01-16 16:38:09 +01:00
Christophe Matthieu e42995b614 [FIX] website_sale: Unable to customize image from grid of products. Add an option for the image qweb widget to resize and the views can add python data in widget options 2015-01-16 16:38:09 +01:00
Christophe Matthieu 031b83d9e7 [FIX] website editor: images removed inside selection when change color 2015-01-16 16:38:09 +01:00
Christophe Matthieu 7c10c9ac27 [FIX] website qweb: wrong encoding when a snippet is called by t-snippet 2015-01-16 16:38:09 +01:00
Christophe Matthieu 703d257aa8 [FIX] website theme: data attributes of option in theme modal does not enable or disable linked options. missing attr to prop modification for new version of jquery. 2015-01-16 16:38:09 +01:00
Christophe Matthieu 9900c6ce2b [FIX] website_blog: Display pictogram in media editor but not able to set the pictograms or videos as cover of blog. 2015-01-16 16:38:09 +01:00
Christophe Matthieu 90e8e60d26 [IMP] website editor: add div as not breakable block 2015-01-16 16:38:09 +01:00
Christophe Matthieu 7c9e2cbc5e [FIX] website editor: Unable to create link after selecting text 2015-01-16 16:38:08 +01:00
Christophe Matthieu cd51e3d317 [FIX] website: can't move panel snippet if it's insert into a column snippet 2015-01-16 16:38:08 +01:00
Christophe Matthieu d28b9a3fee [FIX] website editor: Holding shift key and right arrow key works well, but unable to do the opposite. Can't select text from right side to left. Fix re-range. 2015-01-16 16:38:08 +01:00
Christophe Matthieu cf8f4415a7 [FIX] website editor: Unable to search font-awesome pictograms from dialog 2015-01-16 16:38:08 +01:00
Christophe Matthieu 8806a69b4d [FIX] website editor: don't display media image border option for font 2015-01-16 16:38:08 +01:00
Christophe Matthieu 65fee06990 [FIX] summbernote lib: if a content selected with CTRL+a begin by an image, the editor switch to the image editor but the range is not correct. Need to display the image style only for real image edition. 2015-01-16 16:38:08 +01:00
Christophe Matthieu 75341ddcf9 [FIX] summernote lib: summernote raise when we triple click on a br in air mode. (merge proposal create to summernote) 2015-01-16 16:38:08 +01:00
Christophe Matthieu a14c802443 [FIX] summernote: wrong selection and delete when user try to delete a br in a text 2015-01-16 16:38:08 +01:00
Arthur Maniet 66aa813ec1 [FIX] account: bank statement reconciliation widget: use overflow:auto to correctly clear the move line creation form 2015-01-16 16:36:29 +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
Mantavya Gajjar 51be5bbfb3 [ADD] website_slides: new website module to handle presentations, documents,
videos, infographics. Some kind of slideshare clone, to summarize.

Featuring :
- channel management: classify slides (presentations, videos, documents, ...)
and tune their access rights for visibility, uploading and downloading
- full branding new shiny website module !
- automatic fetch of youtube and google docs information based on URL
- statistics: views, likes, interfaced with messaging, ...
- embed mechanism to embed slides in other websites

Courtesy of RD India, notably Mantavya Gajjar, Ravi Gadhia,  Vijay Patel,
Pariket Trivedi
Courtesy of Use Merge Team, notably Jerome Maes and Richard Mathot
Let us not forget our usability testing teams that tested it quite a lot of time.

Special thanks to Martin Trigaux that did nothing.
2015-01-16 16:01:59 +01:00
Antony Lesuisse cec43b93d2 [ADD] website portal and digital download
Add an orders section to the e-commerce to display sales orders, delivery
orders and invoices. Add support for digital products.
2015-01-16 15:48:01 +01:00
David Monjoie 8a1b8e880c [ADD] website_sale_digital: allows the user to set a product as digital product and use the attachments to sell files. The download link is added on the My Orders page when the payment is confirmed 2015-01-16 15:47:18 +01:00
David Monjoie 9c70e9242b [ADD] website_sale_stock: added delivery orders display on My Orders page when sale_stock and website_sale are installed 2015-01-16 15:47:18 +01:00