Commit Graph
108994 Commits
Author SHA1 Message Date
qsm-odoo dc679308d6 [FIX] web_editor: highlight selected fa icon on media dialog start
When editing a fa icon in the editor, the current fa icon was not
properly selected anymore.

Note: the code is still to be improved to handle all cases but this
will be done in master.
2017-11-20 10:38:45 +01:00
Odoo Translation Bot 2c7851b8ee [I18N] Update translation terms from Transifex 2017-11-19 00:43:08 +01:00
Simone Orsi 00ce67ee43 [FIX] l10n_fr_certification: allow multi write on account.journal
Closes #20594
2017-11-17 16:31:19 +01:00
Martin Trigaux 144a528616 [FIX] packaging: subsubversions do matter
Follow up of e419f395a
pyscopg 2.7.3 does not work with glibc 2.66
2.7.3.1 is the minimum one

Courtesy of Laurent Mignon, Acsone, #19512
2017-11-17 15:26:16 +01:00
eLBati d8e49d3886 [FIX] purchase: add missing multi company record rule
Apply an inter-company rule for the purchase.report

opw:779192
2017-11-15 14:54:28 +01:00
Nicolas Martinelli 0fe7989e24 [FIX] stock: warning on move
The warning should be a dictionary, not a string.

opw-781880
2017-11-15 14:08:42 +01:00
Pierre Masereel 4dc670bc81 [FIX] stock: uom field on production lot not readonly
Because the uom field on production lot is a related field of
product.prodcut, we shouldn't change the uom of a product through the
production lot formé
2017-11-15 13:58:46 +01:00
Christophe Simonis 00e309ed91 [MERGE] forward port branch 9.0 up to 5297321207 2017-11-15 13:39:31 +01:00
tbe-odoo 822078d16e [FIX] stripe: Fix crash when using language not defined
- This commit, fixes a crash triggered when the user is paying a quote while having his browser language set to a language not defined on the Odoo database.
This is due to the fact that the field 'name' on the model 'account.analytic.account' is translatable.
Stripe sends a json query to the server with the user's browser's language on the 'Accept-Language' http header field.
By doing this, Odoo add a 'lang' key to the context, which is then used to translate translatable fields.
2017-11-15 13:31:00 +01:00
Nicolas Martinelli 8a7426da75 [FIX] account: tax amount on invoice document
- Install French language
- Set language of Customer A to French
- Create an invoice for A (some tax must be applied)
- Print the invoice

The tax amount below 'Subtotal' is not formatted in French.

`t-esc` does make use of the `t-lang` option, so when the expression is
evaluated, the lang is not in the context. We do not change this
behavior since it can have a major impact.

opw-782118
2017-11-15 12:57:19 +01:00
Nicolas Martinelli a9beee42d6 [FIX] tools: lang in formatLang
- Install French language
- Set language of Customer A to French
- Create an invoice due in the past
- Open the Customer Statements

The customer statement of A is translated in French, but the amounts are
formatted in the company's user language (English by default).

We add the possiblity to take into account the lang in the context when
calling `formatLang`.
2017-11-15 12:57:19 +01:00
Romain Derie 5297321207 [FIX] website_sale: 0.00 total is showing in empty cart if logged in
Before this commit, if you go on /shop/cart and your cart is empty, it will
show the total (Subtotal, Taxes, Total) as $ 0.00.
Indeed, the code is retrieving a 'sale.order' if you are connected and you
already have a draft sale order on DB (eg: you just add something to cart and
 emptied it afterward).

  - Add product to your cart and proceed to checkout
  - On checkout cart, remove the product, your cart is now empty
  - Reload the page (you should still be on /shop/cart) or go to /shop/cart
  - You now see the zero prices (Subtotal, Taxes, Total)

Now, we will hide this if you have an order but no line on that order.

This closes #20896
2017-11-15 12:45:41 +01:00
Christophe Simonis 0a775adda8 [MERGE] forward port branch 9.0 up to b152c5be4f 2017-11-15 11:25:18 +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
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
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 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
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
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
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
Odoo Translation Bot 293dd507fa [I18N] Update translation terms from Transifex 2017-11-12 00:50:30 +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 ae2cbc7a01 [MERGE] forward port branch 9.0 up to ce818f1f8f 2017-11-10 15:43:49 +01:00
Laurent Smet ce818f1f8f [REVERT] account, point_of_sale: revert complex taxes computation
Reverts:
f85c8843c9
6c996723b2
455b5aaff8
c6a9bab074
6366150484
33d20a2241
47c0cfc6e7
6e46ba7b46
5afb5ecd04
2017-11-10 15:22:45 +01:00
Nicolas Martinelli e77fa0051c [FIX] models: blank export
Exporting One2many files gives blank export.

This reverts commit 2c61c54ffa.

opw-781399
opw-781457
2017-11-10 10:35:43 +01:00
Nicolas Martinelli a1ad6375ef [FIX] stock: reordering rules on service
1. Create a stockable product
2. Create a reordering rule
3. Ooops, change stockable into service
4. Run scheduler

Odoo created procurement for service products.

We prevent changing the product type if there are active reordering
rules. We could have silently skipped these products when running the
scheduler (in `_get_orderpoint_domain`), but that would have potentially
broke existing installations incorrectly set up.

