Commit Graph
117156 Commits
Author SHA1 Message Date
jpr-odoo fb7e1ed238 [FIX] payment: correctly display additional payment icons when clicking on "and more" in payment form
Instead of being redirected to the top of the page. Which is probably not
good uzabilitiouaïze.
2017-11-14 17:00:42 +01:00
Thibault Delavallée 4d5d228b15 [FIX] sale_payment: effectively pay and reconcile invoices when journal is configured
Indentation issue leads to pay and reconcile mechanism being called
only when no journal was set, which is not the real use case.
2017-11-14 17:00:42 +01:00
Thibault Delavallée b34ce85228 [FIX] sale_payment: do not try to reconcile invoice if no journal or default journal found
Do like in account_payment/models/payment.py
2017-11-14 17:00:42 +01:00
Thibault Delavallée 03068f7ec8 [IMP] sale_payment: avoid defining out-of-the-blue context keys when odoo behavior is sufficient
As what has been implemented is basically a default, let us use the default
mechanism of odoo.
2017-11-14 17:00:42 +01:00
Goffin Simon 7f989b94b0 [FIX] product: Impossible to get the right pricelist in multi company
The logic was not the same in function _compute_product_pricelist and in function
_inverse_product_pricelist.

The function _get_partner_pricelist must check the default pricelist for the company when
no pricelist is given for the specific partner(res_id) because the function set_multi doesn't
set a specific pricelist to the partner if the pricelist set and the default one are the same.

opw:779808
2017-11-14 16:59:13 +01:00
Laura Piraux d1c705a990 [FIX] stock: display lot_id instead of lot_name
The lot_name is only used on receipts.
2017-11-14 16:44:14 +01:00
Yenthe V.G f4d08ade92 [FIX] doc: remove reference to old vs new API
There is only one API, long live Odoo's API!

Closes #20928
2017-11-14 16:27:33 +01:00
Nicolas Martinelli 1662088ed6 [FIX] mrp: product name
Complement of commit ea96aa1676 to raw materials.

opw-781039
2017-11-14 15:55:28 +01:00
Wolfgang Taferner 0dcf139aa7 [FIX] website_sale: missing sudo for website public + portal user
Portal user and public user do not have access on account.tax

Was already fixed at  #19153 but lost in forward port

Closes #20802
2017-11-14 15:46:10 +01:00
Nicolas Martinelli dde554726b [FIX] fetchmail: P3 compatibility
Fixes #20857
opw-782318
2017-11-14 15:41:17 +01:00
Nicolas Martinelli b152c5be4f [FIX] im_livechat: Creation date (hour)
Go to Report -> Operator Analysis -> Apply group_by 'Creation date
(hour)' => traceback.

`start_date_hour` is implemented for Livechat Support Report on
Channels, but not on Operators.

opw-782255
2017-11-14 15:36:58 +01:00
Naglis Jonaitis b52244e15b [FIX] web: removes duplicate id attribute inside DB manager template
Closes #20855
2017-11-14 15:25:15 +01:00
rde a9e3116cf2 [IMP] website_form: add state code to the created lead
Before this commit, when you had a lead coming from your website form, you
had no informations from where it was located.
It was especially painful for USA which should add customer their location to
know their timezone and know at which time they could call him.

Now, the state code is added to the created lead. It is easy to figure what
timezone the user is on without contacting him first to ask.

This closes #20424
task-29784
2017-11-14 15:10:45 +01:00
Jonathan Nemry (METRUM) 97eb4a36b0 [CLA] METRUM signature of Corporate CLA 1.0
Done at #20926
2017-11-14 15:03:27 +01:00
Nicolas Martinelli 73f0c6da6d [FIX] l10n_fr_fec: Receivable/Payable
In the FEC report, opening entries on receivable and payable accounts
should be split by partner.

opw-781321
2017-11-14 14:24:53 +01:00
fwi-odoo 466ca1e07e [FIX] web: handle SessionExpiredException in the crash_manager 2017-11-14 12:14:57 +01:00
Christophe Simonis 0d0dd0c866 [MERGE] forward port branch 10.0 up to a8b72d764e 2017-11-14 11:27:04 +01:00
Christophe Simonis a8b72d764e [MERGE] forward port branch 9.0 up to d07f9c5ef5 2017-11-14 11:26:02 +01:00
mehdi-ghezal d07f9c5ef5 [CLA] signature for mehdi-ghezal
Backported to 9.0 cf comment
Closes #20850
2017-11-14 10:56:00 +01:00
Wolfgang Taferner 66a82fd4e4 [FIX] stock: drop useless access rights "reduction" for manager
As a stock manager has anyway implied access rights from the user who
has all rights for stock.production.lot
2017-11-13 17:34:21 +01:00
Arnold Moyaux 6b7ac1c5d7 [FIX] stock: wrong default date with inventory at date
When choosing inventory at specific date the default value
is the start time of the server instead of the current time.

