Commit Graph
100841 Commits
Author SHA1 Message Date
Denis Ledoux c63be58eca [MERGE] forward port of branch saas-6 up to 8a098df 2016-02-23 15:33:08 +01:00
Denis Ledoux 8a098df7e6 [FIX] account_asset: can't adapt browse record to id
During the conversion of the module
`account_asset` to the new API,
in revision 6120bab,
the variables `current_currency` & `company_currency`
have been changed from identifier integers to
browse records.

The currency passed in the `create` method
values must therefore be adapted according
to this change.

This prevented the correct use
of the assets when the currency of the assets
was not the same as the currency of the company.

opw-669571
2016-02-23 15:19:48 +01:00
Denis Ledoux 7c7ee5d0ec [FIX] account_asset: currency conversion inverted
During the conversion of the module
`account_asset` to the new API,
the currency conversion in `create_move` has been inverted.

```
amount = currency_obj.compute(cr, uid, current_currency, company_currency, line.amount, context=context)
```
has been converted to
```
amount = company_currency.compute(line.amount, current_currency)
```
while it should have been converted to
```
amount = current_currency.compute(line.amount, company_currency)
```
See:
https://github.com/odoo/odoo/commit/6120bab#diff-e35933343c229da0afceb2a3b9e3639bR356

opw-669568
2016-02-23 15:11:07 +01:00
Denis Ledoux 0cb3ed4e8f [FIX] product: add index on pricelist items for better perf
With a high number of pricelist items
(8.000.000 in the observed case),
the SQL request performed in `_price_rule_get_multi`
took a significant time (>3000ms)
to be executed without an index on the `pricelist_id`.

opw-670153
2016-02-23 14:46:41 +01:00
qsm-odoo 380a1fd544 [FIX] web: Dialog closing
The Dialog class destroys the modal (and so removes it from the DOM)
when the dialog closes but leaves the modal-open class on the body
element if there are still other modal(s) in the DOM.

The problem is that (maily on the frontend side) there may be others
modal(s) in the DOM (not handled by the Dialog class) but which are
not shown to the user, and in that case the modal-open class should
be removed.
2016-02-23 13:34:55 +01:00
Denis Ledoux e7770ed9c7 [FIX] payment: Translatable thanks message
If the help message is translatable,
there is no reason why the thanks message
coudln't be as well.

This is a following of the revision
f37a40c4c0

opw-670228
2016-02-23 12:24:34 +01:00
Denis Ledoux 2fe11b8a2a [FIX] account: bank statement currency
If there is no currency set on the journal,
the fallback currency must be the currency
of the journal company, not the currency
of the user company.

This would mean that when you change of company,
with another currency set,
the bank statement change of currency, this is non-sense.

opw-670187
2016-02-23 12:05:10 +01:00
Iryna Kanivets c43889b5b9 [FIX] base: wrong currencies
The currency of Georgia is GEL not EUR
The currency of French Guyanais EUR not GEL
The currency of Ukraine is UAH, not UAG

Closes #10106
2016-02-23 10:53:08 +01:00
Iryna Kanivets 06c4bb77b7 [CLA] signature for Luckygirlllll
Closes #10106
2016-02-23 10:53:08 +01:00
Goffin Simon 8de70d07ba [FIX] product_visible_discount: Show Discount not working with multi-currencies pricelist
The sale price set on the product is in the currency of the company.

opw:669918
2016-02-23 10:11:57 +01:00
Goffin Simon 0f7e6f4097 [FIX] account: Missing Partner in account move line
When creating account move lines from an account move, the partner
set on the account move lines has to be the same than the one on the
account move.

opw:668322
2016-02-23 09:52:10 +01:00
Christophe Simonis 01f2046e23 [FIX] product: product price assumed currency
When a product has no company set, it assumed it use the main company
currency. Read the main company currency as SUPERUSER as current user
may not have access to it.

Followup of 3622c0d12a.
2016-02-22 16:45:33 +01:00
Olivier Dony f09edcddf9 [FIX] assets: empty compiled assets handling
tl;dr: accept both `None` and empty ('') results as
       cache hits, then double-check that the file_size
       is really 0

A. Valid empty files

When a LESS file compiles to an empty result
(e.g. `variables.less`), do not treat the empty file
as a cache miss. Those are valid because file_size == 0.
Note: empty files are not stored in the attachment
filestore and return a null (None) `datas` when read
from the database.

