Commit Graph
108787 Commits
Author SHA1 Message Date
amoyaux 64237aa3ab [FIX] stock: package transfer shows related pickings
Use case to reproduce:
- Create a picking with a package
- Go to the source or destination package
- Click on package transfers
-> It displays all the pickings

This happens because the package transfer button calls
the all picking tree view that display them.

This commit use an action instead that will add a domain
on it in order to only display the pickings that used the
selected package.

opw-774013
2017-10-10 14:26:35 +02:00
Nicolas Martinelli b1ce2dd6c1 [FIX] account: invoiced amount
- Create 2 companies: A is parent of B.
- Demo is in Company A
- Create 2 invoices for a partner: one in A, one in B (100 each)
- Validate the invoices

Connected as Demo, the 'Invoiced' amount on the partner form view (stat
button) is 100, while clicking on it shows both invoices (total of 200).

There is no need to manually add the company in the `where` clause since
the `_apply_ir_rules` will take care of adding the appropriate
multi-company rules.

opw-772479
2017-10-10 12:33:27 +02:00
Nicolas Martinelli e890682656 [FIX] account: invoice analysis
- Create a customer invoice of 100, validate
- Refund the invoice
- Go to Accounting > Reports > Business Intelligence > Invoices
- A total of 200 is shown, while it should be 0.
- The same occurs with a vendor bill (-200 instead of 0)

The invoice lines have their sign modified at two places when used in
the report:
- in method `_compute_price` of `account.invoice.line`
- in method `_from` of `account.invoice.report`

The signs are computed with the following combination:

|Invoice type|`_compute_price`|`_from`|Report sign|
|------------|----------------|-------|-----------|
|out_invoice |              +1|     +1|         +1|
|in_invoice  |              +1|     -1|         -1|
|out_refund  |              -1|     -1|         +1|
|in_refund   |              -1|     +1|         -1|

This is not correct: out_invoice and out_refund should have opposite
signs. Same applies to in_invoice and in_refund.

opw-772479
Closes #19954
2017-10-10 12:31:25 +02:00
Christophe Matthieu 0e28db88d1 [FIX] stock: Decimal precision on weight can not be saved
odoo issue: 774361
https://github.com/odoo/odoo/issues/13784
2017-10-10 11:41:33 +02:00
Raphael Collet fcf6ef476c [FIX] fields: writing on a one2many with a domain should not remove all lines
Specifically, the command `(6, 0, ids)` should only unlink/detach the lines
that satisfy to the field's domain.

Test from #18440

opw-756983
2017-10-10 11:21:15 +02:00
Nicolas Martinelli 5a1e5aa429 [FIX] account: payment communication
- Set up a journal which only accepts SEPA payments
- Import a CAMT file which contains a statement containing:
  No "Ustrd" data
  A "AddtlNtryInf" description longer than 140 characters
- Reconcile the bank statement

A contrain is raised because the communication of the SEPA payment is
longer than 140 characters.

From commit https://github.com/odoo/enterprise/commit/ff84f8b7,
"AddtlNtryInf" is used if "Ustrd" is empty. However, "AddtlNtryInf" and
"Ustrd" do not have the same restrictions. "Ustrd" can have a maximum of
140 characters, while "AddtlNtryInf" can have a maximum of 500
characters.

