Commit Graph
108759 Commits
Author SHA1 Message Date
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
qsm-odoo e520aabc43 [FIX] website_slides: allow upload of >20MB files (as limit is 25MB)
There is a double-check (on client and on server) to prevent the user to
upload a >25 MB document. The client checks the actual file size while
the server guesses it from the total received payload. This server guess
is wrong as the extra payload is quite huge (5-10MB). Now the server
checks the real file size as it should have from the beginning.
2017-09-26 14:04:55 +02:00
Odoo Translation Bot 8a187c5b1d [I18N] Update translation terms from Transifex 2017-09-26 11:47:00 +02:00
Adrian Torres 83024ca3d6 [FIX] calendar: Fix unicode reminders
Before this commit, if a reminder was created and the dates being
formatted contained unicode characters the whole thing would break
because python + unicode is hard.

Example: Japanese with Asia/Tokyo timezone and creating reminders
of 1 day, see support ticket 771674
2017-09-26 09:30:17 +02:00
Goffin Simon 28755e1f41 [FIX] sale_mrp: Wrong call of _compute_quantity
The signature of the function _compute_quantity is
 _compute_quantity(self, qty, to_unit, round=True, rounding_method='UP')
With courtesy of @PierreFaniel

Closes #19682

opw:774104
2017-09-25 15:20:47 +02:00
Goffin Simon 571b1a1096 [CLA] Signature for Niboo
opw:774104
2017-09-25 15:14:24 +02:00
qsm-odoo 0b4f190b0f [FIX] website_event_track: allow to edit tracks' info in frontend
Before this commit, the track description and partner biography were
not able to be edited after proposal.
2017-09-25 11:55:17 +02:00
Yasser Kaddour 4365ebc19c [FIX] Correct Algerian currency symbol
While the currency code of the Algerian Dinar is DZD, (latin) currency symbol is DA.
2017-09-25 09:53:45 +02:00
Odoo Translation Bot 3550a68d96 [I18N] Update translation terms from Transifex 2017-09-24 04:41:28 +02:00
Odoo Translation Bot 740ddf81b0 [I18N] Update translation terms from Transifex 2017-09-24 01:44:27 +02:00
Goffin Simon 3a6fb27148 [FIX] account: Register a payment with no sequence for account.payment
Fine tuning of this commit: ce2d00f346

opw:767224
2017-09-21 22:17:51 +02:00
Yannick Tivisse 8e2d7c2e3c [FIX] hr_expense: Make expense sheet report multi currency coherent
Purpose
=======

Currently, if we want to print an expense report that has several currencies in its expense lines, the total amount is hidden on the report. Otherwise, it is simply summed.

That could lead to confusing uses cases. Example.
1 expense line of 92 dollars.
1 expense report expressed in euros.

In the report we will have
- 1 line of 92 dollars
- Total amount: 92 euros

Which is obviously wrong.

Specification
=============

Always display the amount + Compute the amount in the expense report currency, by converting the amount with the rate at the day the expense has been made.
2017-09-21 16:51:13 +02:00
Christophe Simonis e245135421 [MERGE] forward port branch 9.0 up to d53a201987 2017-09-21 13:55:52 +02:00
Christophe Simonis d53a201987 [MERGE] forward port branch saas-6 up to 43a47dbc93 2017-09-21 13:51:19 +02:00
Christophe Simonis 43a47dbc93 [MERGE] forward port branch 8.0 up to 35441cfd62 2017-09-21 13:25:42 +02:00
Goffin Simon 776e77b67c [FIX] account, point_of_sale, purchase, sale, website_sale: correctly set included tax in multi-company
A product can have multiple included taxes (i.e. one by company).
When computing the product price with function _fix_tax_included_price,
only the taxes of the company should be considered. Otherwise it could remove
all the included taxes of all companies.

ps: When no company is set on the SO, all the taxes visible from the company of the user
are set for the product of the line. Same behavior as in _compute_tax_id.

Closes #19566

opw:770464
2017-09-20 15:53:14 +02:00
Nicolas Lempereur a0fddebe64 [FIX] base: prevent bin_size/binary visual defect
Changing the address type of a contact in the "Contact & Addresses" tab
could in some instance lead to a dead image (just visually, saving it
would not change it) because the image is set to something like
"data:image/png;base64,5.23 Kb" because of a combination of kanba/form
x2many view, onchange, the differences of field present.

In 9.0 this did not happen because the image was not a field in the form
view corresponding to a contact of the kanban contacts view.

In saa-15 thanks to bf26445 the image_small is different than image in
the kanban view and this got us out of the issue.

