Commit Graph
108439 Commits
Author SHA1 Message Date
Christophe Simonis 97bac8d64c [IMP] core: capture Warnings though logging 2017-07-27 22:35:47 +02:00
amoyaux 62b8a05368 [FIX] purchase : procurement check fail if one move in cancel
Use case to reproduce the bug:
One procurement is running for a PO. Cancel one move in the picking and
create it again. Pass the picking in done.
--> The procurement stay in running state

It happens because the check method of procurement look if all moves linked
are in done state but in this case, there is one move in cancel and one
move in done.

This commit check instead if all move are in cancel or done and at
least one is in done state.

opw-753177
2017-07-27 16:00:21 +02:00
Nicolas Martinelli 66c22ab20d [FIX] crm: Leads Analysis report
The Leads Analysis report should filter on "Leads" by default.

opw-760265
2017-07-27 15:20:46 +02:00
Nicolas Martinelli 4fdfdb2f80 [FIX] mrp: domain in picking type
Limit the picking type domain to 'Manufacturing Operation'.

opw-760246
2017-07-27 13:21:53 +02:00
Christophe Simonis 0a089f87fb [MERGE] forward port branch saas-11 up to 4bf6f5a7e3 2017-07-26 15:45:37 +02:00
Christophe Simonis 4bf6f5a7e3 [MERGE] forward port branch 9.0 up to da0eb25221 2017-07-26 15:41:11 +02:00
Nicolas Martinelli 44b6d608b0 [FIX] website_links: missing translations
opw-756108
2017-07-26 15:03:15 +02:00
Nicolas Martinelli da0eb25221 [FIX] l10n_be: VAT-IN-V81-12-EU
The tax 'VAT-IN-V81-12-EU' should be a group of taxes, similarly to
'VAT-IN-V81-06-EU' and 'VAT-IN-V81-21-EU'.

opw-752879
2017-07-26 13:20:55 +02:00
Nicolas Lempereur 69236ada46 [FIX] web: sorted saved filter lost in merge
In 3071ef16c sorted filter was added, but arround the same time with the
change of filter in 6c579354 the js part of the feature was lost.

This commit adds it back.

opw-749422
closes #18361
2017-07-26 12:47:14 +02:00
Nicolas Martinelli 1c4f779c33 [FIX] report_intrastat: fiscal position on invoice
Display both fiscal position and fiscal position remark on invoice.
Since the note is usually empty, it most of the time displays an empty
label next to 'Fiscal Position:'.

opw-756720
2017-07-26 09:16:53 +02:00
Nicolas Martinelli cfc2a55c06 [FIX] point_of_sale: discount != 0
Display "Discount:" only if strictly larger than zero. Most of the time,
it just shows 'Discount: 0.00'

opw-757101
2017-07-25 19:06:28 +02:00
Wolfgang Taferner 901d777591 [FIX] website_sale_stock: use sale order warehouse default first
Taking unrelated first warehouse can only be the last fallback, so we
check first if there is a default value for the SO.

opw-756265
2017-07-25 18:33:37 +02:00
Christophe Simonis fa38adef5a [FIX] product: natural order for products
It has been remove with 08a85eb458 but
was somehow usefull.
2017-07-25 16:30:20 +02:00
Wolfgang Taferner bfa55e42f9 [FIX] hr_attendance: constraint must allow same time for check out/in
The constraint does not allow the same check out time as the next
check in time which might be rare but a possible and likely use case.

opw-756694
Closes #18400
2017-07-25 15:51:56 +02:00
Wolfgang Taferner 77b68a170d [FIX] purchase: fiscal position change must trigger a tax recomputation
It applies the same behavior than in the Sales module.

opw-756556
Closes #18377
2017-07-25 14:36:10 +02:00
Christophe Simonis 5ed09bc17c [MERGE] forward port branch saas-11 up to c16ec6405b 2017-07-25 14:27:31 +02:00
Christophe Simonis c16ec6405b [MERGE] forward port branch 9.0 up to 34bc9b4983 2017-07-25 13:04:29 +02:00
Odoo Translation Bot 34bc9b4983 [I18N] Update translation terms from Transifex 2017-07-25 11:46:16 +02:00
Lucas Perais (lpe) 890152cb6b [FIX] website_sale, website_sale_options: fix modal prices
Backport of 8bd56bb466

OPW 744943

Closes #18416
2017-07-25 09:09:30 +02:00
Christophe Simonis 06b670e6ba [MERGE] forward port branch 9.0 up to e2a255717f 2017-07-24 19:41:30 +02:00
Martin Trigaux 09c6d9f7ce [I18N] Update translation terms from Transifex 2017-07-24 15:45:48 +02:00
Martin Trigaux 9931a29930 [FIX] stock: include zero quantity products in search results
A special case was made for products not available when running a search on
the qty_available field.

