Commit Graph

89124 Commits

Author SHA1 Message Date
Olivier Dony ee4df1e397 [MERGE] Forward-port saas-4 up to 8b15482 2014-08-01 13:06:49 +02:00
Olivier Dony 8b15482e00 [MERGE] Forward-port saas-3 up to e79a367 2014-08-01 12:54:30 +02:00
Olivier Dony e79a3675d1 [FIX] orm.search_count: ignore `limit`, `offset` and most importantly `order`
These parameters are (or should be) irrelevant for
a search_count(), and they could actually break the
result or make it significantly slower (e.g applying
`order` on large tables).
This fixes a performance regression introduced by
0f43032b.

We could also raise an error offset/limit are
passed in combination with count, but that seems
unnecessary.

Also switched to "SELECT count(1)" for the count
query, as it is simpler and just as fast.
We'd get the same perf with * or any constant value,
as in "SELECT count('me in')", but let's keep it
simple ;-)
2014-08-01 12:34:45 +02:00
Cedric Snauwaert 29cdfc62a7 [FIX] web: remove unneeded overflow-y on modal-body class
Will fix problem where opened dropdown list were hidden behind the modal footer
2014-08-01 11:52:34 +02:00
Jeremy Kersten cc9205d1d1 [FIX] mass_mailing: allow to add a user/email to a specific mailing list and not always the last as previously. 2014-08-01 11:25:41 +02:00
Denis Ledoux a9bce700dc [FIX] account: avoid to propagate context in send by email button
There is no reason to propagate the context in those buttons.

Besides, it leads to issues concerning the email template, rendering the wrong res_id because the active_id was wrongly propagated
2014-08-01 10:05:56 +02:00
Anaël Closson f247bdd0b6 [FIX] mail: message-id not parsed properly in message_route
Same as for rev 4bad513, the references were not correctly parsed, added missing regex
2014-08-01 08:55:27 +02:00
Denis Ledoux 2d17c18c7d [FIX] crm: base_partner_merge, search with lowercase for name,email
and without spaces for vat
2014-07-31 19:38:00 +02:00
Denis Ledoux 4eba90561f [MERGE] forward port of branch 7.0 up to 7c5bf67a5f 2014-07-31 18:17:48 +02:00
Denis Ledoux 7c5bf67a5f [FIX] account: unit arg of on_change_unit_amount can be False 2014-07-31 18:15:41 +02:00
Denis Ledoux 4705802a6f [MERGE] forward port of branch 7.0 up to cd31cbf556 2014-07-31 18:06:57 +02:00
Denis Ledoux cd31cbf556 [FIX] account: on_change_unit_amount do not reset uom to default 2014-07-31 18:05:17 +02:00
Cedric Snauwaert 5ddc0305cd [FIX] web: fix tooltip that were stuck visible
tooltip stuck visible should be removed on click + remove tooltip container except for modal in order to prevent them for staying visible in some rare occasion
2014-07-31 17:33:27 +02:00
Jeremy Kersten 9390767376 [FIX] website_customer: check that country id exists before access the name, else traceback when we come from a non existing id via the url/controller 2014-07-31 14:43:42 +02:00
Martin Trigaux c86f217f7e [FIX] stock: production lot as no longer a company_id field 2014-07-31 09:21:45 +02:00
Christophe Simonis e4cb5202a0 [MERGE] forward port of branch saas-4 up to fa07bc8 2014-07-30 20:30:14 +02:00
Christophe Simonis fa07bc8532 [MERGE] forward port of branch saas-3 up to 310d3fe 2014-07-30 19:09:33 +02:00
Christophe Simonis 310d3fe4c4 [MERGE] forward port of branch 7.0 up to 39f3e40 2014-07-30 18:55:31 +02:00
Guewen Baconnier 39f3e40329 [FIX] sale: copy_quotation must propagate the context 2014-07-30 16:47:51 +02:00
dhr-odoo 0b947b26e1 Passed default type while creating document page category from document page 2014-07-30 16:21:07 +02:00
Martin Trigaux faa0df809f [FIX] project_long_term: avoid bad duplication of phases
When we duplicate a project, the related phases need to be duplicated as well but keeping references between each other.
e.g. 'project 1' with 'phase A' follwed by 'phase B' should become 'project 1 (copy)' with 'phase A (copy)' followed by 'phase B (copy)'.
Fixing bug lp:1212860, opw 607062
2014-07-30 16:12:22 +02:00
Ravi Gohil 8f0392b490 [FIX] account_voucher: avoid trying unreconcile a move twice
When we cancel a voucher, we may be trying to unlink a reconciliation that was already removed on another move (just looking at the version in cache). In such cases, the unlink would fail with traceback. opw 610287
2014-07-30 15:56:19 +02:00
Denis Ledoux 873dc0370d [FIX] sale: config, timesheet if module account_analytic_analysis
In Settings > Sales, the onchange_timesheet ensure that if you check timesheet, it checks module_account_analytic_analysis.