In saas-16 it is solved even further because new views only load missing
fields.

This commit just get out of the issue by preventing an update of the
records field (with bin_size which caused the issue of the image) when
opening the modal form view of a contact's contact.

Ideally we should solve this more deeply but this is dangerous code to
change (eg. removing the bin_size would solve it but this was done for a
reason and could affect performances) and the effect is just visual in a
very particular set of factors (if we save the form after the image is
dead, the previous image reappeared).

opw-765952
closes #19491
2017-09-20 13:36:51 +02:00
Nicolas Martinelli dfe96ff38e [FIX] stock: UoM on return lot
- Create a product with:
  Product UoM: kg
  Purchase UoM: lb(s)
  Tracking: By lot(s)
- Purchase 100 lb(s), validate and receive picking (set lot 001)
- Return the picking
- Set the lot

The quantity to do is 45.36 instead of 100.

We make sure to convert the quant UoM (=Product UoM) into the
appropriate UoM.

opw-771930
2017-09-20 10:15:23 +02:00
Nicolas Lempereur 6252c21000 [FIX] web: modifiers computed when x2many ready
Modifiers (eg. required, readonly, ... on a field) are computed after a
record has been changed. When loading a record they could be computed
based on x2many in a inconsistent state.

eg. on res.partner form, by defaut the email is required depending on:
        [('user_ids','!=', [])]
    but when switching from one record to another this was computed
    wrongly based on the difference between the two records.

This change make the x2many when loading a record ready to be used as
soon as it is set to solve this issue.

forward-port: not needed after saas-15 thanks to framework views rewrite

fix #18239
opw-749483
closes #18815
2017-09-19 17:49:43 +02:00
Laurent Mignon (ACSONE) e34f6aaa26 [FIX] stock: procurements must be confirmed with the right company
The method _procure_orderpoint_confirm in stock/procurement is calld in sudo() by run_scheduler.
Even if this method receives the company as parameter, the company is not enforced for all
the processes trigerred into the method. i.e. If a PO is generated by the run of the procurements
the sequence used is the one of the admin's company and not the one for the given company.
To enforce the company to use, we force the company into the context if it's not the same as
the user's company.

opw:771851
2017-09-19 17:25:27 +02:00
Jairo Llopis 35441cfd62 [IMP] doc: add test classes documentation
Closes #13902
2017-09-19 17:00:59 +02:00
Fabien Meghazi f234376034 [FIX] bus: compatibility with Odoo's PAAS external long polling handler
Add a `peek` option in the bus event dispatcher polling in order to let
an external event dispatcher fetch the notifications and their
corresponding channels.

Cherry-pick of rev. f2f99dc091
2017-09-19 16:57:00 +02:00
Fabien Meghazi 4e9b5e8f23 [FIX] bus: compatibility with Odoo's PAAS external long polling handler
Only start the bus events dispatcher when needed (lazy starting).
On Odoo PAAS it's never started because the platform has its own event
dispatcher.

Cherry-pick of rev. a2ed3d3d5b
2017-09-19 16:57:00 +02:00
Nicolas Martinelli 3678cffcf9 [FIX] account: due date
On an invoice:
- Select a partner with payment term defined => due date D1 is set
- Change to a partner withour payment term defined

The due date D1 is kept.

opw-772063
2017-09-19 10:17:38 +02:00
Goffin Simon 875dd9221f [FIX] account, website_portal_sale: _generate_and_pay_invoice in other currency
When paying in other currency that the one defined  in the company, it
generates a payment which has to be in the currency of the transaction.
Otherwise it will generate an invoice which won't be completely paid.

opw:769278
2017-09-19 00:04:24 +02:00
Nicolas Martinelli 58c5b1cfd8 [FIX] payment: onchange partner
- Go in Accounting > Sales > Payment
- Fill the mandatory info, and create a "Payment Transaction"
- On the form view, change the Partner
- The Customer Details are empty, and saving is not possible since the
  country (mandatory) is not filled in

Closes #15708
opw-771753
2017-09-18 10:51:51 +02:00
Nicolas Martinelli 6b511f38c0 [FIX] point_of_sale: format date on receipt
The date printed on the receipt is not printed according to the language
settings.

opw-769862
2017-09-18 10:03:27 +02:00
Odoo Translation Bot c2f2bea6c5 [I18N] Update translation terms from Transifex 2017-09-17 04:40:19 +02:00
Odoo Translation Bot c14eb9ae9e [I18N] Update translation terms from Transifex 2017-09-17 00:29:20 +02:00