For domains like ('qty_available', '<=', 5), it should include non-available
products too.

Fixes #18336
2017-07-24 13:23:08 +02:00
Pierre Masereel e2a255717f [FIX] stock: MTO move status
When we validate a SO with an MTO product, then an RFQ and a delivery
picking are created. The status of the delivery picking is in state
'confirmed', but should be 'waiting' as the delivery waits for a
specific delivery input.

The problem is caused by the unreserve method, which is called in the
'procurement_jit' module. This method only checks that a move has
ancestors to determine if the move should be in waiting or in confirmed,
which is not the case for our delivery move because the RFQ has not been
validated yet so there is not ancestors yet.

To fix this issue, we check the 'procure_method' of the move, and if it
is in 'make_to_order' we put it in 'waiting' instead of 'confirmed'.

We also fixed the function recalculate_move_state that could cause the
same problem.
2017-07-24 10:53:36 +02:00
Nicolas Martinelli e76fe2449c [FIX] sale: taxes on report
- Create a tax using the tax template 'GST + QST for sales'
- Create a SO with the following lines:
  Product 1 100 Units @ 0.1
  Product 2 2000 Units @ 10.334
  Product 3 2000 Units @ 10.334
  Product 4 5000 Units @ 0.1
  Product 5 1500 Units @ 0.1
- The totals are:
  Amount without taxes: 41996.00
  Taxes: 6288.90

When printed, the quotation gives:
  Amount without taxes: 41996.00
  Taxes: 6286.52

This is due to the method `_get_tax_amount_by_group`, which is using
`line.price_reduce` for tax computation. Since it is a Monetary field,
it is automatically rounded to the currency precision, while it should
be rounded with the same precision as `price_unit`.

To avoid breaking overrides, changing the field type is done in master
branch.

Introduced in 99743cc4aa

opw-752487
2017-07-24 10:44:34 +02:00
Damien Bouvy 75fe7cb1af [FIX] website_portal_sale: remove incorrect field dependency
The field 'payment_acquirer_id' is added on the sale.order model
in the website_sale module, which may not be installed when this
code runs since it is higher up in the dependency tree.

Either way, it's quite convoluted to go fetch the acquirer on the
quote since it's already available on the transaction itself anyway.

opw-755998
2017-07-24 08:59:44 +02:00
Jeremy Kersten df13516679 [FIX] report*: fix missing import from backport #7a1d2d1c4caebba5bd69d63cff3d7824dfd5a7a6 2017-07-20 16:27:44 +02:00
Adrien Dieudonne 7a1d2d1c4c [FIX] *: reports: check required values for 'render_html'
Some reports require additional information to render. When
accessed in Odoo, the user has to fill a wizard to provide those
information. However, when these reports were opened in Studio,
it crashed as those information were missing (we don't pass
through the configuration wizard in this case).

This fix checks if all the required information are given before
trying to render those reports, and it displays a warning in
the logs in they are missing, which is better than a traceback.

backported in v10 for opw-753036
2017-07-20 14:21:57 +02:00
Goffin Simon 7333f5e9b8 [FIX] purchase: Wrong scheduled date for backorder
Steps to reproduce:
-Create a PO with two lines L1 and L2
-L1 has product P with qty=10 for a scheduled date=23/07/2017
-L2 has product P with qty=10 for a scheduled date=30/07/2017
-Confirm the PO

When delivering 5P of L1, the scheduled date of the picking is the
right date which is 23/07/2017
But when delivering the other 5P of L1, the scheduled date of the
second picking was 30/07/2017 instead of 23/07/2017.

opw:752192
2017-07-20 13:44:43 +02:00
Martin Trigaux a03eb9a3e8 [IMP] sale: add test on pricelist dates
Commit 60d46345 fixed issue #18303 that was surprisingly unnoticed for two years
Adding tests to make sure it does not happen again.
2017-07-20 10:21:03 +02:00
jeffery chen fan 60d4634544 [FIX] sale: use date_order for pricelist selection
The date of the sale order was ignored when selecting th eappropriate pricelist
rule.

Fixes #18303
Closes #18308
2017-07-19 16:30:39 +02:00
Christophe Simonis 11270336fa [MERGE] forward port branch saas-11 up to f07ca36b9b 2017-07-19 16:18:40 +02:00
Christophe Simonis f07ca36b9b [MERGE] forward port branch 9.0 up to 41433debdb 2017-07-19 16:16:57 +02:00
Xavier Morel b656eda22d [FIX] ir_qweb: decoding of attachment assets
For uploaded modules (e.g. saas), uploaded assets are stored in
attachments.

