Commit Graph
102419 Commits
Author SHA1 Message Date
Thibault Delavallée 00aab045b0 [FIX] sale: fix context update wrongly migrated / updated at 94716a3f14
Purpose of the code is to automatically add the recipients of quotation emails
as followers. It is done using the mail_post_autofollow context key. However
current code add the context key in all cases and not just when composing
a message on sale order.
2016-09-30 12:37:02 +02:00
Nicolas Martinelli b2b85fbb19 [FIX] website_sale: recompute fiscal position
Following commit 6006c0d72a, the shipping address can be changed after
the call to `checkout_form_save`. This is the case, for example, when
the user has the same shipping and invoicing address. We need to make
sure to recompute the fiscal position after the shipping address is
finally set.

opw-689281
2016-09-30 11:52:51 +02:00
Nicolas Martinelli 204c75939a [FIX] sale: always set fiscal position
An issue occurs in the following case:
- create a SO
- set a partner for which a fiscal position applies
- change the partner to a partner for which no fiscal position applies

The fiscal position set in a first place remains. This is a major issue
when interacting with the eCommerce, since a fiscal position can be
first set based on the GeoIP results, then might need to be removed when
the user fills in his address details.

opw-689281
2016-09-30 11:48:16 +02:00
Denis Ledoux dd28f9bf78 [FIX] website_quote: /quote/ redirects to login when not signed in and no token
When the route /quote/<order_id>
is accessed without token
e.g. through the `View sales Order` button
in the headers of thread mails

the user must be redirected to the login screen
if he's not signed in.

In other words, you must be signed in to access
this route without token.

opw-687931
2016-09-29 15:06:38 +02:00
qdp-odoo 6c79cfa83d [FIX] stock_account: copy the analytic account on the COGS entry in anglo-saxon mode.
OPW Ticket: 688456
2016-09-29 10:19:45 +02:00
Martin Trigaux 349e873f8e [IMP] l10n_be: fully translate CoA in Dutch 2016-09-29 08:27:47 +02:00
Nicolas Martinelli b83efd4c3d [FIX] google_drive: user_is_admin
Oversight of commit e80f1152 which causes a crash since the variable is
not defined anymore.

opw-689353
2016-09-28 15:03:31 +02:00
David Monjoie f82aeb05d0 [FIX] event: fix registration confirmation delay
The previous line was O(n^2). With n=1200 like we just have now,
things didn't look good for this loop and confirming an attendee
registration to such event took approx. 13 seconds.

Since the list comprehension is in no mean linked to the value
of "item" in the filter, I simply moved it out so it is only
computed once.
2016-09-28 13:44:16 +02:00
Denis Ledoux 9ba569874c [FIX] calendar: fix attendees list in invitation email
Upon the creation of an event,
the list of attendees displayed in the invitation emails
were not complete because the emails were sent as the attendees
were being added to the event, in the loop.

e.g.:
 - Create an event with Joseph and Michel
 - Joseph received the invitation email with only him as attendee
 - Michel received the invitaiton email with Joseph and him.

The invitation email of Joseph now contains all the attendees.

opw-681242
2016-09-28 12:43:51 +02:00
Nicolas Martinelli 8469fe2eac [FIX] account: exchange rate date
The fields `amount_total_company_signed` and `amount_untaxed_signed` are
always converted using the exchange rate of today.

opw-688838
2016-09-28 09:55:00 +02:00
Olivier Dony 40bce50ddb Revert "[FIX] mail: onchange_template_id"
This reverts commit dc02f773ce.

This commit caused a side-effect that is worse than the issue
it tried to fix, which was purely cosmetic.
Now in mass-mail mode the template is only rendered once
and all recipients receive the same PDF, which completely
defeats the goal of a dynamic report. We have static
attachments for that.

Original fix related to opw-657152
Reverts PR #10568
2016-09-27 19:39:30 +02:00
qsm-odoo 1df161db6b [FIX] website_blog: keep consistent cover classes when changing cover image
! Note forward port: this is a partial backport, ignore when conflict

For some strange reason, the cover_full class was added when the cover
image was changed, without checking if the cover_narrow class was
already there. The cover was then a hybrid cover_narrow cover_full.

The problem was reinforced by the graphene theme which does some
animation on cover_full covers.
2016-09-27 17:28:31 +02:00
qsm-odoo c952e1fc55 [FIX] website_sale: fix shop list view publish buttons
Publish buttons appeared in list view item in /shop with commit
5a5dd1e100.

