Commit Graph
117975 Commits
Author SHA1 Message Date
Christophe Simonis 0fd602ba34 [MERGE] forward port branch saas-15 up to 791e0cf47a 2017-12-11 09:17:53 +01:00
Lucas Perais (lpe) 6c024d1ef0 [FIX] web: give context to fetch x2m batched
Before this commit M2Mtags widget did not translate.
This was because no context was given to the rpc that fetched the fields
Hence, the lang was not passed.

After this commit, M2Mtags translate well

OPW 784396
2017-12-11 08:32:04 +01:00
Odoo Translation Bot 1a43e2e66f [I18N] Update translation terms from Transifex 2017-12-10 04:25:30 +01:00
Olivier Dony 88841c3927 [FIX] payment_stripe: avoid crash on non-ascii cardholder names
`str.format()` is only safe with byte-strings arguments, not unicode.
Unicode parameters would be automatically encoded using 'ascii'
encoding, resulting in a UnicideEncoreError in case any non-ascii
characters are present, which is quite likely.

Using '%' formatting on a str format string works the other way around,
and will cause the format string to be decoded into unicode if any
unicode params are present. This is typically safer because we never
use non-ascii characters in our format strings.

It also feels more natural than having to coerce the format string to
unicode using a u'' prefix.

This issue does not occur in Python 3, where either syntax will work.
2017-12-10 02:25:29 +01:00
Olivier Dony 0a74272bed [FIX] payment_stripe: do not rely on token email
Depending on the payment flow, the `email` field may not always be
present in the token data coming from Stripe.
Currently, it is missing in s2s mode, because we do not send it.

To avoid a KeyError during creation of the customer, we can use
token["card"]["name"] instead, which is always provided (it contains
either email or cardholder name), or the explicit ` description`,
when provided.
2017-12-10 01:55:47 +01:00
Odoo Translation Bot f3623f1513 [I18N] Update translation terms from Transifex 2017-12-10 00:42:03 +01:00
Christophe Simonis 791e0cf47a [MERGE] forward port branch saas-14 up to 9bd8a49820 2017-12-08 16:18:44 +01:00
Christophe Simonis 9bd8a49820 [MERGE] forward port branch 10.0 up to 6b27d9f91a 2017-12-08 16:14:25 +01:00
Pierre Masereel 6b27d9f91a [FIX] point_of_sale: digits field doesn't exist on currency
As the field digit doesn't exist on currency, we use decimal_places
instead which is the field containing the number of digits of the
corresponding rounding field
2017-12-08 16:03:08 +01:00
tbe-odoo 3bc1e0175d [FIX] payment_stripe: Create proper customer description 2017-12-07 20:09:11 +01:00
Christophe Simonis 0fda9fba0b [MERGE] forward port branch 10.0 up to cd31e82689 2017-12-07 17:38:40 +01:00
Géry Debongnie 3b3f68030d [FIX] web: send proper context when fetching m2o namegets
When fetching batched namegets (typically after a default_get), we need
to evaluate the context that we send to the server.  This may be
important for models with a custom name_get method. (note: overriding
namegets should be avoided if possible)

With the new views refactoring, this was not done properly and the
'view' context was sent instead.  This is not really critical, the proof
is that it took a few months before getting some complaints, but this is
definitely a bug.

To reproduce, simply add a context attribute to a m2o field in a form
view, with a non empty value in a default get, and look at the context
sent to the server.
2017-12-07 16:20:46 +01:00
Nicolas Martinelli 02b9dbac32 [FIX] im_livechat: missing file
`$.position` is defiend in `jquery-ui.js`, which is not included in the
`external_loader` asset.

opw-783901
2017-12-07 15:14:04 +01:00
Cedric Snauwaert e193926db0 [FIX] account: add some reconciliation tests
To test use case introduce by: https://github.com/odoo/odoo/commit/2f3b469dee6f18cbccce1cdf2a81cfe57960c533

and fix introduce by: https://github.com/odoo/odoo/commit/3549688b21eb65e16b9c3f2b6462eb8d8b52cd47
2017-12-07 15:10:57 +01:00
Raphael Collet 0109c9e063 [FIX] mrp, stock: bad context/domain/attrs in views 2017-12-07 14:21:16 +01:00
Raphael Collet 7b3796d77c [FIX] ir_ui_view: validate contexts, domains and attrs in views
OPW 779494
2017-12-07 14:21:15 +01:00
Yannick Tivisse 0426ddcff4 [FIX] hr_payroll: Avoid using 'getattr' and 'setattr'
Purpose
=======