When the asset content is retrieved, static "filesystem" files are
assumed to be UTF8 and properly decoded, but attachment data is not
and is thus interpreted as ASCII further down the line, leading to a
UnicodeDecodeError (and a broken page/template/...) if the asset data
is not actually ASCII (e.g. if it's UTF-8).

Fix by treating attachment assets as UTF8 encoded, same as filesystem
assets.

OPW-752858
2017-07-19 15:41:37 +02:00
Nicolas Martinelli 21fbb9776a [FIX] sale, sale_timesheet: unnecessary complex domain
The use case was not supported anyway.

This reverts a0fed3b845
2017-07-19 14:32:55 +02:00
Nicolas Martinelli e909533e30 [IMP] sale, sale_timesheet: unnecessary search
Check if there is any sale line before compute analytic.

opw-752100
Closes #18173
2017-07-19 14:32:55 +02:00
Goffin Simon b2fb17f3c4 [FIX] hr_expense: Domain on field account_id in model hr.expense
It was possible to set a payable account for an expense.
So it raised a UserError when reconciling the lines in
function expense_post_payment because two different accounts
were used as payable account.

A expense account is expected as account for an expense.

opw:752695
2017-07-19 13:51:37 +02:00
Nicolas Martinelli 41433debdb [FIX] account: leap year
If the end of the accounting period is set to the 28-29th of February,
crashes may occur in date computation.

opw-752939
2017-07-19 12:58:05 +02:00
Timo Talvitie c0dbbe6320 [CLA] signature for timotalvitie
Done at #18314
2017-07-19 11:58:12 +02:00
xmo-odoo 27127b73c1 [FIX] Close POS session with amount 0 on statement lines
When trying to close a POS session (which confirms the bank statements
which reconciles the statement lines) if one of the statement lines
has an amount of 0 no payment object is
created (addons/account/models/account_bank_statement.py:905) and thus
``payment`` remains set to ``False``. In the past this was not an
issue but since b17e4a0f6b at the end of
the method (line addons/account/models/account_bank_statement.py:1003)
we unconditionally write to ``payment`` which blows up when it's
``False`` rather than a recordset.

This can happen if e.g. a POS order is composed only of free
products (don't ask...)

Fix by using an empty recordset instead of a boolean for a
non-payment, making payment.write a no-op.

OPW-752922
2017-07-19 11:43:32 +02:00
qsm-odoo 9494161e23 [FIX] website_quote: increase robustess of menu generation
On online quotations, a left menu is automatically generated on page
load by searching for the <h1/> and <h2/> elements in the page. This
also considered the empty ones which do not make sense and were
breaking the menu's layout. Ideally, there should not be any empty
title in the page.

opw-752764
2017-07-19 09:25:11 +02:00
Nicolas Martinelli 1cf12a9ae4 [FIX] sale: keep Salesperson
When creating an advance from a SO, the Salesperson is not kept.

opw-752490
2017-07-19 09:12:32 +02:00
Christophe Simonis 044ab92270 [MERGE] forward port branch saas-11 up to f081f19fb8 2017-07-18 20:09:37 +02:00
Christophe Simonis f081f19fb8 [MERGE] forward port branch 9.0 up to ba294a397e 2017-07-18 19:45:42 +02:00
Christophe Simonis ba294a397e [MERGE] forward port branch saas-6 up to 3228694bdd 2017-07-18 19:18:59 +02:00
Christophe Simonis 12fdf46a5b [FIX] mass_mailing: avoid creating mass mailing for messages posts
In case a default value is set for the field `mass_mailing_name` of the
mail composer, the automatic messages sent via message_post_with_* are
considered as a mass mailing. It may also create an AccessError if the
current user is not a mass mailing user.

In the case of the "assign user" email (for auto-subscribed users), the
url wasn't shorten, which resulted in invalid links (opw-752941) (fixed
by 3228694bdd)
2017-07-18 19:00:08 +02:00
Christophe Simonis 3228694bdd [FIX] mass_mailing: only track shorten links
It may happen that some mails attached to a mailing contains non
shorten links.
2017-07-18 18:36:21 +02:00
pashute b237c3e25e [IMP] doc: move demonstration path
To show forward slash in paths are needed and to use path guidelines

Closes #17989
2017-07-18 17:25:16 +02:00
Jarmo Kortetjärvi 2550cc08c3 [CLA] signature Oy Tawasta OS Technologies Ltd.
Done at #18301
2017-07-18 16:40:40 +02:00
Martin Trigaux 01b8f6be99 [I18N] website_sale: export source terms
To include 6d7648e9f0
2017-07-18 16:29:20 +02:00
Rakesh Sindhav 6d7648e9f0 [FIX] website_sale: don't transalte CSS classes
Closes #18000
2017-07-18 16:27:36 +02:00