B. Invalid empty files

Under some circumstances (e.g. damaged filestore,
race conditions during deletion, etc.), cached
compiled assets may be deleted in the underlying
attachment filestore, while still present in the
table. The filestore implementation returns an
empty file ('') when they are later accessed.
Those can be considered **invalid**
because the expected file_size is > 0.
2016-02-22 16:38:05 +01:00
Nicolas Martinelli 30cf60a659 [FIX] l10n_be_intrastat: fix tracebacks
Surprisingly, people don't like tracebacks when they generate an
Intrastat report

opw-668827
2016-02-22 15:40:36 +01:00
Denis Ledoux a845cac599 [FIX] account: missing quote in analytic account domain
opw-670120
2016-02-22 15:09:43 +01:00
Odoo Translation Bot c127ee26ac [I18N] Update translation terms from Transifex 2016-02-22 15:01:40 +01:00
Martin Trigaux 03d5fa4b6e [I18N] account_extra_reports: translate the module 2016-02-22 14:14:40 +01:00
Nicolas Martinelli 1bf9e904c6 [FIX] stock: note field not displayed in picking
In the 'Initial Demand' tab, the `note` field is only displayed when the
picking is not in state 'draft', 'confirmed' or 'waiting'.

opw-669889
2016-02-22 11:35:27 +01:00
Odoo Translation Bot f83c28eb72 [I18N] Update translation terms from Transifex 2016-02-22 11:06:52 +01:00
Goffin Simon 2a5be430ec [FIX] sales_team: member_ids with option not_delete
When a member is unlink from a sales team, the user
doesn't have to be deleted from "res.users".

opw:668776
2016-02-22 09:43:01 +01:00
Christophe Matthieu bf26f0f498 [IMP] web: add an option to avoid deleting a o2m records
issue opw-668776
2016-02-22 09:43:00 +01:00
Martin Trigaux 8dd48ae329 [FIX] sale: duplicated term in .pot
Could not be processed by Transifex
2016-02-22 08:36:50 +01:00
Martin Trigaux 25c45a61bf [FIX] base: creation of delivery or invoice partner
The image that is set based on the type should not be colorized as it has no
transparency (image_colorize method would fail).
The _get_default_image is called explicitely to pass False to colorize attribute.

A proper refactoring of the method _get_default_image has been done at 66d4de7
but for 9.0 versions, makes this minimal hack without changing signature method.

Fixes #11027
2016-02-19 17:46:03 +01:00
Olivier Dony 35c42e15c0 [FIX] project_issue_sheet: typo in domain
For some reason the system insists on syntactically correct domains...

See f6d6762dc7
2016-02-19 17:38:49 +01:00
Olivier Dony f904d3bd24 [FIX] hr_timesheet: reset action domain/context to prevent migration errors
The former `domain` and `context` values were dropped at revision
e021a08b30, as they referred to fields
that do not exist in Odoo 9.0.

Resetting them to empty values is required in order to force
the new value for upgraded databases.
2016-02-19 17:32:03 +01:00
Denis Ledoux 2d5e1d3af9 [FIX] purchase: purchase stat button list domain
From revision cb01be2,
the purchase stat button is only on product template form,
and no longer on the product variant form.

The domain of the list that this purchase button
opens has not been adapted according to this change,
the domain was still applied as coming from a product
variant form rather than a product template form.

As a result, it opened the purchases of products variants
having as ID the product template ID from which you came
from before hitting this button.

opw-669618
2016-02-19 17:27:25 +01:00
qdp-odoo 3137ea1302 [FIX] account, aged partner balance: the period length was actually computing on (period_length+1) 2016-02-19 17:14:54 +01:00
rmu-odoo d88723ae9c [IMP] l10n_cl: Added pre and post migration files 2016-02-19 16:43:39 +01:00
rmu-odoo 1af74bdbfd [IMP] l10n_cl: Create new tags and assign to taxs for one grid in tax report 2016-02-19 16:43:33 +01:00
Nicolas Martinelli f16c5aacf1 [FIX] web_tip, *: translate description
The description of the web tips should be translatable field.

