Commit Graph
108455 Commits
Author SHA1 Message Date
Odoo Translation Bot b1e79e85bd [I18N] Update translation terms from Transifex 2017-07-30 04:40:00 +02:00
Jeremy Kersten 3d558c435a [FIX] stock: improve warning to help user to find the picking that block.
When you valid a picking wave of 100 pickings, and that one is blocked
(eg: no serial attributed), you have no way to know wich one fail except
opening all one by one.
2017-07-28 18:30:01 +02:00
Jeremy Kersten f3f66d2b8e [FIX] web: avoid cast None in int
Some function send None instead of 0
2017-07-28 18:30:01 +02:00
Christophe Simonis e686385138 [MERGE] forward port branch saas-11 up to 5e6637a240 2017-07-28 16:26:57 +02:00
Christophe Simonis 5e6637a240 [MERGE] forward port branch 9.0 up to b054902655 2017-07-28 16:24:48 +02:00
Christophe Simonis b054902655 [MERGE] forward port branch saas-6 up to 683a7cb029 2017-07-28 16:23:27 +02:00
Christophe Simonis 683a7cb029 [MERGE] forward port branch 8.0 up to 1644b92fd8 2017-07-28 16:18:08 +02:00
Thibault Francois 1644b92fd8 [FIX] account format error message correctly
Cherry-Pick of a04c1a2ac5244fe2fd3098fc22c59d336e352981
2017-07-28 16:15:35 +02:00
Yenthe V.G d82933d8e7 [FIX] web: change exception name from openerp to Odoo
The crash manager still used the old name for the exception. (PR #18522)
2017-07-28 15:44:18 +02:00
Christophe Simonis a7b7576536 [FIX] test_converter: declare string containing unicode as unicode 2017-07-28 15:41:46 +02:00
Thibault Delavallée 55d9c37520 [FIX] payment_authorize: avoid crash when contact ogone without street on partner 2017-07-28 15:07:52 +02:00
Olivier Dony 586b97e17b [FIX] crm: correct duplicate record ID
Introduced by a8c5b7810f

+ spellchecking
2017-07-28 11:19:37 +02:00
Christophe Simonis c39f7e4987 [FIX] mrp: force help message in unicode 2017-07-27 23:03:02 +02:00
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
Christophe Simonis e6b91eb55a [FIX] core: werkzeug 0.12 compatibility
Since werkzeug 0.12, the `BaseWSGIServer.__init__` method expect the
socket to be bound to determine the effective port it listen to [1].
Stop pretend to bind the socket and close it directly after use.

[1] see pallets/werkzeug@1fc28cbb30
2017-07-27 13:40:19 +02:00
Christophe Simonis 48c478513f [IMP] core: log address we listen on in multi-worker mode 2017-07-27 13:39:08 +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