When using fields.Datetime.now as default value, will set the function
as default and future object will need to evaluate the funcion each time an
object without default is created. fields.Datetime.now() will evaluate the
function once at the server start and use the retun value as default value
for future objects.
2017-11-13 17:33:17 +01:00
Arnold Moyaux 8900dc2204 [FIX] stock: backorder uom issue
Use case to reproduce:
- Sell 1.1 unit
- Validate the picking with 1 unit
- With or without backorder the initial demand is 0.999
- The backorder initial demand is 0.101

It happens because _compute_quantites uses 'UP' by
default. Since 1.1 - 1.0 equals 0.10000000000000009
we face the problem.

This commit uses an 'HALF-UP' instead. It should not generate
any problem since float_compare in order to decide if we need
a back order or not use a float_round on the same precision_digits
2017-11-13 17:32:22 +01:00
Simon Lejeune 186ae1c288 [FIX] stock: update qty on hand in multi company
A similar issue and a similar fix as rev 8955d15e9d

Fixes #20889
2017-11-13 16:58:47 +01:00
Manuel Vázquez Acosta d6c2906d44 [FIX] mail: access the super of TestMailGroup
Instead of the parent of TestMail class

Closes #20728
2017-11-13 16:41:03 +01:00
Victor Oliveira da Silva 13d2b29f01 [FIX] doc: fix typo
Closes #20726
2017-11-13 16:36:48 +01:00
Grzegorz Krukar e419f395a1 [FIX] requirements: update psycopg2 version
2.7.1 is broken with glibc 2.66
upgrading to latest working version: 2.7.3
cf psycopg/psycopg2-wheels#2

Add CLA

Fixes #19511
Closes #19512
2017-11-13 16:11:22 +01:00
Pierre Masereel 9afa83bb6a [FIX] sale: unable to install module sale
When you have another module installed before sale, and ever changed
some settings, a record of res_config_settings exists and when you
install sale, it cannot set a value for the required new column
'sale_show_tax' for existing records.

To fix this, we have set back the default values on the required field
'sale_show_tax' that has been removed in commit: https://github.com/odoo/odoo/commit/71e5c8b0b5bb10f571030a25875e33b25cda073d
2017-11-13 15:52:39 +01:00
Aaron Bohy 6d616c566f [FIX] web: search view: autocomplete on datetime fields
... gives wrong values due to the timezone.

For instance, let's assume that the browser timezone of the user
is UTC+2, and the user types 10/09/2017 10:00:00 in a searchview
with a datetime field in its arch (i.e. which autocompletes on a
datatime field). Before this rev., the suggested value was
10/09/2017 12:00:00, i.e. the timezone offset was added to the
value.

opw 779832
2017-11-13 15:12:18 +01:00
Christophe Simonis 0e1ac93e2d [MERGE] forward port branch saas-14 up to abfd662109 2017-11-13 15:03:56 +01:00
Christophe Simonis abfd662109 [MERGE] forward port branch 10.0 up to 9822c42707 2017-11-13 14:45:51 +01:00
Aaron Bohy 9bea735145 [FIX] web: search view: autocomplete on datetime fields
... gives wrong values due to the timezone.

For instance, let's assume that the browser timezone of the user
is UTC+2, and the user types 10/09/2017 10:00:00 in a searchview
with a datetime field in its arch (i.e. which autocompletes on a
datatime field). Before this rev., the suggested value was
10/09/2017 08:00:00, i.e. the timezone offset was substracted from
the value.
2017-11-13 14:07:40 +01:00
Nicolas Martinelli 7606878a78 [FIX] account, auth_signup, sale, website_sale: settings robustness
- Delete the tax corresponding to the default 'Sales Tax'
- Access the Accounting settings

Error since record could not be found.

In the case of an `ir.config_parameter` referring to a record ID
(i.e. Many2one), the deletion of this record is not propagated to the
associated `ir.config_parameter`. Therefore, the system tries to access
a deleted record without fallback.

It's not really possible to solve it globally in a stable version, but
we can manually handle these cases by providing a fallback (usually
return `False`).

opw-781864
2017-11-13 13:19:53 +01:00
Jairo Llopis 9822c42707 [FIX] mass_mailing: switch to theme images at 1st theme selection
Without this patch, default images for themes are not used automatically
in themes' templates when one is chosen for the 1st time. This was not
inducing any bug in standard 10.0 but with custom-made templates, you had
to put the correct themes images in the defined template. This allows to
just `t-call` snippets instead of having to fully hardcode them in theme
templates.
2017-11-13 12:03:58 +01:00
Géry Debongnie 75b0393454 [FIX] web: remove slow css rule
We do not take CSS seriously enough, but it has an impact on rendering
speed.  The rule removed in this commit slowed down the Qunit JS test
suite by a considerable amount:

With a fresh db with no extra addon installed, community version:

- in chrome, before this commit: 103.2s, with this commit: 54.8s
- in firefox, before this commit: 194.9s, with this commit: 117.7s

This is due to the way rendering is done in web browser.  They start
checking css rules from the right, so the *:nth-last-child(2) rule was
checked for every element in the dom, each time it was added/modified.
Note that the rule just above (*:first-child) had no noticeable impact,
but I still think that the universal css selector should still be
avoided in general.

