Commit Graph
108219 Commits
Author SHA1 Message Date
Jeremy Kersten 09de52ae5e [FIX] website_sale_portal: show cancel invoice fixing typo in domain
This commit closes #15254
2017-06-20 10:20:45 +02:00
Goffin Simon 4623fe8a81 [FIX] mrp: Wrong test
Introduced by dc98d174c7

opw:745453
2017-06-20 09:02:04 +02:00
Goffin Simon dc98d174c7 [IMP] mrp: Test recursive BOM
Test that detects a recursion in BOM when exploding.

opw:745453
2017-06-19 23:40:27 +02:00
Goffin Simon a133afe8a1 [FIX] mrp: same products in different sub-phantom-BoMs should be allowed
Let's consider 4 products P0, P1, P2 and P3 where:

- P0 depends on P1, P2 and P3
- P1 depends on P2 and P3
- P2 depends on P3

NB: "x depends on y" means that there is a phantom BOM for x where
y is in a line.

With this example, before the fix, when creating a MO for P0,
the function "explode" raised a user error saying that there
was a recursion error.

Even if in this case there was no recursion.

Now to check if there is a recursion, a graph of the dependencies of
the bom is created while exploding the boms and a function "isCyclic"
is applied on the graph to verify that there is no cycle which means
no recursion in the dependencies.

The algorithm was taken from this site: http://www.geeksforgeeks.org/detect-cycle-in-a-graph/

opw:745453
2017-06-19 23:40:27 +02:00
Christophe Simonis 29a7175292 [FIX] website_sale_event: correct test 2017-06-19 17:53:30 +02:00
Nicolas Lempereur 5ac8471eab [FIX] mrp: multi production inconsistencies
When several user run a production on a workorder, things go awry.

For example the end of the "productive" production is computed based on

ProductiveStartTime + DurationExpected - Duration

so if the duration was bigger than the time expected, we easily get a
productive end before the start, and start of the "reduced speed" before
the production actually happened.

eg:

productive time is 30 minutes

user A: start production at 10:00
user B: start production at 10:10

production is set to done at 10:50

=> result before the patch:

user A has been productive from 10:00 to 10:30
user A has not been productive from 10:30 to 10:50
user B has been productive from 10:10 to 10:00
user B has not been productive from 10:00 to 10:50

this is totally erroneous.

=> result after the patch:

user A has been productive from 10:00 to 10:30
user A has not been productive from 10:30 to 10:50
user B has not been productive from 10:10 to 10:50

this is a measure of right, we could argue about wether one or the other
should be productive or not but this is anyway an edge case.

In master we are considering only allowing one user to run a production
at a time but we prefer not to change such a behavior in stable version.

opw-709223
closes #17528
2017-06-19 17:17:37 +02:00
Christophe Simonis 04d5da90e1 [MERGE] forward port branch saas-11 up to 1f73105ddd 2017-06-19 17:08:57 +02:00
Christophe Simonis 1f73105ddd [MERGE] forward port branch 9.0 up to 7606b60420 2017-06-19 15:44:49 +02:00
Christophe Simonis 7606b60420 [MERGE] forward port branch saas-6 up to 9ed3ee55a7 2017-06-19 15:41:35 +02:00
Christophe Simonis 9ed3ee55a7 [MERGE] forward port branch 8.0 up to 27a47eb3c3 2017-06-19 15:40:59 +02:00
Richard Mathot fe2db96434 [FIX] website_event_sale: test is now robust to multicurrency 2017-06-19 15:27:12 +02:00
Florent de Labarre 6662cdfcab [FIX] account: add form view on bank statement line
Was not able to open the details from the "Search Operations" action

Closes #17608
2017-06-19 14:42:48 +02:00
Leonardo Rochael Almeida 27a47eb3c3 [FIX] stock: add missing context
method check and run have a context argument that was lost

Closes #17683
2017-06-19 13:32:49 +02:00
Nicolas Martinelli f8a4b4a571 [FIX] website_quote: monetary format
When a discount is applied on a quote, the price is not displayed with
the appropriate format.

opw-746087
2017-06-19 12:27:58 +02:00
Denis Roussel c1a82fffaa [FIX] stock: large picking performance
When the user processes a picking with a large amount of pack operations
but validates a few lines (the remaining goes to a backorder), the
operation can fail due to timeout.

