Commit Graph
93155 Commits
Author SHA1 Message Date
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
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 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
David Monjoie 32946d5662 [ADD] website_sale: added orders history page accessible using My Orders link below My Account. This page allows a user to see its sale orders as well as download the corresponding invoices 2015-01-16 15:47:18 +01:00
qdp-odoo 0802ebdb13 [MERGE] merged the branch with the improvement of the reconciliation on bank statement (allow to reconcile with existing entries in the bank journal not yet linked to a statement) 2015-01-16 14:20:54 +01:00
Ajay javiya 90869f1de4 [ADD] New payment acquirer Authorize.net. 2015-01-16 11:22:35 +01:00
Thibault Delavallée 80748a3d53 [FIX] website_sale: payment override: fixed call to auto_confirm
field that is stored on the acquirer, not on the transaction.
2015-01-16 11:20:30 +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
qdp-odoo 1daad04823 [IMP] account: added a bunch of tests on the reconciliation in bank statements + improved some use case by providing the amount in foreign currency and the difference due to exchange rate 2015-01-15 15:28:49 +01:00
Yannick Tivisse f1cb34c7de [IMP] account_analytric_analysis: add a stat button on the contract
form that redirect to all related invoices. This button is linked to an action
disallowing the invoice creation; users should use the contract form view
instead.
2015-01-15 13:06:17 +01:00