opw-668945
2016-02-19 15:16:24 +01:00
rmu-odoo 18ddbbae1d [IMP] l10n_bo: Added post migration file 2016-02-19 15:03:09 +01:00
rmu-odoo 2274d50d8a [IMP] l10n_bo: created new tag and assing in tax 2016-02-19 15:03:00 +01:00
rmu-odoo e9078aeeb2 [IMP] l10n_at: Added pre and post migration files 2016-02-19 13:51:19 +01:00
rmu-odoo 48fb5d3609 [IMP] l10n_at: Created new tag and assign into taxes 2016-02-19 13:51:03 +01:00
Denis Ledoux 020ae64f16 [FIX] website_portal: currency rounding for "My Orders"
t-field handles better the currency rounding than t-esc.

When setting the currency rounding to 0.05 instead
of 0.01 (e.g. Switzerland), for 600.00:
 - t-esc returns 600.0
 - t-field returns 600.00, as expected.

opw-669945
2016-02-19 13:49:27 +01:00
Martin Trigaux c51c3254b8 [FIX] models: escape colomn name in read_group
In PostgreSQL, if not double-quoted, the columns are considered as lower case.
http://www.postgresql.org/docs/9.4/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS

Courtesy of Philippe Halbardier, SimplyCIT
2016-02-19 12:13:30 +01:00
cpyou 20b5b8636b [CLA] signature for cpyou
Closes #10494
2016-02-19 12:07:08 +01:00
Massimo Bianchi 7d46ce5fdf [CLA] signature for iceseyes
Closes #10603
2016-02-19 12:06:03 +01:00
root 6634ed0188 [CLA] signature for tstonis
Closes #10487
2016-02-19 12:06:01 +01:00
Goffin Simon 1928ca95c2 [FIX] website_event_sale: registration form without possibilities
When there is no possibilities(no event_ticket_ids) the registration form
doesn't have to be displayed.

opw:668603
2016-02-19 10:17:07 +01:00
Joren Van Onder 406255ac6b [FIX] point_of_sale: export all missing classes from js modules
In the interest of being flexible and customizeable all of the defined
classes in the POS should be exported so people can easily inherit them
and change their behavior. A lot of the time you can get to them even if
they're not exported if you get creative enough, but noone should have
to resort to such ugly methods.

This commit does this for all of the modules except for
point_of_sale.popups. It has been omitted because currently it exports a
single object (PopupWidget). Modifying this to export an object of
objects could potentially break other unofficial modules which we do not
want in a stable release.
2016-02-19 10:04:57 +01:00
Martin Trigaux e701e566f8 [ADD] Github template files for issues and PR 2016-02-19 09:44:32 +01:00
Christophe Simonis ed507e01f1 [FIX] website_sale: Display comments & suggested product toghether.
By shadowing the `product` variable, the suggested products option had
the side effect of showing the comments of the last suggested product
instead of the current product ones.
2016-02-18 16:58:30 +01:00
Joren Van Onder 6d1b2e1a7e [FIX] point_of_sale: load fiscal positions of orders from localStorage
The fiscal position on an order was correctly saved to localStorage but
they where never loaded from localStorage.
2016-02-18 16:12:24 +01:00
Christophe Simonis a6a46b4371 [FIX] mail: ensure we have at least one partner before reading its name 2016-02-18 15:53:23 +01:00
rmu-odoo 50b20e2c7e [IMP] l10n_ar: Added new migration file for tag 2016-02-18 14:55:25 +01:00
rmu-odoo 6a66f9f011 [IMP] l10n_ar: create tag and update old tag for one tag per grid in the tax reports 2016-02-18 14:54:00 +01:00
Denis Ledoux 22830251c7 [FIX] website_sale: avoid to set no shipping address
This is related to the revision e673ee6c62.

The checkout shipping address must be written on the
sale order only if there is one.
2016-02-18 14:42:43 +01:00
Denis Ledoux a04fce47e9 [FIX] account: methods calling reverse_moves expects a list
The methods calling `reverse_moves` expects a list
as returned result.
For instance, in `account_move.py`, `account.partial.reconcile`,
method unlink:
```
reversed_moves = exchange_rate_entries.reverse_moves()
for rev_move in self.env['account.move'].browse(reversed_moves):
```

If there was no reversed moves, the method returned a boolean,
and a list otherwise. It should always return a list, empty
in the above first case.

opw-669790
2016-02-18 13:44:54 +01:00
Nicolas Martinelli 1ed7d16cfa [FIX] point_of_sale: hide debug manager and chatter
When printing a receipt in the PoS, the debug manager and the Livechat
content are displayed in the receipt. That's obviously something we
don't want.

opw-668675
2016-02-18 13:24:06 +01:00