They however never worked for some reasons:
* The publish buttons were unclickable as the around style was badly
implemented: the section title was over the publish button
* Even if it was clickable, the publish button handler had no prevent
default, thus it submitted the form it is in -> crash when no cart
button or added to cart on click on publish button if there was a cart
button...

Note: the style should be reviewed in next versions, this commit, as
a 9.0 fix, fixes the style with the minimum code and so that it does
not break any theme.
2016-09-27 13:47:07 +02:00
Denis Vermylen (dve) 6490bdc263 [IMP] hr_holiday: remove leave onchange date check
When you create a leave, you first set the start date. The date widget triggers
and automatically sets you at today, which triggers the onchange and puts the
end date at today + 8 hours. You then set your start date in the future
-> invalid dates because start date > end date.

This commit removes the onchange verification of the dates, because almost
everyone gets the above problem and because it is redundant with the sql
constraint that triggers anyway when you try to save with invalid dates.
2016-09-27 10:51:37 +02:00
tdi-odoo ccd6fc621b [FIX] expense: fixes #13446 mutliple taxes on expenses 2016-09-27 10:45:38 +02:00
Michael Brown 1bb162c913 [CLA] Michael Brown
Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>

Closes #13070
2016-09-27 08:57:57 +02:00
Fabrice Henrion 6fb7680ef8 [IMP] policy clarification 2016-09-27 08:33:37 +02:00
Christophe Simonis e318a96490 [MERGE] forward port branch saas-6 up to 858a8b9 2016-09-26 13:49:49 +02:00
Christophe Simonis 858a8b9ef1 [MERGE] forward port branch 8.0 up to 4ab34d4 2016-09-26 13:32:09 +02:00
bfotop f9881b23bb [CLA] Add ICLA signature for Basilis Fotopoulos 2016-09-26 11:21:29 +02:00
Christophe Matthieu 7b2e857c2f [FIX] website: promote: very slow title edition when use keywords 2016-09-26 10:20:55 +02:00
Christophe Matthieu 34efcb498d [FIX] web: can't saved X2Many list editable if a deleted record is invalid
The widget test if all lines are valid to save the view, but the test include the removed lines (eg: required field).
2016-09-26 10:12:15 +02:00
Cesar Lage 4ab34d4156 [FIX] l10n_de: set reconciled to False for accounts of type liquidity… (#13520)
Courtesy of Cesar Lage. Thanks for the contribution
2016-09-26 09:43:08 +02:00
Odoo Translation Bot 6baef31c8f [I18N] Update translation terms from Transifex 2016-09-25 02:59:19 +02:00
Odoo Translation Bot 2a893606ae [I18N] Update translation terms from Transifex 2016-09-25 00:40:39 +02:00
Denis Vermylen (dve) e980915b49 [FIX] account: aged partner balance report title
the report pdf was titled "Aged Trial Balance" with Trial instead of Partner.
2016-09-23 12:32:15 +02:00
Olivier Dony 07cbde54d6 [FIX] account_asset: typos in field names (swapped) 2016-09-22 19:50:53 +02:00
Alexis de Lattre 8b1cd80914 [ADD] l10n_fr: add price included sale taxes
Closes #12695
2016-09-22 19:50:53 +02:00
Richard Mathot 419f4ac5db [FIX] tools: prevent html_translate crash with malformed HTML
If an user stores malformed HTML code in a *translatable HTML field*,
the ORM won't prevent it (this could be a fix for master as it breaks
existing behaviours) and it could be rendered anyway by browsers.

When reading/prefetching the record, the translation function was
crashing because malformed HTML is obviously malformed XML (the
translation function uses XML internals).

This fix will return the source value as a fallback if the HTML field is
malformed (and thus not translatable) + log the error.
2016-09-22 16:01:03 +02:00
Martin Trigaux 343170a695 [FIX] sale: bad translations for email templates
The source was outdated and the source in the po file did not match the content
of the email template which made duplicated translations when reloading the
terms.
2016-09-22 15:48:41 +02:00
Martin Trigaux 07e531efbf [I18N] export source terms
or at least the first part
many terms are missing which may cause problems when the source in the po file
is different from the source in the xml file (duplicated translation when
reloading)

Add the account_tax_exigible module
2016-09-22 15:42:02 +02:00
Jeremy Kersten 0e7c7a80d8 [IMP] base: set_param log warning if group not found. 2016-09-22 15:03:34 +02:00
Christophe Simonis 78f6117db0 [MERGE] forward port branch saas-6 up to 6a67e5c 2016-09-22 12:52:35 +02:00
Christophe Simonis 6a67e5cf42 [MERGE] forward port branch 8.0 up to e083d72 2016-09-22 12:46:30 +02:00
qsm-odoo 9ea6861d7e [FIX] web_editor: allow editing t-field links
There is a hackish feature in the web_editor which forces the
contenteditable to true on links which are clicked and removes it
anywhere else in the page so that only the link is editable after
click. This allows to add text at the end of a link without adding it
outside of the link by mistake.