opw-781128
2017-11-10 08:05:21 +01:00
Yenthe V.G ab1ad38485 [FIX] stock,project: make planner translatable
Titles of the sections was not present

Closes #20825
Closes #20833
2017-11-09 17:18:57 +01:00
Martin Trigaux f8540501ac [FIX] hr_expense: verify the constrain server side too
The groups were set only on the view which does not prevent abuses.
The fact that users can bypass the groups on the view is not critical as the
changes are logged but this should be improved nevertheless.

In master, proper record rules should be set.

Closes #20427
2017-11-09 15:51:14 +01:00
Goffin Simon a63ecee47a [FIX] website_sale: Wrong apply of the fiscal positions when choosing shipping address
In 11.0, this part of the code has been removed.

When choosing the shipping address in the cart, if a tax has been mapped
by a fiscal position, the subtotal was not correctly computed.

opw:778405
2017-11-09 11:44:38 +01:00
Lucas Perais (lpe) 7c486b4d0c [FIX] mail: visitor to portal_user should keep livechat channel
adapting #20279 to v10

Before this commit, when starting a livechat session as a public user and continuing as a portal user, the livechat crashed
(the poral user couldn't see the channel created before as Admin)

After this commit, the conversation is kept and security insured by the uuid in the cookie

OPW 775568

closes #20281
2017-11-09 10:44:37 +01:00
Lucas Perais (lpe) bb38c7047e [FIX] im_livechat, mail: visitor to portal_user should keep livechat channel
Before this commit, when starting a livechat session as a public user and continuing as a portal user, the conversation was lost
(the poral user couldn't see previous messages posted as a public user)

After this commit, the conversation is kept and security insured by the uuid in the cookie

OPW 775568

closes #20279
2017-11-09 10:42:36 +01:00
Christophe Simonis 9342517fcf [MERGE] forward port branch 9.0 up to 35aa2a977f 2017-11-08 17:30:45 +01:00
Raphael Collet b206d83c03 [FIX] ir_cron: refactor _acquire_job to retrieve useful information
The method `_process_jobs` provides an alternative API to process the cron
jobs, that does not catch exceptions and log them.  This makes the processing
of cron jobs easier for scripting.
2017-11-08 16:03:16 +01:00
Raphael Collet 763d714f0e [FIX] ir_cron: do not run cron jobs during module installation/upgrade 2017-11-08 15:57:33 +01:00
Jeremy Kersten 35aa2a977f [FIX] website_slide: fix traceback when slide is a google doc or youtube link
In case we are not uploading a file but add a slide based on google doc url
or youtube link, post['datas'] is not set and the code will crash.

Javascript don't check the onError, so the user never see the error and wait
 that nothing happend.
2017-11-08 13:00:07 +01:00
Odoo Translation Bot 43e5f5a67f [I18N] Update translation terms from Transifex 2017-11-08 11:08:53 +01:00
Thibault Delavallée f8c974cf6e [FIX] mail: speedup tracking values computation when reading messages 2017-11-08 10:00:47 +01:00
Jeremy Kersten 15715e822c [FIX] hr_timesheet_sheet: avoid ambigous field action in sql.
ERROR: column reference "action" is ambiguous

This commit closes #13839
2017-11-07 16:32:09 +01:00
Nicolas Martinelli 3b43ddd21b [FIX] crm: default user when copy
- Create a user A
- Create a lead, assign to A
- Deactivate user A
- Duplicate the lead

A notification email is sent to A (user assigned to the lead).

Since the user is archived, he should not receive any email since it
might contain sensitive information.

opw-778825
2017-11-07 14:47:31 +01:00
Nicolas Seinlet 6488682cd6 Backport 2d66d9a63e
[FIX] *: do not use groups when extending an asset bundle
Using groups when declaring an extension of an asset bundle leads to a
different generated asset bundle according to the user's group. This
is not something we want because a dynamic asset bundle's content
means that it could (and it does) trigger unwanted cache invalidation.

website_event, website_blog, website_forum and website_sale add
functions to . These functions are bound to
server side qweb nodes protected by groups. We can always add the
functions; if a user tries to use the routes he should receive a
traceback because of lack of access rules

website_blog adds a  module, but is guarded by
the presence of a node in the DOM. We use the same logic to guard the
module added by website_sale with the  node.

website_gengo is working as expected.
2017-11-07 10:57:06 +01:00
remi-filament 2904192ad6 [CLA] signature for remi-filament
Closes #20724
2017-11-06 16:43:19 +01:00
Nicolas Martinelli 08ab28a66c [FIX] sale_expense: fields consistency
Use case to reproduce:
- Set a product to be expensed
- Set the expense_policy to something else than no
- Do a delivery order with a picking
- Validate the picking
-> Delivered quantity to 0 and impossible to create an invoice
if the invoice_policy is delivered_quantity

It happens due to this commit 48ea59d
What does it do:
- The move could be generated by an expense.
- If the move has 'no' as expense policy thus we won't add it in the invoice
Problem we can't guess if the move come from an expense or not (limitation).

This commit add an onchange on can_be_expense is order to set the expense
policy back to 'no' when the user uncheck it.

Courtesy of amoyaux

opw-777139
2017-11-06 13:05:37 +01:00
Odoo Translation Bot 6c1c1f6e9e [I18N] Update translation terms from Transifex 2017-11-05 01:11:44 +01:00