Commit Graph
102734 Commits
Author SHA1 Message Date
Denis Ledoux 97e5da5e2a [FIX] website_links: adapt countries pie chart height
With a high number of countries,
the pie chart was partially hidden.

We adapt the svh height according to the number
of country to display.

opw-691941
2016-12-09 17:42:25 +01:00
Christophe Simonis 9c8422a405 [MERGE] forward port branch saas-6 up to 75e7f0d 2016-12-09 15:07:00 +01:00
Christophe Simonis 75e7f0da10 [MERGE] forward port branch 8.0 up to 5ece76b 2016-12-09 15:04:42 +01:00
Martin Trigaux cb7517f7e5 [CLA] merge duplicated signature file
Case mismatch
2016-12-09 14:43:06 +01:00
Cristian Moncho 5ece76b717 [FIX] project: remove redundant context declaration
Declaring the keyword argument `context` in an API v7 `orm.browse_record` can
lead to mixed API v7/v8 inheritance bugs (`context` will be treated as a
function parameter instead of being injected in `self.env.context`). As the
context is already propagated in line 953, we can safely remove it from line
971.

Closes #13115
2016-12-09 14:37:21 +01:00
sergiov 4792a669d3 [FIX] auth_signup: display full error message
When the user name entered hasn't an email specified the error message wasn't
displayed in the reset view.
The error message was in e.name, not e.message
2016-12-09 14:32:16 +01:00
sergiov 85dc060a06 [CLA] signature for Sergio2409
cf #13960
2016-12-09 14:28:15 +01:00
Aleš Ferlan 331f4c7e1e [FIX] l10n_si: adapt after taxes raise
Taxes in Slovenia were raised from 8.5% to 9.5% and 20% to 22%

Closes #13397
2016-12-09 12:02:31 +01:00
Aleš Ferlan 9b36f3f6ad [CLA] corporate signature for GoOpen
cf #13397
2016-12-09 12:02:31 +01:00
Christophe Simonis 154a125017 [FIX] crm: Use an address that google knows of.
Needed for geo localisation tests.
2016-12-08 13:08:33 +01:00
Christophe Simonis 1568c81269 [MERGE] forward port branch saas-6 up to da5d628 2016-12-08 12:27:18 +01:00
Christophe Simonis da5d628911 [MERGE] forward port branch 8.0 up to d16d1c6 2016-12-08 12:14:40 +01:00
baimo d16d1c6d9f [FIX] web_gantt: translate "Gantt View" term
Closes #13328
2016-12-08 10:43:28 +01:00
Yenthe V.G 63d230b007 [IMP] Remove old people from license
Closes #14647
2016-12-08 10:20:40 +01:00
Denis Ledoux f5f55b2289 [FIX] barcodes: compatibility of new Event() for IE >= 9.0
Using the constructor `new Event()` is not supported in IE >= 9.0
(tested on IE 11). It raises the below error:
`Object doesn't support this action`

This revision implements the Polyfill `CustomEvent()` suggested
by the MDN here:
https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent
and uses it if the `new Event()` call fails.

opw-690984
2016-12-07 18:13:43 +01:00
Denis Ledoux 82a07d1072 [FIX] sale: fix company_id assignment on order line creation
Due to the following revision:
456d7b38f1

The company on the order line was not assigned
when creating a new line in an existing sale order.

The company was correctly assigned when you created
the order line with the order, and when changing the company
of the order, but not when adding a new line on an existing order.

This new trigger repairs this regression.
2016-12-07 16:33:18 +01:00
Denis Ledoux 36c6edf4bc [FIX] product: fix company_id assignment on pricelist version & items creation
Due to the following revision:
295b96c0b3

The company on the version and items was not assigned
when creating a new pricelist version on an existing
pricelist.

They were if you changed the company of the pricelist,
thanks to the triggers added in the above revision,
but not when they have just been created in the pricelist.

These new triggers repairs this regression. It also handle
changing the `pricelist_id` of a version (this is doable through
the "Sales > Configuration > Pricelists > Pricelist Versions" menu).

Fixes #14631
2016-12-07 16:26:11 +01:00
Josse Colpaert 86718d98bd [FIX] stock: don't delete package when you would still use Unpack button as it can create problems on pickings, ... 2016-12-07 11:59:19 +01:00
Martin Trigaux 3642f11942 [FIX] report: catch missing wkhtml error
If wkhtmltopdf is missing, a call to a report will be catched to warn the user.
In case of a report generated indirectly (e.g. via an attachment on an email
template), the rendering would crash.

As warning the user is better than returning a traceback, raise a UserError.