Closes #17670
2017-06-19 10:45:46 +02:00
Nicolas Martinelli 34736b0a6c [FIX] resource: force start_dt
Set up:
- Use the usual working schedule from 8:00 to 12:00 and 13:00 to 17:00.
- Set the OS and user TZ to Australia/Sidney TZ (restart your browser)
- Create a BOM with 3 work orders, taking 1, 2 and 3 minutes (you can
  use the 'Assemble Furniture' routing)
- Create a MO using the previously created BOM, e.g. for '[FURN001]
  Computer Desk'

Case 1: Plan to start the next day at 08:00, e.g. 2017-06-08

The result is amazing. The system probably hit a flaw in the space-time
continuum, which can only be explained with M-theory:
- WO1 is planned from 2017-06-08 08:00:00 to 2017-06-07 08:01:00
- WO2 is planned from 2017-06-07 08:01:00 to 2017-06-06 08:02:00
- WO3 is planned from 2017-06-06 08:02:00 to 2017-06-05 08:03:00

Case 2: Plan to start the next day at 11:00, e.g. 2017-06-08

Once again, the result is literally a piece of art:
- WO1 is planned from 2017-06-08 11:00:00 to 2017-06-08 08:01:00
- WO2 is planned from 2017-06-08 08:01:00 to 2017-06-07 08:02:00
- WO3 is planned from 2017-06-07 08:02:00 to 2017-06-06 08:03:00

To solve the problem, a first commit is made in MRP to force the end
date to be larger than the start date. That hides the issue, but it
doesn't solve it.

To prevent the system to hit the 88 mph and go back in time, we force a
'hard limit' to prevent any selection of intervals starting before the
requested start time.

opw-745905
2017-06-19 08:40:19 +02:00
Odoo Translation Bot 74918dfa37 [I18N] Update translation terms from Transifex 2017-06-18 04:27:20 +02:00
Odoo Translation Bot 8c53fa5bc9 [I18N] Update translation terms from Transifex 2017-06-18 00:26:56 +02:00
Martin Trigaux 411f82081b [REM] doc: remove the accounting memento from technical doc
Will be moved to odoo/documentation-user repository

cf task id 34230
2017-06-16 16:25:37 +02:00
Olivier Dony 6f8efea28c [FIX] requirements: bump up recommended psycopg2 version
Version 2.7.1 is not yet available in most distributions,
but is now considered the recommended version.

Odoo will work just fine with any psycopg2 version >= 2.2, though.
2017-06-16 15:54:04 +02:00
Martin Trigaux 5eca56840a [MERGE] documentation fixes
Mostly remove warnings
2017-06-16 15:14:51 +02:00
Martin Trigaux c375198681 [FIX] doc: comment not working section
The classes have changed and are no longer loaded making an empty section.
Correctly documenting it is more than just changing the classes
2017-06-16 15:14:27 +02:00
Martin Trigaux 2e5d3a83ae [IMP] doc: compress image 2017-06-16 15:14:27 +02:00
Martin Trigaux ee4f9cec42 [FIX] doc: remove bad attribute
raise a warning
2017-06-16 15:14:27 +02:00
Martin Trigaux cfc1dbb041 [FIX] doc mobile: missing formating
In the documentation we have styling guidelines too
2017-06-16 15:14:27 +02:00
Martin Trigaux c060e90d81 [FIX] doc: correctly link doc and test lines
The test is surprisingly formated but it is to be able to extract the relevant
lines in the documentation
2017-06-16 15:14:27 +02:00
Martin Trigaux 191ad830ca [FIX] doc: correct diff
avoid error
backend.rst.rst:1488: WARNING: line number spec is out of range(1-262): '238-263'
2017-06-16 15:14:26 +02:00
Martin Trigaux b13d38aa10 [FIX] doc: missing indentation 2017-06-16 15:14:26 +02:00
Martin Trigaux 0488f3579d [FIX] doc: bad title size 2017-06-16 15:14:26 +02:00
Lucas Perais (lpe) 676ba1bdb2 [FIX] l10n_ch: number of digits in the account code
the number of digits for Suiss accounting should be 4, not 1.

OPW 747693
2017-06-16 13:38:31 +02:00
Nicolas Martinelli 99899901e3 [FIX] mail: track date change
- Set your timezone in Brasil
- Install the Maintenance module
- Create a Maintenance Request, set the Requested Date to 2017-06-15
- Save

In the chatter, the track fields message shows a Requested Date of
2017-06-14.

