Commit Graph
99161 Commits
Author SHA1 Message Date
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
Jeremy Kersten a0e775e3fa [IMP] ir_http: authentification method can redirect to an other page 2015-01-19 13:44:25 +01:00
Denis Ledoux 1755c6fb6e [FIX] account_voucher: remove create/edit button from vouchers review 2015-01-19 13:40:10 +01:00
Arthur Maniet 0c98b8b311 [FIX] account: fautly behaviour introduced by 16e6919abc 2015-01-19 12:37:23 +01:00
Christophe Simonis 7b7554c91f [MERGE] forward port of branch saas-3 up to cdb48d3 2015-01-19 12:16:33 +01:00
Christophe Simonis cdb48d39ba [MERGE] forward port of branch 7.0 up to 6c55a4b 2015-01-19 12:09:48 +01:00
Christophe Matthieu f70c1f0c3c [IMP] website: the black bar menu should be visible when the user scroll 2015-01-19 12:09:39 +01:00
Arthur Maniet 2925561337 [FIX] account: bank statement reconciliation: there is no reason to prevent the reconciliation proposition to mix open and paid entries anymore 2015-01-19 11:47:43 +01:00
qdp-odoo 4b06dd6864 [IMP] stock: added sequence field to sort stock move + copy sequence from sale order line on creation from a procurement 2015-01-19 11:34:48 +01:00
Arthur Maniet 16e6919abc [FIX] account: bank statement reconciliation: correctly create journal entries when using a tax on a write-off 2015-01-19 11:22:33 +01:00
Xavier Morel f020c5f534 [ADD] documentation for un-deprecated --log-level 2015-01-19 11:03:35 +01:00
Aaron Bohy f163cbe0f8 [FIX] Website_slides: whitespaces in a .png filename
Replace whitespaces in the .png filename by underscores as
whitespaces in a filename produce an error for RPM packaging.
2015-01-19 10:45:46 +01:00
David Monjoie 8be3cabf8a [FIX] mail: fixed notes logging using mail wizard
Seems like the wizard was still looking for the old js context hack from before d5a8905 instead of testing against the new field
2015-01-19 10:43:31 +01:00
Stéphane Bidoul 34fe1d211d [IMP] add support for directory templates in scaffold
closes #4767
2015-01-19 10:35:41 +01:00
youring 5c59479577 [FIX] openerp -> odoo renamings in db files
closes #4762
2015-01-19 10:27:28 +01:00
Fabrice Henrion 4b0ce3e699 [IMP] Wording
closes #4768
2015-01-19 10:24:51 +01:00
Julien De Coster da5d11ef12 [I18N] Merge email_template *.po files into mail
All the translation files from the email_template module are merged into the mail module.
Comments are untouched because there are extracted from the .pot file
2015-01-19 10:07:37 +01:00
Jeremy Kersten ba294e2318 [REF] website_crm_score: migrate code to be compatible with master.
Courtesy Review : xmo, mat
2015-01-19 09:53:31 +01:00
Jeremy Kersten 8b407a41a4 [ADD] website_crm_score: Import new module 2015-01-19 09:50:47 +01:00
Jeremy Kersten b8e7a5fd77 [FIX] website_crm_score: force commit, because too many bad gateway (too long). Remove unused field from read 2015-01-19 09:45:59 +01:00
Jeremy Kersten e4bbd010f0 [FIX] website_crm_score: Merge pageview and score as superuserid to allow non salemanager to merge some lead. 2015-01-19 09:45:59 +01:00
Jeremy Kersten b6cdb81b37 [IMP] website_crm_score: add scrore to opportunities views (form and tree) 2015-01-19 09:45:59 +01:00
Jeremy Kersten ab4d4e17c5 [IMP] website_crm_score: don't send email with auto assignation + don't send mail for each pageview. Salesmen are spammed 2015-01-19 09:45:59 +01:00
Jeremy Kersten 511dce3a7d [FIX] website_crm_score: some improvements to make assign_date automatic
crm_lead:
        overwritte create and write from crm_lead to force assign_date to be computed according to the field user_id is updated.
        Else when the assignation was done manually, this field was not updated and so the lead not added in the instant pipe from the saleman (section_user)
    sales_team:
        Add context when assignation is done by cron to avoid to spam the sales. Notification of assignation will be only done via a log on the lead/opportunity.
        Don't force to write assign date since write of crm_lead is overwritted to do it
        Misc improve - check that leads exists before to make useless call to browse/write on nothing
2015-01-19 09:45:59 +01:00
Jeremy Kersten 1e71ed4305 [IMP] website_crm_score: hack to use request.host for cookies if in local mode (with port) 2015-01-19 09:45:59 +01:00
Jeremy Kersten e42d989d86 [IMP] website_crm_score: move the call of super create_lead into an overridable function. 2015-01-19 09:45:59 +01:00
Jeremy Kersten 576933ff08 [IMP] website_crm_score: multi improvements
Move section_user before the use of this one in a many2many, else demo data are not installable because field id is never created in db. (same 'issue' that https://github.com/odoo/odoo/issues/2386)
    Add a cron to compute score each hours
    Add merge pageview and merge (clean) score when we merge opportunities via merge_opportunities/merge_dependencies
    Score the lead after the assignation to salesteam. Because when we assign to salesteam, sometimes we call the method merge_opportunities which one delete old scores on this lead, all score rules needs to be recomputed since the fields have been updated. So we compute now the score not at starting, but between assignation to salesteam and salesman.
2015-01-19 09:45:59 +01:00
Jeremy Kersten 14efd71694 [FIX] website_crm_score: be more specific in the domain to select lead to assign to a salesteam. And autocommit after each merge/assign_sale_steam to avoid duplicate mail and too long cron 2015-01-19 09:45:58 +01:00
Jeremy Kersten 0e4f8b8856 [IMP] website_crm_score: fix kanban to display user_id from section (m2m user_ids). Add field min_for_assign in form view. 2015-01-19 09:45:58 +01:00
Jeremy Kersten b08cb60384 [IMP] website_crm_score: add new field to specify the minimum score that a lead need to be allocated. Merge duplicated lead before to assign them to a salesman 2015-01-19 09:45:58 +01:00
Jeremy Kersten 9ba31b513e [FIX] website_crm_score: check that endpoint is set before to use routing to avoid a traceback when session is expired 2015-01-19 09:45:58 +01:00
Jeremy Kersten 53c20649ab [IMP] website_crm_score: new module 2015-01-19 09:45:58 +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
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