The feature was badly implemented because, if the link was editable
without having any parent which is editable, the contenteditable was
forced to true, then immediatly forced to false when forcing to false
every page element. This was the case for lots of t-field. By example
the product categories in eCommerce are t-field links which are in non
editable <li/> elements...
2016-09-22 09:41:39 +02:00
Nicolas Lempereur e083d720a9 [FIX] website_blog: blog pager page issue
When we are on the page:

 /blog/myblog-1/page/2

the link to page 3 is:

 /blog/myblog-1/page/3

So we need to give /blog/our-blog-1 as source url of pager.

Previously in this instance, since 4faed0b7 the page 3 url
in this scenario would erroneously be:

 /blog/myblog-1/page/2/page/3

opw-688681
2016-09-22 08:05:20 +02:00
Jeremy Kersten e72b852015 [FIX] website_crm, website_hr_recruitment: remove useless token
This token will be added automatically at posting (by ajax.js from framework)
2016-09-21 21:34:11 +02:00
Wolfgang Taferner 71fd0829ef [FIX] anonymization: intercept exception in case of removed models and fields 2016-09-21 21:34:11 +02:00
Olivier Laurent 5bd0b05c22 [FIX] doc: typo in upgrade_api 2016-09-21 16:27:02 +02:00
Thomas Binsfeld (ACSONE) 69a4bf7a43 [IMP] hr: add tree view in Departments action window (#13418)
Tree view was removed to hide the different view types display in enterprise as it was "cleaner" for a dashboard. Re-adding for import button.

Future versions will not display departments as dashboard but employees anyway.
2016-09-21 14:56:38 +02:00
Jeremy Kersten 8b41933a9e [FIX] web_graph: force row title to be string
If the title was 'true' or 'false', the export failed, because we are tying to
concat bool and str. TypeError: cannot concatenate 'str' and 'bool' objects

How to reproduce, install sale, be sure to have one order with delivered = True
In Reporting / Sale analysis, add a group by 'shipped' filed to have 'true' as
title.

This commit closes issue odoo/odoo#13425
2016-09-21 10:59:39 +02:00
Stéphane Bidoul (ACSONE) dbd4114d38 [FIX] l10n_lu: fix reconcile flag in accounts template csv
Changes f -> FALSE and t -> TRUE, otherwise when installing the l10n_lu
COA, the reconcile flag is wrong.

Closes #13282
opw-688957
2016-09-20 17:46:13 +02:00
Richard deMeester 4f0ca6d923 [FIX] base: res.config name_get fix (#13513)
name_get function needs to ensure that read passes the required
ids as a list, not a single value.  This is very important if
the method is inherited.
2016-09-20 16:19:46 +02:00
qsm-odoo c4784fc75b [FIX] web_editor: activate autoplay feature for videos
The checkbox was there to activate autoplay... but was not doing
anything since the web_editor/website split.
2016-09-20 13:40:53 +02:00
Martin Trigaux f978d85f05 [I18N] l10n_be: add missing translations for CoA 2016-09-19 17:49:58 +02:00
Martin Trigaux 0576b7af19 [FIX] account: translate refund by note de crédit 2016-09-19 17:00:16 +02:00
Nicolas Martinelli d2707fa7d7 [FIX] pad: initialize pad at creation
When a pad is created programmatically (e.g. through a project task or a
note), the pad is empty when it is first displayed. It is necessary to
edit the record and save it in order to be able to see the content.

This is because the pad is normally initialized by the JS layer, at the
first edition, thanks to a call to `pad_generate_url`. Therefore, a
programmatic pad creation won't initialize it.

opw-685826
2016-09-19 11:41:38 +02:00
Odoo Translation Bot 6a1ecef775 [I18N] Update translation terms from Transifex 2016-09-18 03:05:57 +02:00
Odoo Translation Bot 9413bafdd3 [I18N] Update translation terms from Transifex 2016-09-18 00:34:39 +02:00
Aaron Bohy 59710faa0a [FIX] board: correctly pass options arg to do_action
The dashboard instantiates an action manager for each view it has to display.
It then replaces the do_action() function of those action managers by its own
one, forgetting to pass the second argument 'options'. Thus, when do_action was
called by a view of the dashboard (e.g. a button in a list view), it was called
without the options.
2016-09-16 12:05:38 +02:00