This is not necessary to only check if a field exists.
2017-12-07 13:14:54 +01:00
Can Tecim 88ccc40603 [CLA] Projet Grup signs the Corporate CLA
Done at #21443
2017-12-07 10:30:50 +01:00
Raphael Collet 598d54527a [FIX] base: do not unlink() to remove ir.property records (#21269)
Unlinking such a record causes a cache invalidation, that drops the values of
other company-dependent fields to set.  This may cause other company-dependent
fields to be set to their former value.

OPW 782080
2017-12-07 09:41:28 +01:00
Pedro M. Baeza cd31e82689 [FIX] account: Allow to duplicate supplier invoices
As there's a check for unique supplier reference numbers, you can't duplicate them as the field is copied on the duplicated record. This patch removes the copy for emptying the error.

@Tecnativa
2017-12-07 09:08:17 +01:00
Ivan Yelizariev 8a9900200b [REF] website_sale: remove obsolete optional_products variable
The variable is not used anymore.

This commit closes #21461
2017-12-06 20:24:46 +01:00
tbe-odoo 08682ec1d5 [FIX] website_payment: Show error box only when there is an error 2017-12-06 17:38:11 +01:00
Lucas Perais (lpe) bf119dcff6 [FIX] account: predicting receivable/payable on partner in tests
Before this commit, when a localization defined default payable or receivable
accounts on partners (like l10n_do does)
The reconciliation tests that involve an invoice on the one hand and a payment on the other hand
broke just because the accounts of the payment and the one of the invoice did not match

After this commit, we force the receivable or payable account to be the partner's (if available)
and the tests do not break
2017-12-06 17:18:45 +01:00
Richard Mathot f9a189e07e [FIX] hr_holidays: poorly designed demo data
If an user (or a developer) wants to install this module twice, she
could not before this patch. Because those demo data call a function
that crashes if the state of the demo data has been modified... and
modifies it!
We avoid this issue by resetting the states of the demo data
explicitely (before a deeper refactoring)
2017-12-06 17:00:25 +01:00
tbe-odoo d45f79e58f [IMP] payment_stripe: Add support of form tokenization
- Added support of form based payment with tokenization to be able to pay Subscriptions and save a payment token for later payments
2017-12-06 16:47:54 +01:00
auyeung112002 bde7030c59 [CLA] auyeung112002 signs the CLA
Backport of ecbf7aa471 to 10.0
Asked at #21284
2017-12-06 16:47:46 +01:00
Lucas Perais (lpe) fd560917ab [FIX] point_of_sale: sale details report correctly renders float
Before this commit, when printing all orders from the POS interface,
the ticket sometimes showed weird amounts (like 128.25000000001).

This was due to the usual problem of representing a float and has nothing to do with Odoo.

After this commit, the templates correctly display the amounts, rounded according to the currency
We do this by applying the relevant qweb widget (or calling the right format function in JS)

OPW 784626
2017-12-06 16:35:34 +01:00
William Henrotin 2b19d9e95d [IMP] mrp: filter on 'this month' missing
by default, the filter on activities for the current month must be set
in the Overall Equipment Effectiveness
2017-12-06 16:27:08 +01:00
Prakash Prajapati f74d557334 [IMP] mrp: improve report Overall equipment effectiveness. 2017-12-06 16:27:08 +01:00
Pedro M. Baeza f6321ab94c [FIX] hr_attendance: Make department related field readonly
Related fields that are not readonly are rewritten each time you save the
associated record, provoking performance problems.

Moreover, we don't want to allow an employee to change its department through
an attendance record.

Closes #21441
2017-12-06 16:25:41 +01:00
KomarovAlea 1f971ce252 [CLA] signature for KomarovAlea
Closes #21399
2017-12-06 16:13:08 +01:00
fda-odoo 411afe54be [IMP] website_rating_project: redesign project rating page
This commit improves and cleans the project rating page;
 - statistics of top 5 rated in last 15 days in right column of the page
 - move progress bar for tasks on right side of the page
 - show the detail of a rating when mouse hovering on the smiley

Since the page is refreshed, the statistics computation is done
with a single SQL request to extract all raw data to calculate
period and partner stats to display.

Thanks to @ror-odoo for the first implementation and to @jem-odoo for its review
2017-12-06 16:02:29 +01:00
Raphael Collet 6da1c3ac4c [FIX] fields: performance of convert_to_onchange on x2many fields
Suppose we convert a x2many field `foo_ids` with a many2one sub-field `bar_id`.
The conversion of the values of `bar_id` generates pairs `(id, name)`.  Before
this patch, the method `name_get` is invoked on every value, one by one.
Rewrite the code to ensure that `name_get()` is invoked on all values at once.
2017-12-06 15:56:25 +01:00
Graeme Gellatly a9a1895b31 [FIX] product: correct seller selection
Choose the date in the user's tz
Compare the quantities using float_compare to avoid rounding issues during UoM
conversions

Closes #21359
2017-12-06 15:54:24 +01:00
Graeme Gellatly b28393487c [CLA] signature for gdgellatly
Done at #21359
2017-12-06 15:54:23 +01:00
jat-odoo 0a90393da3 [FIX] web_editor: show proper video on existing video edition
See https://github.com/odoo/odoo/commit/5e38bef5a5ededb28707af44a19caaec2af2d682
and especially https://github.com/odoo/odoo/commit/45e0cd564afdae71e9525193250744e88076da71

Closes #19673
2017-12-06 15:16:46 +01:00
Lucas Perais (lpe) af8908b03c [FIX] stock: do not propagate date when negative delta
In Pick - Ship:
- validate a sale order which scheduled date is an hour in the future.
- validate the WH/PICK picking

Before this commit the WH/OUT picking 's scheduled date was set a day in the **past**

This was due to the implementation of datetime substraction and timedelta, which,
in case of a negative value, would take -1 day and some complementary values (hours, minutes etc...)
(the difference is complementary)

After this commit, the WH/OUT picking 's scheduled date stays what it was in that particular use case.

OPW 784452
2017-12-06 14:30:44 +01:00
Thibault Delavallée ebc4704b21 [FIX] test_mail: update counters
It seems query count oscillates between 45 and 46. I will have to check
but let us raise it a bit to avoid random red runbots.
2017-12-06 13:12:32 +01:00
Christophe Simonis 8ac9e3b667 [MERGE] forward port branch 11.0 up to acff087b01 2017-12-06 12:54:37 +01:00
Christophe Simonis acff087b01 [FIX] point_of_sale: use defined variable
Oversight of previous forward-port
2017-12-06 12:53:39 +01:00
dip-odoo 8eea65b61d [IMP] mail: add a 'Done & Schedule Next' button in activity wizard
Purpose
=======

Users often log an activity and want to schedule another one immediatly.

We should limit the number of clicks

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

- Mark as done should be a secondary button
- Add a new secondary button : DONE AND SCHEDULE NEXT
- It should mark the activity as done and close the modal
- It should open a new activity modal

Behavior and available options are now the same in the Chatter modal and
the wizard itself. It implies correcting the crm_tour flow
2017-12-06 12:40:41 +01:00
Nicolas Lempereur b1886ef60e [FIX] google_{account,calendar}: typo PY3 01e35141
When an error happen (which may have been intended as such and ignored
down the error pipeline) in google_account/google_calendar there was
some typos that tracebacked.

opw-783271
closes #21263
2017-12-06 12:40:41 +01:00
Christophe Simonis 8ef7af6afe [MERGE] forward port branch 11.0 up to f96a797fe6 2017-12-06 12:02:58 +01:00
Christophe Simonis f96a797fe6 [MERGE] forward port branch saas-16 up to b8540eefe3 2017-12-06 11:59:38 +01:00
Thibault Delavallée 010add2903 [FIX] test_(performance/mail): better use test_performance in test_mail and update counters
Containing

 * fix self._round not always existing;
 * fix counter for activity creation;
 * use self.str() in order to have some variation in test_mail;
 * separate base performance to mail feature specific performance tests;
2017-12-06 11:33:10 +01:00
Arnold Moyaux 3beffd3a34 [REF] hr_maintenance: rename to Maintenance - HR 2017-12-06 10:25:55 +01:00
Arnold Moyaux dfb50572eb [REF] maintenance: rename to maintenance 2017-12-06 10:25:55 +01:00
Arnold Moyaux 992b13e382 [IMP] mrp: kanban view, see working user
This commit add an icon for each people that worked on the Wo
and also
a play icon if the WO is in progress
a pause icon if the WO's workcenter is blocked.
2017-12-06 10:25:55 +01:00
amoyaux 2c0211f94d [REF] mrp: move step from quality_mrp to workorder 2017-12-06 10:25:55 +01:00
Nicolas Martinelli 9d0b4d0c2d [FIX] base: deactivate lang
- Install a new language
- Set it as default for several users
- Open the language and click on "Deactivate"

Traceback.

Fixes #21418
opw-786342
2017-12-06 10:20:35 +01:00