Commit Graph
102144 Commits
Author SHA1 Message Date
JoshuaJan ecf9613ee5 [FIX] calendar: fix get_range_domain to match all events.
In case of event not all day, the timezone has an impact.
So if we search for date >= 2016-01-31 (00:00:00) and that the current timezone
 is +5, we should search for date >= 2016-01-30 19:00:00.

date_to_str will drop the time.

This commit closes #12878
This commit closes #12971
2016-08-01 23:49:09 +11:00
Nicolas Martinelli 35cd054cc8 [FIX] point_of_sale: total revenue in report
In some cases, the "Sales total(Revenue)" of the report is different
from the sum of the payments. To reproduce:
- create a product with a sale price of 1.00
- sell 3 times a quantity of 0.333 of this product
- the "Sales total(Revenue)" will be equal to 1.00, while the total of
  payments is 0.99.

This is because in the report, we first sum all order lines, then we
perform a global rounding.

The solution is to use the total amount calculated for each order, which
is rounded at the appropriate time.

opw-682782
2016-08-01 13:15:30 +02:00
Mohammed Shekha dcd03d778e [FIX] website: repair customize menu for groups restricted views
The id of the user to browse has been omitted
during the below forward port revision:
95a2f8b121

We can see in the original revision that it was
correctly there:
cbb51610ee

This had as wrong side-effect to not display
views with a group set in the customize menu,
as it checked the groups of a null user browse
recordset.

opw-684326
Closes #12895
2016-08-01 11:23:52 +02:00
Yajo 4b4bc68815 [FIX] web_editor: broken JS/jQuery helper
A jQuery element is not callable.
2016-08-01 10:02:45 +02:00
Odoo Translation Bot b7eb3c6bd0 [I18N] Update translation terms from Transifex 2016-07-31 00:38:56 +02:00
Jeremy Kersten 1b55b10eab [FIX] website_crm: update category
When you come from front end -> install apps,
the applications are filtered on category = website.
This module should be in this list.
2016-07-29 17:29:25 +02:00
Jeremy Kersten f19d620ebe [FIX] website_forum: don't allow to post an empty question
Instead to post the empty question, now we redirect the end user to the question page with a warning.

This commit closes #12962
2016-07-29 17:29:25 +02:00
Christophe Simonis 6d43f280c9 [FIX] stock: do not quote static domain 2016-07-29 12:47:08 +02:00
Christophe Simonis e0c0a5fb1b [MERGE] forward port branch saas-6 up to 50e1486 2016-07-29 11:56:15 +02:00
Christophe Simonis 50e148648d [MERGE] forward port branch 8.0 up to 9fe930e 2016-07-29 11:45:47 +02:00
Erwin van der Ploeg 9b64a2f869 [IMP] l10n_nl: correct module description
Remove outdated information
Closes #12274
2016-07-29 11:22:39 +02:00
aetna-softwares 9fe930e6ba [FIX] survey: prevent saving issues of answers to multiple_choice questions, when id starts with id of other questions
Fixes #11873 #12215
2016-07-29 11:13:08 +02:00
mva ec5410581e [FIX] doc: change memory hard and soft
The hardware limit should be higher than the soft, otherwise it is killed before
reaching the limit.