Therefore, if module_account_analytic_analysis is installed, timesheet should be checked by default
Until now, it worked "luckily", because the onchange_timesheet of the field module_account_analytic_analysis was triggered before the onchange_timesheet of the timesheet field. Nevertheless, we shouldn't trust the onchange calls order.
2014-07-30 15:26:43 +02:00
Christophe Simonis c6f91facbb [FIX] website: do not restore page views 2014-07-30 15:10:22 +02:00
Cedric Snauwaert 7127d2cdc3 [FIX] web: fix multiple modal closing (e.g. set defaults)
move call trigger('closing') after the modal('hide') call to prevent element being destroyed before we could do that call leaving a backdrop visible
2014-07-30 09:39:03 +02:00
Lionel Sausin (Numérigraphe) dd4d72d710 [FIX] stock: partial deliveries switch on delivered picking
Users don't care for the backorder picking precisely because they can't process it, whereas they may have to do some more things on the picking they processed: invoice it, print delivery orders or transportation stickers..
Refresh the browse record after changing the name to avoid the need to rebrowse.
Fixes #1372
2014-07-29 16:15:20 +02:00
StefanRijnhart f9da53743f [FIX] mail: reset of default_type in context
When creating a new message, we need to reset the default_type key to avoid context propagation (e.g. invoice menu).
However we used to compare the key in context (char) with the list of selections (tuple) so it was never matching and always reset.
2014-07-29 14:13:01 +02:00
xmo-odoo c544a906b8 Merge pull request #1391 from savoirfairelinux/7.0-translate-trans_generate_debug_print
[FIX] translate: Fix debug print when parse path list to translate.
2014-07-29 13:51:48 +02:00
Denis Ledoux 88c022dfc8 [MERGE] forward port of branch 7.0 up to bbb8d8f25a 2014-07-29 11:42:10 +02:00
Denis Ledoux bbb8d8f25a [MERGE] forward port of branch 7.0 up to 767d2ea9a6 2014-07-29 11:35:19 +02:00
Denis Ledoux 6b1a804b29 [MERGE] forward port of branch 7.0 up to b91a75f7ef
Conflicts:
	addons/base_vat/base_vat.py
	openerp/tools/safe_eval.py
2014-07-29 10:42:50 +02:00
Denis Ledoux 23436ca259 [FIX] website_event: display unconfirmed events too 2014-07-28 19:34:12 +02:00
Denis Ledoux 767d2ea9a6 [FIX] web: on refresh, do search_read with fields passed 2014-07-28 19:02:11 +02:00
Ravi Gohil b91a75f7ef [IMP] base_vat: differenciate VIES and classical VAT error
Display a different error message so that users are aware if the test failed with VIES enabled or not (opw 609823)
2014-07-28 16:56:14 +02:00
Jeremy Kersten d63ef168a8 [IMP] website_crm: allow to specify a view_from and view_callback for a form. That will allow to redirect the user on another thanks page depending form the form. We add also a preRenderThanks method with allow to updates the values used by the thanks page rendering. 2014-07-28 14:41:48 +02:00
Martin Trigaux cd013aa09a Revert 3dec090 "[FIX] ir_values: fallback when no condition"
An ir.value without condition should not match when searching with a condition.
When a field with change_default on it is modified, the method get_defaults is called with the new value. This means that manually modifying a field with this trigger would put back the default value (opw 611193).
2014-07-28 14:35:44 +02:00
Humberto Arocha 3fe508f200 [FIX] account: no journal items on consolidation accounts
As for the view accounts, the consolidation accounts should not allow to create journal items.
Fixes #1090
2014-07-28 12:55:58 +02:00
Martin Trigaux eda2f064cf [FIX] stock: backport of rev 0a6d63b 2014-07-28 09:35:25 +02:00
Mathieu Benoit 40b1fccb2a [FIX] translate: Fix debug print when parse path list to translate. 2014-07-25 16:17:29 -04:00
Richard Mathot 5e1221b339 [FIX] survey: display comments in results 2014-07-25 14:48:57 +02:00
Denis Ledoux ced5852144 [FIX] hr_holidays: do not allow reduce remaining leaves
In the Employee form, a remaining legal leaves field is available, which shows remaining validated leaves from allocation requests
As this is not allowed to delete a validated allocation requets, it shouldn't be possible to reduce the validated remaining leaves of an employee.
To reduce the remaining leaves of an employee, the user should cancel and remove the allocation request
2014-07-25 14:45:48 +02:00
Richard Mathot eadd1b3907 [FIX] survey: correct counting of finished answers 2014-07-25 13:47:42 +02:00
Richard Mathot f0b6beac29 [FIX] survey: comments are properly recorded now 2014-07-25 13:47:42 +02:00
Richard Mathot 7ac86cff07 [DOC] survey: retroengineering
A bit of commenting in order to help future debugging and unf**king of
the survey reporting tool.
2014-07-25 13:47:42 +02:00
Richard Mathot 2a02d644a2 [FIX] survey: remove duplicate browse record
The `prepare_result` dict shouldn't keep a browse record of a survey, as it
is explicitely passed to the template by the controller
`survey_reporting`
2014-07-25 13:47:42 +02:00
Richard Mathot b7e62ae3dc [FIX] survey: minor view fixes 2014-07-25 13:47:42 +02:00
Ravish 98ddec4fb8 [ADD] sale: validity date in sale order report 2014-07-25 13:23:11 +02:00
Denis Ledoux 46ef1356d6 [ADD] safe_eval: UNPACK_SEQUENCE and Exception
Allowing UNPACK_SEQUENCE allows the use of the "multi" assignation:
a, b = [1,2]
for a,b in items
2014-07-25 13:00:17 +02:00
Denis Ledoux 133becd966 [FIX] ir_fields: allow accent on selection import
If the selection label (not value) had accents, it wasn't possible to import it using the label having accents
2014-07-25 11:53:30 +02:00
dsabrinarg 93127099c9 [ADD] base_vat: add VAT validation for Peruvian localization. 2014-07-25 11:35:20 +02:00