The fun part is that I did not find the place where this rule was
supposed to be applied.  I assume that it is just a dead rule.  If this
is not the case, we can reintroduce the margin-top with the class mt0,
applied on the specific element.
2017-11-13 11:59:23 +01:00
Aaron Bohy b8fb8ad3f0 [FIX] account_asset: never hide depreciation widget
Before this rev., the widget was hidden when the value of its
corresponding field (move_check) was falsy. However, it should
always be visible, regardless its value.

opw 781628
2017-11-13 11:28:48 +01:00
Aaron Bohy 995610c065 [FIX] web: JournalDashboardGraph widget crash
The JournalDashboardGraph requires nv, which is lazyloaded. Before
this rev., a crash occurred when this widget was instantiated and
destroyed before the loading of the lib was complete (because a
function of the lib was called in destroy()).

For instance, press F5 (to ensure that nv isn't already loaded),
activate some throttling in the network tab, go to Accounting and
as soon as the dashboard shows up, click on another menu.

opw 781628
2017-11-13 11:18:56 +01:00
Aaron Bohy c7c3974d61 [FIX] account_asset: never hide depreciation widget
Before this rev., the widget was hidden when the value of its
corresponding field (move_check) was falsy. However, it should
always be visible, regardless its value.

opw 781628
2017-11-13 10:56:41 +01:00
Aaron Bohy 68d4b4f1e1 [FIX] web: grouped list views: allow sorting groups
Before this rev., sorting groups in list views wasn't supported. It
hadn't been implemented in the new views.

This rev. activates the feature, so groups can now be sorted on
their aggregates again. It also implements a basic (first level
only) sorting in mockReadGroup, in the mock server.

opw 781288
2017-11-13 10:56:32 +01:00
William Henrotin f80d043af2 [FIX] sales_team: impossible to print sale report.
The sale channel report was enable to be printed because a date was
computed from float numbers instead of integer. See opw-779713 for more
details.
2017-11-13 10:30:31 +01:00
Odoo Translation Bot 48e8282130 [I18N] Update translation terms from Transifex 2017-11-12 04:24:48 +01:00
Odoo Translation Bot 293dd507fa [I18N] Update translation terms from Transifex 2017-11-12 00:50:30 +01:00
rde 3768cce748 [FIX] website_sale: coupon text is showing in empty cart
Before this commit, if you go on /shop/cart and your cart is empty, it will
show the coupon text.

Now, we will hide this if your cart is empty.

This closes #20612
2017-11-11 18:51:09 +01:00
Olivier Dony 56588e8d44 [FIX] ir_sequence: add support for PG 10
PostgreSQL 10 move sequences' metadata fields into a new `pg_sequence`
system catalog. As a result, selecting from a sequence relation now
only return three fields, and does not include the `increment_by`
metadata field anymore.

This patch obtains the `increment_by` value from the new system catalog
for PostgreSQL server versions >= 10.

Fixes #20269
2017-11-11 01:13:25 +01:00
Olivier Dony fa5ee6ed26 [FIX] ir_sequence: add support for PG 10
PostgreSQL 10 move sequences' metadata fields into a new `pg_sequence`
system catalog. As a result, selecting from a sequence relation now
only return three fields, and does not include the `increment_by`
metadata field anymore.

This patch obtains the `increment_by` value from the new system catalog
for PostgreSQL server versions >= 10.

Fixes #20269
2017-11-11 01:01:48 +01:00
Silvio Fernandez c68b41bff2 [FIX] server: avoid crash with gevent worker on windows
Some people may want to use the gevent worker on Windows, even if
multi-process mode is generally not supported on Windows.

Fixes #17726
Closes #20409
2017-11-11 00:51:36 +01:00
Olivier Dony 7a4c6eb35d [FIX] ir_sequence: add support for PG 10
PostgreSQL 10 move sequences' metadata fields into a new `pg_sequence`
system catalog. As a result, selecting from a sequence relation now
only return three fields, and does not include the `increment_by`
metadata field anymore.

This patch obtains the `increment_by` value from the new system catalog
for PostgreSQL server versions >= 10.

Fixes #20269
2017-11-11 00:51:36 +01:00
Christophe Simonis 5c304a6e71 [MERGE] forward port branch 10.0 up to ae2cbc7a01 2017-11-10 16:56:07 +01:00
Martin Trigaux 07fa8d9b97 [FIX] fleet: model description
It actually represent the brands, not the model of a car

Courtesy of the translator teams
2017-11-10 16:51:19 +01:00
Romain Derie dbce2491fe [FIX] website: Incorrect 'Go to page' link in page properties dialog
Before this commit, clicking on 'Go to page' in a page properties dialog would
redirect user to an incorrect link (relative vs absolute) because the link
would not have a leading slash. (We removed it earlier to hide it in the input)

Now, the link is correct
2017-11-10 16:39:01 +01:00
Christophe Simonis ae2cbc7a01 [MERGE] forward port branch 9.0 up to ce818f1f8f 2017-11-10 15:43:49 +01:00