opw-772009
2017-10-10 11:15:18 +02:00
Josse Colpaert 0e65962a16 [FIX] mrp: states are sufficient for Update link in mo fixes #19962 2017-10-09 17:54:43 +02:00
Manuel Vázquez Acosta 0c4ba97f35 [CLA] add member to merchise CCLA
Closes #19568
2017-10-09 15:51:22 +02:00
Raphael Collet cb1cfadda2 [FIX] fields: performance issue in copy_cache (#19963)
That function is called when computing related fields in onchange mode.
The new implementation makes a direct access to the cache's implementation.

opw-772303
2017-10-09 11:53:18 +02:00
Christophe Simonis 7c68e4d040 [MERGE] forward port branch 9.0 up to c725745d14 2017-10-09 11:46:03 +02:00
Yenthe V.G 00d5814b04 [IMP] project: ability to xpath by page name
Closes #17972
2017-10-09 11:44:11 +02:00
xmo-odoo c725745d14 [FIX] sale: action methods with no return values
Returns apparently lost during salepocalypse, leads to errors when
calling them over XML-RPC (cannot marshal None).

Fixes #19889
2017-10-09 10:56:37 +02:00
Martin Schmid 79bf7ebb42 [CLA] signature for Equitania Software GmbH
Closes #19386
2017-10-09 10:36:05 +02:00
Günter Selbert 0a5bcd3f51 [CLA] sewisoft UG signs CCLA
Closes #19915
2017-10-09 10:24:54 +02:00
Brandon Bazemore 8b68dc549d [CLA] signature for bazemoreb
Closes #19825
2017-10-09 10:24:06 +02:00
Odoo Translation Bot 19eb19b92d [I18N] Update translation terms from Transifex 2017-10-08 04:42:45 +02:00
Odoo Translation Bot a846813b96 [I18N] Update translation terms from Transifex 2017-10-08 01:44:15 +02:00
Sylvain Garancher 815c2a324d [CLA] update the contributors list in Syleam's CLA
Closes #19838
2017-10-05 12:18:05 +02:00
Yoshi Tashiro 9fde53cd8f [CLA] Quartile Limited signs the CCLA
Done at #19516
2017-10-05 10:15:56 +02:00
hansmi 8e8594631f [CLA] signature for hansmi
Done at #19503
2017-10-05 10:09:40 +02:00
David Arnold de803378f1 [CLA] signature for XOE and blaggacao
Done at #19210
2017-10-05 10:04:45 +02:00
David Tran bed3ece7f6 [CLA] add signature for tutran81 and emilyha
Done at #19189
2017-10-05 10:02:39 +02:00
Edi Santoso 8cf81132b7 [FIX] base: change position of IDR currency
Currency position of IDR must before symbol

Closes #19178
2017-10-05 09:42:03 +02:00
Jeremy Kersten 7e04e442b1 [FIX] calendar: don't read start_date(time) in read
It seems to randomly save a bad value into the cache for star_date(time) field.

For already impacted database, it can be easily fixed with a simple update.
  update calendar_event set start_datetime=start, stop_datetime=stop where allday = 'f';
  update calendar_event set start_date=start, stop_date=stop where allday = 't';

Than can cause errors for google synchro.
2017-10-03 23:54:31 +02:00
Jesús Alan Ramos Rodríguez fdb2f17f8b [I18N] add VAT es_MX translations
To use RFC (Mexico) instead of NIF (Spain)

Closes #19142
2017-10-03 15:00:33 +02:00
xmo-odoo 27280fefa9 [IMP] website_mail_channel: unsubscribing unsubscribed address
Before this fix, if a (non-registered) user tried to unsubscribe an
address *not registered*, they'd get an unsub link, click on it, and
get a "Invalid or expired confirmation link." message, usually
wondering what the bloody hell happened.

Provide a clearer message in that case.
2017-10-03 11:19:18 +02:00
qsm-odoo aba5402d5e [FIX] web: allow to group on more groupable fields with the searchview
Some fields are groupable even though they are not stored (e.g. an inherited
field, by example the 'date' field of 'fleet.vehicle.log.fuel').
2017-10-03 10:42:47 +02:00
Edgar Rivero [Vauxoo] 1aa8de172f [CLA] add egrivero to Vauxoo's CLA
Closes #19779
2017-10-03 09:59:59 +02:00
Melroy van den Berg 059bcde33d [FIX] l10n_nl: Missing letter 'e'
Typo missing 'e'. Algemen --> Algemene.

Closes #19837
2017-10-02 15:34:13 +02:00
Melroy van den Berg f3592c7874 [CLA] signature for danger89
Done at #19837
2017-10-02 15:34:13 +02:00
Christophe Simonis 2821730738 [MERGE] forward port branch 9.0 up to 55925d88b4 2017-10-02 11:03:02 +02:00
Olivier Colson 4321730f93 [IMP] calendar, lunch: "recurrence" instead of "recurrency" in field labels, templates and comments 2017-10-02 11:00:36 +02:00
xmo-odoo 82ef2f1b8e [FIX] calendar: validation error when moving some events back
Observed via google sync, for some events being moved around during
sync the stop_datetime ends up being before the start_datetime failing
the sync. Not (explicitly) reading the computed fields from the old
record properly recomputes them during copy.

Underlying issue linked to (stored) computed fields when multiple
fields are computed by the same method *and* the creation provides a
subset of these fields explicitly: depending on the order in
which *recompute* iterates the fields, it's possible that some of the
fields provided explicitly get extracted (from the cache) before
fields not-provided trigger a recomputation (and overwrite) of
computed fields.

In this case `recompute` iterates [start_datetime, start_date,
stop_date, stop_datetime], if `start_datetime` and `stop_datetime` are
provided explicitly to create, first recompute will check for
`start_datetime`, find it in the cache and extract it, then it checks
for `start_date`, does not find it in the cache, calls
`_compute_dates` which writes all four fields, then it extracts the
recomputed `start_datetime`, creating an incoherence: `start_datetime`
is the one from the old event while `stop_datetime` is the one from
the update/computation. This may lead to invisible corruption if the
event is moved forwards (e.g. creates a multi-day event) and triggers
a validation error if the event is moved backwards (stop_datetime is
now before start_datetime).

ping @rco-odoo multi-field computes may need some special handling
with respect to invalidations & sequencing & the like (e.g. check
their caching as a unit or something).

OPW-771886
2017-10-02 10:55:15 +02:00
Olivier Colson 55925d88b4 [IMP] lunch: "recurrence" instead of "recurrency" in field labels, templates and comments 2017-10-02 10:53:35 +02:00
Vailiy Korobatov 77d4999940 [FIX] typo in guidelines file 2017-10-02 09:43:43 +02:00
Odoo Translation Bot 682b2c0985 [I18N] Update translation terms from Transifex 2017-10-01 04:41:44 +02:00
Odoo Translation Bot 97de7c7c48 [I18N] Update translation terms from Transifex 2017-10-01 01:44:20 +02:00
qsm-odoo 14bd6dd277 [FIX] web: traceback on line graphs with only one data
Graph tooltip destruction was fixed with commit https://github.com/odoo/odoo/commit/86252428846607cd5f4b18cef8de49a8cd0b151a#diff-5de06eee7a2eeae066aa1348a1528fe9L100.
Unfortunately, the commit supposed that the 'display_' methods always
returned a graph, which is wrong.

opw-773759
2017-09-29 12:42:20 +02:00
qsm-odoo e10a3ceb6f [FIX] website_slides: restore drive video embedding
The google 'video.google.com/get_player' URL seems to be deprecated so
the URL used by website_slides had to be updated.

Also when switching a slide URL from a drive URL to a youtube URL, odoo
still kept thinking it was a drive URL.

opw-773984
2017-09-29 12:32:29 +02:00
Denis Ledoux 808c0e5dde [FIX] test_assetsbundle: handle readonly files
If the Odoo server runs with its sources read-only
for itself, this is not possible for the server
to touch the files contained in the assets.

In such a case, instead of touching the file,
we alter the attachment checksum, to simulate
a change within the modified date.

However, in such a case, we can only test that the
bundle is well generated again.
We can no longer check the change of version and modified date,
since the modified date of the files have not changed,
and therefore the checksum (which is based on the files
modified date, among others) neither.
2017-09-27 22:11:36 +02:00
Denis Ledoux b5c55a9331 [FIX] base: tests, reflect unaccent behavior of 5e3de76f36
Since the revision
5e3de76f36

The `::text` is included within the `unaccent` call
The expession tests have never been changed according
to this change of behavior in the building of the unaccented
queries. This has never been detected by runbot because
you need to start the Odoo server with the option
`--unaccent`
and to create the database with the unaccent extension
`CREATE EXTENSION unaccent`
to be able to fail the former tests,
and this is not the case on runbot.
2017-09-27 22:10:30 +02:00
Christophe Simonis 8165018058 [MERGE] forward port branch 9.0 up to b7940c317b 2017-09-27 16:41:09 +02:00
Christophe Simonis b7940c317b [MERGE] forward port branch saas-6 up to 81605180bf 2017-09-27 16:30:36 +02:00
Christophe Simonis 81605180bf [MERGE] forward port branch 8.0 up to cf8577b9d0 2017-09-27 16:01:47 +02:00
Christophe Simonis cf8577b9d0 [FIX] crm_partner_assign: safer geolocalization test
Backport & adapt commits afd4b68acc & 27787265dd

As google starts to refuse to answer to our geocode requests, we need
to mock results in tests.
2017-09-27 15:53:30 +02:00
qsm-odoo 4c046a759c [FIX] web: fix translate icon position on chrome
On chrome only, the translate icon was over the <input/> element but
below the <input/> text... this commit fixes this by forcing
relative positioning on the icon so that it is always rendered after
the <input/> (which seems to solve the chrome bug).
2017-09-27 13:58:14 +02:00
Christophe Simonis 6836828a3e [MERGE] forward port branch 9.0 up to 1970761554 2017-09-27 13:20:29 +02:00
Christophe Simonis 1970761554 [MERGE] forward port branch saas-6 up to 57868ca195 2017-09-27 13:16:37 +02:00
Christophe Simonis 57868ca195 [MERGE] forward port branch 8.0 up to 8a187c5b1d 2017-09-27 13:15:55 +02:00
Martin Trigaux 88edeeca6a [FIX] preventing context.get('lang')
The lang in the context can be None or False
To avoid similar error as revealed at ede29e6d, correctly retrieve the context
2017-09-26 16:58:59 +02:00