Closes #14535
2016-12-07 11:58:32 +01:00
Simon Lejeune 7ccf4e60c8 [FIX] report: correctly handle broken wkhtmltopdf
It's possible that the command `wkhtmltopdf --version` returns an empty
string (in the use case, it output later in stdout "wkhtmltopdf: error
while loading shared libraries: libfontconfig.so.1: cannot open shared
object file: No such file or directory").

We chose to display the report in html in this case and also to show
a warning to the user inviting him to fix his installation.
2016-12-07 11:30:04 +01:00
qdp-odoo 7cdd90e95d [REF] account: improve inheritancy of default_get values of WizardMultiChartsAccounts class.
This will allow localization to define more easily extra bank or cash journals
2016-12-07 09:52:30 +01:00
qdp-odoo 87db2ccd75 [FIX] account: do not create the 'undistributed profits/losses' account if it is already given in the CoA 2016-12-07 09:52:08 +01:00
Goffin Simon 0f63b2cce0 [FIX] account_tax_cash_basis: function round on res.currency model
If there is no currency_id set on a account.move.line L, making
L.currency_id.round(5) will always be equal to 0.

opw:694660
2016-12-07 08:43:11 +01:00
Juan Pablo Arias 799f12c326 [ADD] base: Colombian data
- adds position before to COP currency in res_currency_data
- adds address_format to Colombia in res_country_data
- CLA signature for kurkop

Closes #10618
2016-12-06 15:55:43 +01:00
Nicolas Martinelli 9dc9a058cd [FIX] account_asset: modify asset
- Create a new assets
- Set a any gross value, any number of depreciation, and any number of
  months in period
- Set "Prorata temporis" to True!
- Save, then confirm the asset
- Post at least one of the line by clicking on the red bubble next to it
- Click on "Modify Depreciation" and choose another number of month
- Click on "modify" to confirm the modifications

The depreciation of the latest posted month is duplicated. However, the
first unposted depreciation should be the first period after the last
posted period, as it is the case for non prorata temporis assets.

opw-693081
2016-12-06 14:10:14 +01:00
Raphael Collet 4116ac2f1c [ADD] models: warning on non-stored @constrains parameter 2016-12-06 14:08:01 +01:00
Martin Trigaux 1f3f155a05 [FIX] mail: pass the missing context
session.context no longer exists, it is session.user_context

Add the missing context in the message_fetch call. The dates in the chatter were
not formatted according the user locale.
2016-12-06 11:50:36 +01:00
Martin Trigaux 91139b483a [FIX] mail: untranslated message subtypes
The tacked messages in the chatter were parially translated.
e.g. "Lead created"
The call did not gave the user context and the subtype message was not
translated.

Closes #14589
2016-12-06 11:45:08 +01:00
Paul Catinean ee2f2f2229 [FIX] website_sale_options: untranslated term
Case sensitive term wrongly exported
Introduced at 414175c
2016-12-05 17:02:20 +01:00
Yannick Vaucher 97f95de89c [FIX] website_membership: wrong list of membership line for google map
Variable `membership_line_ids` was misspelled `membership_lines_ids`
Thus the list of partner returned has extra partners not filtered by search domain

Closes #13768
2016-12-05 16:58:10 +01:00
Goffin Simon e48d4bb85f [FIX] account: tax_ids in function prepareCreatedMoveLinesForPersisting
For the field "tax_ids", a command must be written in the the returned dictionary.
In this way, the ids of the tax will be set on the account move line.

opw:689806
2016-12-05 15:57:40 +01:00
Nicola Malcontenti 734ed038a6 [FIX] website_sale: align total under the right column
Closes #14478
2016-12-05 14:05:11 +01:00
Nicola Malcontenti ffdc7a1870 [CLA] add signature for hurrinico
Closes #14477
2016-12-05 13:57:08 +01:00
Martin Trigaux e8a925810a [FIX] point_of_sale: correct remaining screen_selector calls
Deprecated in 9.0, to replace with gui.show_popup
Was crashing when displaying an error
opw-695106
2016-12-05 12:25:02 +01:00
Michael Martinides c4c60fa4d0 [FIX] doc: typo 2016-12-05 11:07:41 +01:00
Michael Martinides 96bcebb3a1 [CLA] adds ICLA for msmart
Closes #13528
2016-12-05 11:07:41 +01:00
Odoo Translation Bot efdeb6779f [I18N] Update translation terms from Transifex 2016-12-04 02:57:30 +01:00
Odoo Translation Bot 4e4d431eba [I18N] Update translation terms from Transifex 2016-12-04 00:32:08 +01:00
Jeremy Kersten 8f48baeda6 [FIX] website: fix sitemap for multi website 2016-12-02 15:31:06 +01:00
Yenthe V.G 4aed1e1747 [REF] packaging: MANIFEST.in: import xls files
closes #14558
2016-12-02 14:52:34 +01:00
Pedro M. Baeza ba5646f8b9 [FIX] stock: correct group for Warehouse Management menu
A Warehouse Manager cannot change for example locations with current
group.

Closes #14510
2016-12-02 14:31:32 +01:00
Guewen Baconnier 9c3c022ffe [FIX] base: error in QWeb when a record is empty
When using a many2one widget, in the following scenario:

<h2><span t-field="o.partner_id.parent_id.country_id"/></h2>

If 'parent_id' is an empty recordset, the following error will be
raised:
[...]
    [read] = record.read([field_name])
ValueError: need more than 0 values to unpack

This is because record.read([field_name]) returns an empty list which
cannot be unpacked.

In version 10 this problem is avoided by using recordset but to keep the diff
minmal in v9, only returns empty string as the line below does
`if not read[field_name]: return ''`

Closes #14489
2016-12-02 13:26:09 +01:00
Jonathan Nemry (ACSONE) 6e8ee5ee52 [FIX] sale_layout: right align taxes
use text-right class just as sale addons to align Taxes' <td> and its <th>

Closes #14511
opw-695340
2016-12-02 11:01:18 +01:00
Christophe Simonis 5bed95fbd5 [MERGE] forward port branch saas-6 up to 97af232 2016-12-01 14:47:17 +01:00
Christophe Simonis 97af2325cd [MERGE] forward port branch 8.0 up to 0105cbb 2016-12-01 14:39:25 +01:00
Denis Ledoux 0105cbbcf9 [FIX] website: make website default language required
The website `default_lang_id` was not required,
while the algorithm choosing the website language
expects it to be required.

This solves the below issue, when your browser language is en_US:
 - add a second language to the website (e.g. fr_BE or es_VE),
 - in the website settings, remove English from the languages
 - in the website settings, unset the default language
 - try to go on the website

You will have a crash:
```
  File "/home/odoo/src/odoo/saas-11/addons/website/models/ir_http.py", line 193, in _dispatch
    resp.set_cookie('website_lang', request.lang)
  File "/usr/lib/python2.7/dist-packages/werkzeug/wrappers.py", line 992, in set_cookie
    self.charset))
  File "/usr/lib/python2.7/dist-packages/werkzeug/http.py", line 905, in dump_cookie
    value = to_bytes(value, charset)
  File "/usr/lib/python2.7/dist-packages/werkzeug/_compat.py", line 106, in to_bytes
    raise TypeError('Expected bytes')
TypeError: Expected bytes
```

This is because the `request.lang` is set to `False`
because of the below algorithm in `ir_http.py`:
```
    nearest_lang = not func and self.get_nearest_lang(path[1])
    url_lang = nearest_lang and path[1]
    preferred_lang = ((cook_lang if cook_lang in langs else False)
                      or self.get_nearest_lang(request.lang)
                      or request.website.default_lang_code)

    is_a_bot = self.is_a_bot()

    request.lang = request.context['lang'] = nearest_lang or preferred_lang
```
`nearest_lang` is `False`, because there is no nearest language
available for the browser lang (`en_US`)
`cook_lang` is `False` for users who never went on the website
`request.website.default_lang_code`, which is the last feedback,
is also `False` because you removed the default language
in the website settings.

opw-695621
2016-12-01 11:37:03 +01:00
Goffin Simon a433ae65cb [FIX] purchase: default picking_type_id with ir.values
The deleted code put the same picking_type_id for all companies.
The function _get_picking_in returns the right default picking_type_id
according to the company.

Steps to reproduce:
-stock.warehouse0 is on company A.
-Define another company B with its own warehouse.
-Update the purchase module -> a new default value for picking_type_id on purchase
order for company B is created wtih the value of company A
-Create a purchase order on company B, Odoo tries to get the picking_type_id from company A.
If user doesn't have any rights on company A, it occurs a security warning.
Otherwise the purchase order is linked to a picking operation of another company.

opw:694059
2016-12-01 10:04:30 +01:00
Denis Ledoux 021878f9c4 [FIX] tools: formatlang currency digits
When passing a value along with a currency
to the `formatLang` method,
the currency symbol was added to the value,
but the amount wasn't rounded to the currency
decimal places, as it would be expected.

For instance, when using the currency "XOF",
with as symbol "CFA" and 0 decimal places,
2 digits after the comma were still displayed
in the accounting dashboard, while the user expects none.

This behavior to take the number of digits out of the currency
is already the behavior of the `formatLang` methdod in the reports
(`/openerp/report/report_sxw.py`)
it was just not yet the case in the misceleanous tools
(`/openerp/tools/misc.py`).

opw-695496
2016-11-30 16:46:49 +01:00
Goffin Simon c352945bf5 [FIX] account: Reversing exchange rate difference entry
To reverse all the the exchange rate difference entries created during the reconciliation.

Before the fix:

Configuration
- Company Currency USD
- Multicurrency
- Other Currency EUR with exchange rates per day.
- Bank journal in EUR with allow cancelation.

Steps
- Create more than 1 invoice for customer in EUR and validate it. (Example. 3 invoices 100 EUR each)
- Create a bank statement in EUR Bank with the payment of that invoices (Example. 300 EUR)
- Conciliate the payment with the invoices.
- The journal entries for exchange difference are correctly created(three exchange rate difference entries).
- Cancel the payment from bank statement.

Bug:
There was only one reverse journal entry created for the exchange rate difference of the all reconciliation.
But three reverse journal entries  for exchange rate difference entries were expected.

opw:694120
2016-11-30 15:57:29 +01:00
Antonio Espinosa aac0faafb8 [FIX] membership: remove date_cancel for draft invoices
In `action_cancel` method below, the date_cancel is set when the linked invoice
is canceled.
When the canceled invoiced was reset to draft, the date_cancel was not removed.
This change makes sense as the state of the membership line is changed from
`cancel` to `waiting` when the invoice is reset to draft.

Closes #14313
2016-11-30 14:33:16 +01:00