Commit Graph
117156 Commits
Author SHA1 Message Date
Pierre Masereel 63b4e2342e [REF] stock: change icon of packages statbuttons 2017-12-11 13:40:47 +01:00
Nicolas Martinelli 4732a16dd1 [FIX] account, project, sale: do not display 'View' button
When adding a partner (without any backend or portal access) as a
follower of an invoice, project, task or SO, the mail received contains
a 'View ...' button. When clicked, it redirects to the login page.

In the case of projects and tasks, no `auth_token` exist, so the user
faces an access error in the backend. For the other objects, it
redirects normally to a frontend page.

This feature is not yet complete in v11. So simply hide the button until
this is properly developed in master.

opw-785824
2017-12-11 12:50:20 +01:00
Xavier Morel 9ad6458241 [FIX] website_twitter: finish P3 migration
I clearly missed some bits in 01e3514147
as _get_access_token was still using urllib.Request despite that
import having been removed.

Fix it up by properly converting it to requests.

Fixes #21544
2017-12-11 11:51:17 +01:00
Adrian Torres b7ce07ad2a [FIX] website, mass_mailing: same field defined twice (#21503)
The ORM does not currently, an probably won't support two fields with
the same name in different modules that do not depend on each other.

This is obviously a nasty hack, but it's the best one can do for a
stable branch.

THIS IS WHY WE HAVE DEPENDENCY MODULES, PEOPLE.
2017-12-11 10:43:48 +00:00
Romain Derie a1c5af2556 [FIX] website_sale_stock: unicode as uom name will throw encode error
Before this commit, if you had an uom with an unicode character as name, it
would throws an UnicodeEncodeError.

Now, since the str() parsing is not needed, removing it fixes the issue

This closes #20325
This closes #21374
2017-12-11 11:24:45 +01:00
Arnold Moyaux 6d02f7d6bf [FIX] purchase: Only use purchase UOM on vendor bill
It was the purpose of this commit fea667a243
However it uses purchase uom in any cases and not
only vendor bill.

This commit correct it by using it only if a purchase
order is linked to the invoice.
2017-12-11 11:24:33 +01:00
Andrea d062e39b1c [REM] hr_timesheet_attendance: remove leftover files
Delete not inmported files. Those are leftover of
removal of hr_timesheet_sheet from
2e251f7599
2017-12-11 11:18:13 +01:00
Adrien Dieudonne 35c4057422 [FIX] web: FieldMany2One: don't re-render if dirty
The 'main_flow_tour' noticed an error that we
had already corrected for the input fields.
See here: @a71f2237

In fact the same error can occur in the many2one fields
for the exact same reason.
It's why the 'main_flow_tour' crashed at the following step:
".ui-menu-item > a:contains('the_flow.customer')"
2017-12-11 10:17:15 +01:00
Alexandre Kühn 515a5ed900 [FIX] web: correct comments translatable field css
Due to mis-use of comments with //, the css style was skipped.
The correct way of commenting css is with /* */.
2017-12-11 10:11:04 +01:00
Abdulmomen Kadum عبدالمؤمن كاظم 15026b8a86 [FIX] base: import translation file
Correctly open file

Closes #21064
2017-12-11 10:09:17 +01:00
Abdulmomen Kadum عبدالمؤمن كاظم e521f43256 [CLA] signature for bluemix
Done at #21545
2017-12-11 10:07:15 +01:00
Alexandre Kühn 3eb1dd97c4 [FIX] web: translatable field button over input
Before this fix, when editing a translatable input field,
the translate button becomes unclickable if the input text
is to long.

With this fix, the translate button is always on top of the input text.

opw-777914
2017-12-11 10:01:25 +01:00
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
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
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
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
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
Christophe Simonis acff087b01 [FIX] point_of_sale: use defined variable
Oversight of previous forward-port
2017-12-06 12:53:39 +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 f96a797fe6 [MERGE] forward port branch saas-16 up to b8540eefe3 2017-12-06 11:59:38 +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
Nicolas Martinelli d81000d0a6 [FIX] point_of_sale: virtual keyboard
Several issues arise with the virtual keyboard.

Issue 1
- Go in client list
- Go back to product list

The keyboard is still connected to the client search field.

Issue 2
- Go in client list
- Add a new client
- Click on any field

The keyboard is still connected to the client search field, it's
impossible to fill in any client data.

opw-784613
2017-12-06 08:12:04 +01:00
qsm-odoo dc5755698c [FIX] web: restore saas modals
This commit basically reverts 4974f8edb7
The fix was unstable (as restoring a feature that was not there
before release, even if originally merged before). This was in
particular breaking saas modals as lots of them are still opened
using 8.0 system... and opening them this way might make them appear
below their own backdrop in the new system the mentioned commit
restored.

We will think about that feature again for a future version.
2017-12-05 18:45:58 +01:00