Denis Ledoux [Mon, 4 Aug 2014 14:14:31 +0000 (16:14 +0200)]
[MERGE] forward port of branch saas-4 up to 8c0c743
Denis Ledoux [Mon, 4 Aug 2014 14:14:05 +0000 (16:14 +0200)]
[MERGE] forward port of branch saas-3 up to ebf317a
Denis Ledoux [Mon, 4 Aug 2014 14:10:06 +0000 (16:10 +0200)]
[MERGE] forward port of branch 7.0 up to e07bc5d
sle-odoo [Mon, 4 Aug 2014 14:09:40 +0000 (16:09 +0200)]
Merge pull request #1563 from odoo-dev/saas-4-sale-report-validity-date-sle
website_quote: renamed validity date to expiry date & adapted the sale order report to display the expiry date in website_quote module instead of sale module
Denis Ledoux [Mon, 4 Aug 2014 13:54:56 +0000 (15:54 +0200)]
[ADD] res_partner: test case for fix rev
4a278809741d4e961ac13d3477a046d43b32cfa7
Simon Lejeune [Mon, 4 Aug 2014 13:49:16 +0000 (15:49 +0200)]
[REF] website_quote: displayed string of validity_date field changed from 'Validity Date' to 'Expiry Date'
dhr-odoo [Tue, 10 Jun 2014 08:56:08 +0000 (14:26 +0530)]
[FIX] survey: missing timezone conversions
As the survey hardcode lot's of views and reports in python, we do not beneficiate from automatic timezone conversions in the webclient.
Hopefully this is fixed in v8 after refactoring of the survey module. opw 608786
Simon Lejeune [Mon, 4 Aug 2014 12:45:38 +0000 (14:45 +0200)]
[FIX] sale/website_quote: inherit the sale order report to show the validity date
Christophe Matthieu [Mon, 4 Aug 2014 12:43:54 +0000 (14:43 +0200)]
Merge pull request #1428 from odoo-dev/sass-5-fixes-chm
[FIX] website_sale and point_of_sale fixes
Jeremy Kersten [Mon, 4 Aug 2014 12:41:55 +0000 (14:41 +0200)]
[FIX] website: encode param for seo search, else multi words will not work.
Denis Ledoux [Mon, 4 Aug 2014 12:34:08 +0000 (14:34 +0200)]
[FIX] res_partner: commercial partner sync
On child partner creation of a parent partner, the commercial_partner_id is not computed (and stored) in the create method.
Therefore, we should compute the commercial_partner_id before trying to sync his data
Jeremy Kersten [Mon, 4 Aug 2014 10:25:59 +0000 (12:25 +0200)]
[FIX] website: use internal route for SEO suggest keyword, old server is down
Denis Ledoux [Mon, 4 Aug 2014 09:05:01 +0000 (11:05 +0200)]
[FIX] payment*: add the customer state to payment (paypal) transactions
Denis Ledoux [Mon, 4 Aug 2014 08:25:59 +0000 (10:25 +0200)]
[FIX] payment_paypal: paypal IPN, receiver_id is not always passed
The method _paypal_form_get_invalid_parameters checks that the params passed by the paypal feedback coroborate with the transaction requested by Odoo.
It looks like the 'receiver_id' is not always passed by the paypal feedback. Therefore, we check this param only if it is available in the paypal feeback.
This issue had as side-effect to not validate the paypal transaction, which remained 'draft' permanently.
Olivier Dony [Sat, 2 Aug 2014 18:35:51 +0000 (20:35 +0200)]
[MERGE] Forward-port saas-3 up to b6acdc4
Olivier Dony [Sat, 2 Aug 2014 18:34:44 +0000 (20:34 +0200)]
[MERGE] Forward-port 7.0 up to 2493395
Olivier Dony [Sun, 3 Aug 2014 18:12:45 +0000 (20:12 +0200)]
[FIX] product_visible_discount: no crash when no pricelist passed or product without company
Fixes an error introduced in f6fb2b6
Olivier Dony [Sat, 2 Aug 2014 01:32:09 +0000 (03:32 +0200)]
[FIX] product_visible_discount: no crash when no pricelist passed or product without company
Fixes an error introduced in f6fb2b6
Olivier Dony [Fri, 1 Aug 2014 21:14:59 +0000 (23:14 +0200)]
[MERGE] Forward-port saas-3 up to 7273474
Olivier Dony [Fri, 1 Aug 2014 21:10:29 +0000 (23:10 +0200)]
[MERGE] Forward-port saas-3 up to fc92027
Olivier Dony [Fri, 1 Aug 2014 21:04:42 +0000 (23:04 +0200)]
[FIX] website: OpenERP->Odoo in website footer
Olivier Dony [Fri, 1 Aug 2014 21:01:57 +0000 (23:01 +0200)]
[MERGE] Forward-port 7.0 up to
9411a2da
Olivier Dony [Fri, 1 Aug 2014 20:42:01 +0000 (22:42 +0200)]
[FIX] Model.load(): extra error checking while importing data
If any missing or partially incorrect values cause
an exception other than a psycopg2 error, we should
still catch it, rollback that record and report
the error, rather than letting bubble and fail
without any feedback to the user.
Fixes #1485
Christophe Simonis [Fri, 1 Aug 2014 15:29:20 +0000 (17:29 +0200)]
[FIX] account: res.partner: limit access to "total_invoiced" field to group "group_account_invoice". Use SUPERUSER_ID to access data
Christophe Matthieu [Fri, 1 Aug 2014 15:11:20 +0000 (17:11 +0200)]
[FIX] website_sale: everytime you want to change both billing & delivery address, any change creates duplicates in the backend
Martin Trigaux [Fri, 1 Aug 2014 15:07:56 +0000 (17:07 +0200)]
[IMP] base: show possible titles for companies (opw 608243)
Martin Trigaux [Fri, 1 Aug 2014 10:43:31 +0000 (12:43 +0200)]
[FIX] product_visible_discount: multicurrency pricelists
When we compute the discount of a product to display (result of product_id_change), we compare prices in the currency of the product while we expect prices in the currency of the pricelist. opw 606188
dhr-odoo [Wed, 9 Jul 2014 07:23:36 +0000 (12:53 +0530)]
[FIX] orm: set default before removing magic fields
When a record is created, the magic fields (id, create_date,...) are first removed from the vals as the user should not set a value for these.
However if a value for this is given in default value (e.g. defined in an ir.value), the creation would crash (sql error : column specified more than once) as the magic column would be added again.
Julien Legros [Fri, 1 Aug 2014 13:33:58 +0000 (15:33 +0200)]
[FIX] website: update url in the footer
Denis Ledoux [Fri, 1 Aug 2014 12:48:16 +0000 (14:48 +0200)]
[FIX] website_sale: confirm sale order on payment_confirmation
Same behavior than in saas-5
Denis Ledoux [Fri, 1 Aug 2014 12:20:55 +0000 (14:20 +0200)]
[FIX] mass_mailing: possibility to subscribe again to a mailing list
It was not possible to subscribe again to a mailing list once unsubscribed
Olivier Dony [Fri, 1 Aug 2014 11:06:49 +0000 (13:06 +0200)]
[MERGE] Forward-port saas-4 up to 8b15482
Olivier Dony [Fri, 1 Aug 2014 10:54:30 +0000 (12:54 +0200)]
[MERGE] Forward-port saas-3 up to e79a367
Olivier Dony [Fri, 1 Aug 2014 10:34:41 +0000 (12:34 +0200)]
[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 ;-)
Christophe Matthieu [Fri, 1 Aug 2014 09:54:39 +0000 (11:54 +0200)]
[FIX] website: the media video create by the media editor is not display in firefox. change the css to display the video and add z-index to the div for edit mode
Cedric Snauwaert [Thu, 31 Jul 2014 14:09:50 +0000 (16:09 +0200)]
[FIX] web: remove unneeded overflow-y on modal-body class
Will fix problem where opened dropdown list were hidden behind the modal footer
Jeremy Kersten [Fri, 1 Aug 2014 09:25:41 +0000 (11:25 +0200)]
[FIX] mass_mailing: allow to add a user/email to a specific mailing list and not always the last as previously.
Denis Ledoux [Fri, 1 Aug 2014 08:05:56 +0000 (10:05 +0200)]
[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
Anaël Closson [Fri, 20 Jun 2014 11:13:23 +0000 (13:13 +0200)]
[FIX] mail: message-id not parsed properly in message_route
Same as for rev 4bad513, the references were not correctly parsed, added missing regex
Denis Ledoux [Thu, 31 Jul 2014 17:38:00 +0000 (19:38 +0200)]
[FIX] crm: base_partner_merge, search with lowercase for name,email
and without spaces for vat
Denis Ledoux [Thu, 31 Jul 2014 16:17:48 +0000 (18:17 +0200)]
[MERGE] forward port of branch 7.0 up to
7c5bf67a5f9378fe4ae01eeffff24889f7bdcdc5
Denis Ledoux [Thu, 31 Jul 2014 16:15:41 +0000 (18:15 +0200)]
[FIX] account: unit arg of on_change_unit_amount can be False
Denis Ledoux [Thu, 31 Jul 2014 16:06:57 +0000 (18:06 +0200)]
[MERGE] forward port of branch 7.0 up to
cd31cbf556cc11950ce6188041cf5c2fcd89e0f8
Denis Ledoux [Thu, 31 Jul 2014 16:05:17 +0000 (18:05 +0200)]
[FIX] account: on_change_unit_amount do not reset uom to default
Cedric Snauwaert [Mon, 28 Jul 2014 15:07:47 +0000 (17:07 +0200)]
[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
Christophe Matthieu [Thu, 31 Jul 2014 15:21:26 +0000 (17:21 +0200)]
[FIX] point_of_sale: On product form : push on button 'Set a Custom Ean' on tab information raise an exception => Use a record action and clean python files
Christophe Matthieu [Thu, 31 Jul 2014 13:22:51 +0000 (15:22 +0200)]
[FIX] website_sale: can't click on confirm order in mobile view
Jeremy Kersten [Thu, 31 Jul 2014 12:43:42 +0000 (14:43 +0200)]
[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
Martin Trigaux [Thu, 31 Jul 2014 07:21:45 +0000 (09:21 +0200)]
[FIX] stock: production lot as no longer a company_id field
Christophe Simonis [Wed, 30 Jul 2014 18:30:14 +0000 (20:30 +0200)]
[MERGE] forward port of branch saas-4 up to fa07bc8
Christophe Simonis [Wed, 30 Jul 2014 17:09:33 +0000 (19:09 +0200)]
[MERGE] forward port of branch saas-3 up to 310d3fe
Christophe Simonis [Wed, 30 Jul 2014 16:55:31 +0000 (18:55 +0200)]
[MERGE] forward port of branch 7.0 up to 39f3e40
Guewen Baconnier [Wed, 9 Jul 2014 09:39:58 +0000 (11:39 +0200)]
[FIX] sale: copy_quotation must propagate the context
dhr-odoo [Mon, 7 Jul 2014 12:38:12 +0000 (18:08 +0530)]
Passed default type while creating document page category from document page
Martin Trigaux [Wed, 30 Jul 2014 13:27:58 +0000 (15:27 +0200)]
[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
Ravi Gohil [Thu, 10 Jul 2014 11:39:15 +0000 (17:09 +0530)]
[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
Denis Ledoux [Wed, 30 Jul 2014 13:26:43 +0000 (15:26 +0200)]
[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.
Christophe Simonis [Wed, 30 Jul 2014 13:10:22 +0000 (15:10 +0200)]
[FIX] website: do not restore page views
Cedric Snauwaert [Tue, 29 Jul 2014 14:07:26 +0000 (16:07 +0200)]
[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
Lionel Sausin (Numérigraphe) [Fri, 25 Jul 2014 09:54:36 +0000 (11:54 +0200)]
[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
Christophe Matthieu [Tue, 29 Jul 2014 13:20:25 +0000 (15:20 +0200)]
[FIX] product: some fields on the product template readonly when my product doesn't have any variant
StefanRijnhart [Tue, 29 Jul 2014 10:17:38 +0000 (12:17 +0200)]
[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.
xmo-odoo [Tue, 29 Jul 2014 11:51:48 +0000 (13:51 +0200)]
Merge pull request #1391 from savoirfairelinux/7.0-translate-trans_generate_debug_print
[FIX] translate: Fix debug print when parse path list to translate.
Denis Ledoux [Tue, 29 Jul 2014 09:42:10 +0000 (11:42 +0200)]
[MERGE] forward port of branch 7.0 up to
bbb8d8f25a7a81c26965aa76b5085961a13132d6
Denis Ledoux [Tue, 29 Jul 2014 09:35:19 +0000 (11:35 +0200)]
[MERGE] forward port of branch 7.0 up to
767d2ea9a63ceb6d8473766f52eb06f69b281ca1
Denis Ledoux [Tue, 29 Jul 2014 08:42:50 +0000 (10:42 +0200)]
[MERGE] forward port of branch 7.0 up to
b91a75f7eff85edd5d51a91d10d6e3be8a409030
Conflicts:
addons/base_vat/base_vat.py
openerp/tools/safe_eval.py
Denis Ledoux [Mon, 28 Jul 2014 17:34:12 +0000 (19:34 +0200)]
[FIX] website_event: display unconfirmed events too
Denis Ledoux [Mon, 28 Jul 2014 17:02:11 +0000 (19:02 +0200)]
[FIX] web: on refresh, do search_read with fields passed
Ravi Gohil [Fri, 25 Jul 2014 07:15:40 +0000 (12:45 +0530)]
[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)
Jeremy Kersten [Mon, 28 Jul 2014 12:41:48 +0000 (14:41 +0200)]
[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.
Martin Trigaux [Mon, 28 Jul 2014 12:35:44 +0000 (14:35 +0200)]
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).
Humberto Arocha [Thu, 10 Jul 2014 19:55:01 +0000 (15:25 -0430)]
[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
Martin Trigaux [Mon, 28 Jul 2014 07:35:25 +0000 (09:35 +0200)]
[FIX] stock: backport of rev 0a6d63b
Mathieu Benoit [Fri, 25 Jul 2014 20:17:29 +0000 (16:17 -0400)]
[FIX] translate: Fix debug print when parse path list to translate.
Richard Mathot [Fri, 25 Jul 2014 12:48:57 +0000 (14:48 +0200)]
[FIX] survey: display comments in results
Denis Ledoux [Fri, 25 Jul 2014 12:45:48 +0000 (14:45 +0200)]
[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
Richard Mathot [Fri, 25 Jul 2014 11:47:09 +0000 (13:47 +0200)]
[FIX] survey: correct counting of finished answers
Richard Mathot [Fri, 25 Jul 2014 10:29:15 +0000 (12:29 +0200)]
[FIX] survey: comments are properly recorded now
Richard Mathot [Wed, 16 Jul 2014 14:49:00 +0000 (16:49 +0200)]
[DOC] survey: retroengineering
A bit of commenting in order to help future debugging and unf**king of
the survey reporting tool.
Richard Mathot [Wed, 16 Jul 2014 14:24:48 +0000 (16:24 +0200)]
[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`
Richard Mathot [Wed, 16 Jul 2014 12:50:19 +0000 (14:50 +0200)]
[FIX] survey: minor view fixes
Ravish [Fri, 25 Jul 2014 10:11:21 +0000 (15:41 +0530)]
[ADD] sale: validity date in sale order report
Denis Ledoux [Fri, 25 Jul 2014 11:00:17 +0000 (13:00 +0200)]
[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
Denis Ledoux [Fri, 25 Jul 2014 09:53:30 +0000 (11:53 +0200)]
[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
dsabrinarg [Fri, 25 Jul 2014 03:31:12 +0000 (22:31 -0500)]
[ADD] base_vat: add VAT validation for Peruvian localization.
Martin Trigaux [Fri, 25 Jul 2014 08:57:30 +0000 (10:57 +0200)]
[FIX] website_membership: access rules fixes
When searching on memberships, we use domain clauses in the format 'partner.x = y' where partner is a many2one to res.partner. The object res.partner has strict security rules for public users and this search will return zero result if not done with SUPERUSER_ID.
In addition, we need to access the list of products (membership_ids) in the domain to be sure we will retrieve only published membership (otherwise it would crash in the sort below).
Martin Trigaux [Fri, 25 Jul 2014 07:47:13 +0000 (09:47 +0200)]
[FIX] website: iframe to google maps need the trailing slash, otherwise the path and the id are not separated (e.g.: '/members42')
Denis Ledoux [Thu, 24 Jul 2014 18:42:21 +0000 (20:42 +0200)]
[FIX] stock: do not set user_id on prepare_invoice_group
The user_id is already set by the prepare_invoice method, which is called before the prepare_invoice_group (the user_id is already set, thus)
Besides, _prepare_invoice is overriden in sale_stock, to set the picking sale order salesman as user_id, and, without this correct, grouping invoicse by partner re-set the user_id to uid, which is wrong.
Denis Ledoux [Thu, 24 Jul 2014 17:41:15 +0000 (19:41 +0200)]
[FIX] project: remove state field from task analys
The state has been replaced by stage_id in the view, so the state is no longer used
Moreover, when doing an advanced search, the field state is visible and if used -> Traceback (because not available in the report sql table)
opw-609984
Jeremy Kersten [Thu, 24 Jul 2014 16:12:32 +0000 (18:12 +0200)]
[FIX] website: catch exception on destroy of ckeditor to allow the modifications to be saved anyway
Yannick Vaucher [Thu, 24 Jul 2014 10:21:34 +0000 (12:21 +0200)]
[IMP] account: do not offer closed analytic accounts on invoices
lp:1223922, opw 609656
Denis Ledoux [Thu, 24 Jul 2014 09:53:57 +0000 (11:53 +0200)]
[FIX] ir_attachment: _filestore cache ignore uid
replace ormcache_context by ormcache: use the context in the cache key is useless
set skiparg=3 (default skiparg=2) so the uid is not used in the cache key: the filestore path is the same for all database users
Jeremy Kersten [Thu, 24 Jul 2014 09:07:46 +0000 (11:07 +0200)]
[FIX] website_sale: fix error in tracking_last_order which was using the field is_delivery from module delivery
Ravi Gohil [Mon, 9 Jun 2014 07:17:54 +0000 (12:47 +0530)]
[FIX] purchase_analytic_plans: keep reference to analytic distribution
Purchase orders created with invoice policy 'Based on incoming shipments' were not keeping the reference to the account analytic distribution when invoiced. opw 607577
Christophe Matthieu [Thu, 24 Jul 2014 07:35:04 +0000 (09:35 +0200)]
Merge pull request #1340 from odoo-dev/saas-3-fix-website-snippet-button-css-chm
[FIX] website.snippet: display snippet editor button inline insead of 2 lines for the small boxes
Martin Trigaux [Thu, 24 Jul 2014 06:50:48 +0000 (08:50 +0200)]
[FIX] gamification: why is there a button here ? do you need a button ? I don't think so...
Jeremy Kersten [Wed, 23 Jul 2014 15:10:02 +0000 (17:10 +0200)]
[FIX] website_blog: Add sanitize=False on content of blog to allow writer/author to insert some tricky code like form or JS
Christophe Matthieu [Wed, 23 Jul 2014 14:21:53 +0000 (16:21 +0200)]
[FIX] website.snippet: display snippet editor button inline insead of 2 lines for the small boxes
Christophe Matthieu [Wed, 23 Jul 2014 14:25:39 +0000 (16:25 +0200)]
Merge pull request #1337 from odoo-dev/saas-5-fix-product-taxes-view-chm
[FIX] account: the 'Customer taxes' field on the product is readonly when my product doesn't have any variant
Martin Trigaux [Wed, 23 Jul 2014 14:23:22 +0000 (16:23 +0200)]
[MERGE] forward port of branch 7.0 up to 67cca3f