This can actually happen with any date tracked. The issue comes from the
web client: it converts the date in UTC, which should of course not be
done. This only applies for a datetime, not for a date.

opw-746216
2017-06-16 12:04:05 +02:00
Lucas Perais (lpe) bf5312428f [FIX] barcodes: comply the ean parser with reportlab.graphics.barcode
Before this commit, the JS parser would add 0 after the input, then add the ean key.
Whereas reportlab.graphics.barcode fills the input with 0's on the left, then add the key

http://pydoc.net/Python/reportlab/2.5/reportlab.graphics.barcode.eanbc/
At: Ean13BarcodeWidget.__init__()

This commit makes the ean parser coherent with the lib the python uses
2017-06-16 08:41:58 +02:00
Christophe Simonis d771f612b4 [FIX] stock: correct test 2017-06-15 18:29:42 +02:00
Christophe Simonis dc8b473a03 [MERGE] forward port branch saas-11 up to dd7b2556c6 2017-06-15 17:52:49 +02:00
Christophe Simonis dd7b2556c6 [MERGE] forward port branch 9.0 up to 9e324c061c 2017-06-15 17:48:26 +02:00
Simon Lejeune cb73aaf71b [FIX] stock: inventory adjustment and negative quants
It is still possible to have negative and positive quants in the same
location because of returns: if you send something to the customer that
is not there and you return it, you will still be able to reserve the
returned goods to send to another client.

Before, if you would do an inventory adjustment, it would not take into
account these returned quants and their negative counterpart, which made
them difficult to get out of the system.

This fix takes them into account by creating two movements for one
inventory line: move the positive counterpart to the inventory location
before getting back from this location the same quantity.

This way, even if you have 0 as quantity on hand but you have those 2
quants, it will eliminate them. (if you are increasing the stock, part
of the process might have done it automatically already).

Test cases contributed by @jir-odoo

Cherry-pick of be9dce625c
2017-06-15 17:42:10 +02:00
Christophe Simonis 9e324c061c [MERGE] forward port branch saas-6 up to 88802b066c 2017-06-15 17:29:17 +02:00
Christophe Simonis 88802b066c [MERGE] forward port branch 8.0 up to 89eca96476 2017-06-15 17:26:15 +02:00
Olivier Dony 89eca96476 [FIX] anonymization: correct pickle protocol and import 2017-06-15 16:36:05 +02:00
Olivier Dony e40a4baf41 [FIX] anonymization: correct pickle protocol and import 2017-06-15 16:34:47 +02:00
Olivier Dony 625c0d5d8e [FIX] anonymization: correct pickle protocol and import 2017-06-15 16:25:25 +02:00
Olivier Dony 16714a7e71 [FIX] auth_oauth: correctly register token field 2017-06-15 16:23:44 +02:00
Olivier Dony eaa3682bb6 [FIX] http: force protocol when missing in URL 2017-06-15 16:23:35 +02:00
Olivier Dony 4acfe3577b [FIX] sql_db: port fix from psycopg/psycopg2#459
NUL characters must not be used in query parameters,
as they will be ignored by libpq, being end-of-string
characters.

Preventing NULs avoids unexpected results from
queries. It is only necessary with psycopg2
versions before 2.7, which includes the upstream
fix.
2017-06-15 16:23:35 +02:00
Olivier Dony 0527564463 [FIX] auth_oauth: correctly register token field 2017-06-15 16:21:32 +02:00
Olivier Dony 692f47da6e [FIX] http: force protocol when missing in URL 2017-06-15 16:21:22 +02:00
Olivier Dony e3a52a9966 [FIX] sql_db: port fix from psycopg/psycopg2#459
NUL characters must not be used in query parameters,
as they will be ignored by libpq, being end-of-string
characters.

Preventing NULs avoids unexpected results from
queries. It is only necessary with psycopg2
versions before 2.7, which includes the upstream
fix.
2017-06-15 16:21:22 +02:00
Olivier Dony 090d7a51be [FIX] auth_oauth: correctly register token field 2017-06-15 16:17:35 +02:00
Florent de Labarre acf7c1460a account: Backport of a5361605
[IMP] account: hide deprecated accounts

To be consistent with other domain added at ee97028

Closes #15432
2017-06-15 16:06:42 +02:00
Olivier Dony d655824028 [FIX] http: force protocol when missing in URL 2017-06-15 16:01:40 +02:00