Closes #12957
2016-07-29 10:43:20 +02:00
Martin Trigaux b146335484 [FIX] doc: correct typo in deployment page 2016-07-29 10:11:59 +02:00
Nicolas Martinelli 37ae7a7334 [FIX] account: account filter
Searching on the name of an account can lead to a traceback ("This
domain is syntactically not correct"). This is for example the case in
Accounting -> Configuration -> Taxes -> Custom filter on "Tax account
doesn't contain 'xxx'".

The reason is that the negation of the domain is not correct.

opw-684525
2016-07-28 17:58:00 +02:00
Olivier Dony c372708b01 [FIX] website_google_map: do not allow invalid partner prefix
The only supported prefixes are the following:
 - /partners/ when website_partner and/or website_crm_partner_assign are installed
 - /customers/ when website_customer is installed
2016-07-28 17:27:54 +02:00
Nicolas Martinelli de2d7d9acd [FIX] sale_stock: incorrect value in error message
The error message has an hardcoded precision of 2 digits, which is not
enough of the product precision is higher than 2. Since this error
message is often used, we should avoid its modification to prevent
breaking the translations.

opw-683639
Fixes #12629
2016-07-28 15:10:59 +02:00
Goffin Simon 8bc590a7b9 [FIX] stock: default domain on a many2many field
The default domain on a many2many field must be list and not a string.

opw:684474
2016-07-28 14:46:28 +02:00
Nicolas Martinelli f57f55966d [FIX] sale_stock: UoM in warning
The warning message of the product packaging change does not take into
account the appropriate UoM.

opw-12827
Fixes #12827
2016-07-28 13:36:30 +02:00
Christophe Simonis 4af005456f [FIX] payment_paypal: adapt test following commit dbf44a9680
Note: the same test exits in 8.0, but is not executed (package not imported)
2016-07-28 13:01:57 +02:00
Christophe Simonis d35f4250cc [MERGE] forward port branch saas-6 up to 7079a0b 2016-07-28 12:22:03 +02:00
Goffin Simon 6a711060ae [FIX] account: fiscal position in compute_refund
When choosing to refund an invoice with refund method="create refund, reconcile and create a new draft invoice"
, the fiscal position of the refund invoice must be kept in the new draft invoice.

opw:683311
2016-07-28 11:59:11 +02:00
David Monjoie 2cfa7b5626 [FIX] l10n_fr_fec: exclude initial balance at 0
This is the proper fix for 3180aec56a
and is the continuation of f7e4241a91.

A sum without groupby will return NULL so we forced it back to 0,00.
Then, it can happen that you have no move before the start date, so you
don't have any opening "OUV" row.

opw-682365
2016-07-27 19:41:50 +02:00
Christophe Simonis 7079a0be30 [MERGE] forward port branch 8.0 up to 8ceb943 2016-07-27 18:13:51 +02:00
Guewen Baconnier 6cc7c03212 [FIX] tools: use without_demo specified in configuration file
When using the -i command line option without the --without-demo=all command
line option, demo data was installed even if the configuration file has
a line without_demo = all

This change is safe as just above, opt.without_demo is copied into
self.options['without_demo'] so we are sure to consider the 2 options.

Closes #12730
Fixes #9293
2016-07-27 17:39:09 +02:00
Gourav Chawla 8ceb9438d1 [CLA] signature for user gouravchawla
Closes #12738
2016-07-27 17:26:38 +02:00
Cedric Snauwaert 0da7184b67 [FIX] account: fix dependencies for amount_residual computation
when we unreconcile an entry, amount_residual is not recompute due to missing dependencies. Resulting in problem when trying to reconcile the move later on as amount_residual is zero and aml is considered already reconciled
2016-07-27 15:07:29 +02:00
David Monjoie 3180aec56a [FIX] l10n_fr_frc: fix null values in fec
The previous fix didn't take into account the fact that some parts
of the file can truly be empty. Because of this, you end up with
'0,00' in some date fields.
2016-07-27 14:44:24 +02:00
Martin Trigaux 5f97e9faad [FIX] account: avoid inconsistent menu translation
The menu `account.menu_finance` is named "Invoicing" in account and renamed
"Accounting" in account_accountant.
The renaming introduce 2 translations that are both in account.pot (as the
translation of an object is based on the module that created it, deduced from
the external id, here account).
When installing account module, two translations for the same item are loaded.

Remove one of the translation (keeping "Accounting" as it is probably what most
people using accounting will have) to avoid uncertainty from a duplicated
translation.

A correct fix would be to avoid renaming the module (will be done in master).

opw-683314
2016-07-27 09:36:30 +02:00
Martin Trigaux cc18c8d0c8 [FIX] doc: correct typo 2016-07-26 20:36:31 +02:00
Martin Trigaux f9a1308e8a [FIX] doc: correct megabyte abreviation
Mo is French.
Courtesy of Erwin van der Ploeg.
2016-07-26 20:34:33 +02:00
Nicolas Martinelli 6742d1fafe [FIX] account: wrong initial balance in GL
When the General Ledger is printed, the initial balance is zero if the
filtering is done by period.

It appears that in this case, the method `_query_get` selects all the
periods before the selected period range thanks to:
`build_ctx_periods(cr, uid, first_period, context['period_from'])`
On the other hand, `_query_get` builds the query as:
`date_start <= %(date_start)s AND id NOT IN %(period_ids)s`

That doesn't make sense since we first choose the periods before the
selected period range, then we exclude them. What the method
`_query_get` is doing seems wrong, but since this method is used in many
reports, it is safer to only fix the GL report directly.

Another solution could be
https://gist.github.com/nim-odoo/453176d9ae820615e69f9a809a3780cc

opw-681601
2016-07-26 18:12:14 +02:00
David Monjoie 92c716229a [FIX] l10n_fr_fec: fix null values in aml balance
The aml.balance in the sql request is null, so the string encoding
fails with an error. This is a quick fix because the customer needs
this report for tomorrow, but a proper fix is required !
2016-07-26 17:57:21 +02:00
Thomas Binsfeld a3fe9eb440 [FIX] account: allow to override abstract widgets
Improve possibility of inheritance.
Return abstract widgets in order to override these.

It closes #12870
2016-07-26 16:17:51 +02:00
Jeremy Kersten 49d789cf99 [FIX] base: widget duration - allow to round to avoid seconds
Allow to round the duration to a minimal unit.

Eg:
   0.33 hour = 19.8 min = "19 minutes 48 seconds"
   if option {'widget'='duration', 'unit'='hour', 'round'='minute'}
   0.33 hour => 20 min = "20 minutes"
2016-07-26 16:17:50 +02:00
Goffin Simon a7b68c288b [FIX] delivery: Many fields still available for editing after delivery is done
carrier_id, carrier_tracking_ref and number_of_packages must be in readonly if
the stock.picking is in done state.

opw:683810
2016-07-26 16:08:03 +02:00
Goffin Simon dbf44a9680 [FIX] payment_paypal: country and state code required for paypal
As explained in:

-https://developer.paypal.com/docs/classic/api/country_codes/
-https://developer.paypal.com/docs/classic/api/state_codes/

The country and state code is required to create a paypal transaction.

But in some cases, the complete name of the state/province is required.
For example, for India, sometimes the complete name of the state is required.
Check the list of those state/province in the documentation.

Hint: form_preprocess_values

opw:682872
2016-07-26 15:59:55 +02:00
Nicolas Seinlet 66ad091491 [IMP] doc: add configuration samples
To give concrete example of NGINX configuration and HTTPS setup.
Closes #12912
2016-07-26 15:28:50 +02:00
Martin Trigaux 245e38d242 [FIX] doc: remove statusbar_color reference
This attribute has been removed from the web framework since b4c28050
and should not keep example of code with it.
Related to #5987
2016-07-26 14:54:25 +02:00
Jeremy Kersten 077dde3a69 [FIX] calendar: don't duplicate all the calendar_contact
Before this patch, add_filter was called 2 times.
Once when we select a partner in the drop down, we trigger a onchange value
to change from false to the partner id.
Once to reset to false the value after the first add_filter()

This commit closes #9758
2016-07-26 13:35:11 +02:00
Goffin Simon 7e1b0792da [FIX] portal: creating a user portal for a partner
Steps to reproduce the bug:

-Create two companies A and B where A is the parent of B
-Admin is in A
-Demo is in B
-Create a partner P with Demo
-Create a user portal for P with Demo

Bug: Access error due to the fact that the user portal created for
P was created in SUPER_USER with company_ids and company_id set with
the same inforamtions as with Admin.

Fix: company_ids and company_id must be set with the company of Partner P

opw:682930
2016-07-26 13:26:59 +02:00
Jeremy Kersten e1c55b2d2d [FIX] calendar: avoid local variable referenced before assignment
When the get_one_event_synchro crash, the status variable is not initialize.
So the return status, content, ...  raise an error:
    "local variable 'status' referenced before assignment"

This commit closes the issue #11513
2016-07-26 11:00:51 +02:00
Jeremy Kersten 78f00700e3 [FIX] product: keep precision in historized cost field.
Now we use the same decimal precision for cost in table 'Historization cost'
and 'product'.

It is one fix, but that will not fix the case where decimal precision has been
updated between 2 historizations.

This commit closes #12861
2016-07-26 10:07:20 +02:00
Martin Trigaux 64c80ddb4a [FIX] product: add missing argument in read
The list of fields was not present, making the call to fail.

Closes #11716
2016-07-25 17:01:03 +02:00
Stefan Rijnhart 4712fddd88 [FIX] account: never allow modification of posted entries
Posted moves are not protected from modification if the journal is set
to 'autopost'.

If an account move is posted in a journal with 'Autopost' set, it is
possible to modify the associated move lines without any restriction.
This can for example lead to the creation of unbalanced moves.

The original issue fixed by this extra condition
(https://bugs.launchpad.net/openobject-addons/+bug/615268) does not
occur if the commit is reverted.

This reverts 4e95e4223

Closes #12014
opw-683165
2016-07-25 15:50:47 +02:00
Ben17000 d94183ff97 [FIX] delivery: assign the result correctly
as inside a for loop
Closes #12503
2016-07-25 15:50:43 +02:00
Jeremy Kersten 3418b9f8aa [FIX] calendar: avoid infinite recurrent event
Old check was always ignored since 0 is False.

This commit closes #12715

Other fix; when we detach an event, we reset the rrule_type to avoid to have a
warning popup (about empty final_date) if the old one value was end_date.
2016-07-25 15:48:25 +02:00
Nicolas Lempereur 41ba673524 [FIX] account: popover payment information unclickable
In the account invoice the payments are shown and a popover with more
information is displayed when clicking on an (i) icon.

In this popover two buttons are available, but the used type of popover
disappear immediately when clicking on them, thus the buttons were
directly removed and would not work.

This commit add a delay when hiding the popover so the buttons
functionnality is not lost.

opw-680095
2016-07-25 15:00:27 +02:00
Christophe Simonis 1089dcf15c [MERGE] forward port branch saas-6 up to 7df4ea5 2016-07-25 14:33:15 +02:00
Martin Trigaux 880df4e8b6 [IMP] doc: clarify web client terminology
To avoid confusion such as in #12884
2016-07-25 14:30:20 +02:00