Christophe Simonis [Wed, 13 Aug 2014 09:12:20 +0000 (11:12 +0200)]
[FIX] web_graph : display the corresponding label for selection fields in graph view
Denis Ledoux [Wed, 13 Aug 2014 08:29:14 +0000 (10:29 +0200)]
[MERGE] forward port of branch saas-3 up to 591326c
Denis Ledoux [Wed, 13 Aug 2014 08:20:03 +0000 (10:20 +0200)]
[FIX] pos: the widget.pos.cashier is not always defined
Rashmin Lumbhani [Tue, 5 Aug 2014 08:38:52 +0000 (14:08 +0530)]
[FIX] fleet: creation of suppliers is now correct
Denis Ledoux [Tue, 12 Aug 2014 16:13:27 +0000 (18:13 +0200)]
[FIX] website_customer: the extra / for url pager is not need in saas-4
Denis Ledoux [Tue, 12 Aug 2014 15:49:12 +0000 (17:49 +0200)]
[MERGE] forward port of branch 7.0 up to 60ab6f1
Denis Ledoux [Tue, 12 Aug 2014 15:45:05 +0000 (17:45 +0200)]
[FIX] web: on switch form (from list & kanban) do not load record if empty dataset
Ruchir Shukla [Sat, 21 Jun 2014 06:18:42 +0000 (11:48 +0530)]
[FIX] account_anglo_saxon: avoid duplication of price difference lines
When computing the price difference lines, in move_line_get of account_anglo_saxon, we loop on the result of super call for each lines (n * n times) to compute the price difference.
The product_id was used to match the returned line and the original invoice line. This was wrong as we could get several lines with the same product_id (and then get n * n price difference lines).
This patch adds the line id to the result of move_line_get (from account) so that account_anglo_saxon can filter more efficiently and only get one price difference per invoice line.
Fixes #704
Denis Ledoux [Tue, 12 Aug 2014 14:27:57 +0000 (16:27 +0200)]
[MERGE] forward port of branch saas-4 up to 7ecaab9
Martin Trigaux [Tue, 12 Aug 2014 14:08:30 +0000 (16:08 +0200)]
[FIX] web: missing self initialisation
The self is needed in the _value() method below, opw 608878
Denis Ledoux [Tue, 12 Aug 2014 14:07:35 +0000 (16:07 +0200)]
[FIX] website_customer: pager with country filter
Denis Ledoux [Tue, 12 Aug 2014 13:16:49 +0000 (15:16 +0200)]
Denis Ledoux [Tue, 12 Aug 2014 12:16:35 +0000 (14:16 +0200)]
[MERGE] forward port of branch 7.0 up to 245bb4e
Denis Ledoux [Tue, 12 Aug 2014 12:13:44 +0000 (14:13 +0200)]
[FIX] portal_claim: create claim with no partner_id
If partner_id is False, do not try to name_get
This fix is related to the rev
095be21ab17f7f731877d61c99b48b51119ff39a
Denis Ledoux [Tue, 12 Aug 2014 11:40:45 +0000 (13:40 +0200)]
[FIX] mail: to/from/reply-to addresses formated according to RFC2822
Use formataddr method from email.utils lib, which do the job correctly
Denis Ledoux [Tue, 12 Aug 2014 10:58:38 +0000 (12:58 +0200)]
[FIX] l10n_be_coda: set a meaningful filename default value
Denis Ledoux [Tue, 12 Aug 2014 09:02:15 +0000 (11:02 +0200)]
[FIX] procurement: refactor scheduler so it continues even if a procurement failed
If the mrp scheduler fails during the treatment of a procurement (due to a postgresql error, like an update lock), we let it try the other procurements, instead of stopping at the first procurement which fails.
Besides, we retry to treat the procurements which failed, until the list of the remaining procurements is always the same (meaning something is wrong and block the procurements treatment).
fka-odoo [Fri, 8 Aug 2014 06:46:22 +0000 (12:16 +0530)]
[IMP] payment_paypal: better label for paypal_seller_account
Rename the paypal_seller_account field as 'Merchant ID' instead of 'Seller ID' to match paypal terminology (opw 611765)
Denis Ledoux [Tue, 12 Aug 2014 08:31:09 +0000 (10:31 +0200)]
[IMP] calendar: use registry of request in notify controllers
Jeremy Kersten [Tue, 12 Aug 2014 08:23:38 +0000 (10:23 +0200)]
[FIX] website: google_map remove trailing slash and add an attribut for disable scrolling
Jeremy Kersten [Mon, 11 Aug 2014 15:15:57 +0000 (17:15 +0200)]
[FIX] website_event: show online in event in all country. Add filter online event. Keep the date between filter.
Denis Ledoux [Mon, 11 Aug 2014 13:30:37 +0000 (15:30 +0200)]
[MERGE] forward port of branch saas-3 up to 2f4be42
Denis Ledoux [Mon, 11 Aug 2014 13:28:54 +0000 (15:28 +0200)]
[MERGE] forward port of branch 7.0 up to 3632949
Denis Ledoux [Mon, 11 Aug 2014 12:39:50 +0000 (14:39 +0200)]
[FIX] web: image fields re-render on next/previous
By default, on binary images read, the server returns the binary size
This is possible that two images have the exact same size
Therefore we trigger the change in case the image value hasn't changed
So the image is re-rendered correctly
Cedric Snauwaert [Fri, 8 Aug 2014 12:09:44 +0000 (14:09 +0200)]
[FIX] css: add display table rule to oe_popup_form class
To correct the display of the "add contact" wizard in modal (buttons not well placed)
Denis Ledoux [Mon, 11 Aug 2014 09:11:36 +0000 (11:11 +0200)]
[FIX] yaml tests: Set on_change keys not in view logger as debug instead of warning
This is related to commit
d31faceb67fd87acaca00365dcfc28925b08a37f
(This is to avoid the runbot being yellow if on_change methods have extra keys in the returned value, this is not wrong, the web client will simply ignore them).
Jérome Maes [Mon, 11 Aug 2014 09:00:31 +0000 (11:00 +0200)]
[FIX] web_kanban : resequence column and content by drag and dropping
Denis Ledoux [Mon, 11 Aug 2014 08:32:08 +0000 (10:32 +0200)]
[FIX] website: seo, url encode params, + handle connection breaks
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
Samus CTO [Fri, 8 Aug 2014 09:46:41 +0000 (11:46 +0200)]
[FIX] Calculate date interval using super user time zone
When you set the date of a cron the July 1st at midnight, if the user
time zone has a positive offset, then the converted UTC date is the
June 30th and adding 1 month will end up on July 30th translating to
July 31th instead of September 1st.
To solve this issue we use the super user time zone for the date
calculation.
Denis Ledoux [Fri, 8 Aug 2014 15:06:39 +0000 (17:06 +0200)]
[MERGE] forward port of branch saas-3 up to 81a902a
Denis Ledoux [Fri, 8 Aug 2014 14:18:35 +0000 (16:18 +0200)]
[MERGE] forward port of branch 7.0 up to 5f696ba
Denis Ledoux [Fri, 8 Aug 2014 14:05:32 +0000 (16:05 +0200)]
[FIX] pos: display cashier name on receipt, not the user
Jeremy Kersten [Fri, 8 Aug 2014 13:51:35 +0000 (15:51 +0200)]
[FIX] wesbite: update google analytics snippet according to google recommandation
Martin Trigaux [Fri, 8 Aug 2014 10:29:47 +0000 (12:29 +0200)]
[FIX] account_anglo_savon: round prices according to account precision to avoid getting unbalanced move
The standard move_line_get from account.invoice returns prices rounded (price_subtotal field as account precision) while the anglo-saxon module could return dict with non-rounded prices.
With amounts with bigger precision, we could get a difference of a few cents when comparing the debit/credits and then not be able to balance the invoice (opw 597208).
Denis Ledoux [Fri, 8 Aug 2014 09:40:30 +0000 (11:40 +0200)]
[FIX] yaml tests: extra key in on_change result isn't that bad.
In the return result of an on_change, having keys which are not ine the view is not that bad, it is not an actual problem.
Display warning instead of asserting all the keys are in the views.
Hardik Ansodariya [Tue, 15 Jul 2014 06:03:49 +0000 (11:33 +0530)]
[FIX] account_analytic_plan: correctly check context
The id of the journal is passed in the context. Avoid trying to browse on jounral_id=False
Fixes #821
dhr-odoo [Fri, 18 Jul 2014 10:44:28 +0000 (16:14 +0530)]
[FIX] project_timesheet: test used fields added not in dependencies
The fields procure_method and supply_method are not present if we just install project_timesheet which makes the tests fail (opw 610590).
Denis Ledoux [Thu, 7 Aug 2014 16:20:13 +0000 (18:20 +0200)]
[MERGE] forward port of branch 7.0 up to a86dfb8
Martin Trigaux [Thu, 7 Aug 2014 14:51:46 +0000 (16:51 +0200)]
[FIX] mail: avoid duplication followers when merging partners
Martin Trigaux [Thu, 7 Aug 2014 14:50:38 +0000 (16:50 +0200)]
[IMP] crm: clean after partner merge
When trying to merge partners, an sql error may be violated (e.g. unique constraints).
In this case, catch the error and delete the problematic record as it will no longer be relevant with the old partner and left unconsistant data in the database.
Martin Trigaux [Thu, 7 Aug 2014 16:15:37 +0000 (18:15 +0200)]
[FIX] website_sale: avoid displaying inactive products in shops
The domains in the form ('o2m_field', operator, False) do not use the orm but convert the domain to ('id', 'invert operator', [list of ids]). This means that the orm is not used and implicit filter (active=True) or access rights are not checked.
A proper fix in master should be done to use the orm instead of an SQL query.
This patch force a search to be made on product.product and then exclude the products where active=False (opw 607602).
Denis Ledoux [Thu, 7 Aug 2014 16:04:13 +0000 (18:04 +0200)]
[FIX] web_kanban: in non-grouped kanban, on switch to form, display first record
in view_form.js, in do_show method, if the dataset index is not set, the on_button_new method is triggered, opening a new record
In regular kanbans (non-grouped kanban), the dataset index wasn't set, and, therefore, when switching to the view mode, it opened a form for a new record instead of opening the first record of the list, like this is the case for the view list and the grouped kanban
Jeremy Kersten [Thu, 7 Aug 2014 15:38:01 +0000 (17:38 +0200)]
[IMP] email_template: add a lambda function to allow a user to format a date from a template mail into a specific timezone, and/or in a specific format.
Eg: ${format_tz(object.name, object.employee_id.address_id.tz,'%m/%d/%Y %H:%M')}
Somesh Khare [Thu, 7 Aug 2014 14:57:23 +0000 (16:57 +0200)]
[FIX] account_voucher: fix typo in journal_id type
Jérome Maes [Thu, 7 Aug 2014 14:00:19 +0000 (16:00 +0200)]
[FIX] web_graph : display the correct label for Selection fields in view graph
Denis Ledoux [Thu, 7 Aug 2014 12:50:14 +0000 (14:50 +0200)]
[FIX] report: allow using 0 decimal precision in rml reports
Jeremy Kersten [Thu, 7 Aug 2014 11:02:59 +0000 (13:02 +0200)]
[FIX] calendar/crm: Add active_id (if in model partner_id) in defaults values from partner_ids when we creates a new meeting.
Bug was that when you click on meeting button from a res_partner form (Customers in menu), the button overwrites the context to use the active partner as a default in the calendar meeting. By consequence, the context overwritte the default partner who are the creator. Now the context could be removed from action and that is in get_default for partner_ids (from model calendar_event) that we add the creator AND the active_id if from a model res_partner.
Denis Ledoux [Thu, 7 Aug 2014 09:54:30 +0000 (11:54 +0200)]
[FIX] payment_paypal: SUPERUSER_ID removed by inadvertence in
1826f6d4eca499754a1f4bbe7179987eab473a55
Denis Ledoux [Thu, 7 Aug 2014 09:41:18 +0000 (11:41 +0200)]
[FIX] payment_paypal: use the validate url according to the acquirer env
fka-odoo [Wed, 23 Jul 2014 11:57:25 +0000 (17:27 +0530)]
[FIX] account: child_of operator in invoice analysis report
When displaying invoice analysis of a company, include the invoices of the members of this company (opw 611084)
Denis Ledoux [Wed, 6 Aug 2014 17:00:01 +0000 (19:00 +0200)]
[FIX] account: payment_ids should list payments of same account than the invoice account
Humberto Arocha [Thu, 10 Jul 2014 05:53:51 +0000 (01:23 -0430)]
[FIX] Account: Consolidation Account should not be carried to next fiscalyear
Stéphane Bidoul (ACSONE) [Thu, 17 Jul 2014 15:43:02 +0000 (17:43 +0200)]
[FIX] l10n_be: spelling error in financial reports
Martin Trigaux [Wed, 6 Aug 2014 12:51:48 +0000 (14:51 +0200)]
[FIX] account_voucher: validation of refund in multicurrency
Fixing several issues for refunds in multicurrency mode that prevented the moves to be balanced.
The amount_currency needs to use the absolute value, as a refund will have a negative amount.
The sign for currency_rate_difference needs to use the line instead of the voucher as they can have different value. e.g. a voucher of 1000$ with invoice of 1200$ and refund of 200$ will have two lines and their currency_rate_difference should have different signs.
Avoids doubling the value in foreign_currency_diff
Fixes #1490, opw 607118 & 611580
Denis Ledoux [Wed, 6 Aug 2014 12:18:57 +0000 (14:18 +0200)]
[FIX] mail: add tooltip to send a message and log a note links
Denis Ledoux [Wed, 6 Aug 2014 11:50:35 +0000 (13:50 +0200)]
[FIX] portal_sale: inadvertence during the forward port
978fd47261d3a6cb6e39053892fb291bf61b511c
Denis Ledoux [Wed, 6 Aug 2014 11:06:46 +0000 (13:06 +0200)]
[FIX] crm_claim: set options no_create, no_open instead of selection
To avoid access denied errors for portal users
Denis Ledoux [Wed, 6 Aug 2014 11:06:20 +0000 (13:06 +0200)]
[MERGE] forward port of branch 7.0 up to 095be21
Denis Ledoux [Wed, 6 Aug 2014 10:47:40 +0000 (12:47 +0200)]
[FIX] crm_claim: allow to create claim as portal user
It wasn't possible to create claims as a portal user when the portal user had a parent_id
Paulius Sladkevičius [Mon, 4 Aug 2014 10:37:50 +0000 (13:37 +0300)]
[FIX] point_of_sale: clear tag in pos order sheet layout
Without clear tag total amounts breaks sheet layout.
Denis Ledoux [Wed, 6 Aug 2014 09:17:39 +0000 (11:17 +0200)]
[FIX] website_quote: add description sale to quote line description
Rifakat Husen [Tue, 5 Aug 2014 15:15:06 +0000 (17:15 +0200)]
[FIX] stock: onchange method should take the description
The onchange_product_id method used to only change the description if the stock.move is not saved yet. That does not make much sense.
opw 607347, bug lp:1314700
Anael Closson [Tue, 5 Aug 2014 15:01:23 +0000 (17:01 +0200)]
[FIX] analytic: name_search on accounts
The name_search was hardcoding ilike operator while it could be different. This means that a name_search "name != Agrolait" would return accounts with agrolait.
A side effect of this was the impossibility to import account_analytic_account whose parent is a substring of another - opw 607315
Anael Closson [Mon, 4 Aug 2014 15:24:56 +0000 (17:24 +0200)]
[FIX] sale: quote character in company name is converted to html entity
Avoid to get company names such as "L'abc" to be transformed as "L'abc" opw 607221
Jeremy Kersten [Tue, 5 Aug 2014 08:26:03 +0000 (10:26 +0200)]
[FIX] slug: fallback to positive ID when slug appears to contain a missing negative ID
Cherry-pick from
dcac4cc0dfd4412e1139399fb17ec7ba6118aad4
Martin Trigaux [Mon, 4 Aug 2014 15:52:02 +0000 (17:52 +0200)]
[FIX] calendar: avoid double 'Attendees' field in search view
The partner_ids fields represents attendees but it's confusing to have twice the same field in search view (opw 607275)
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
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 [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
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
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 ;-)
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