Thibault Delavallée
c6f9109d4e
[FIX] payment_ogone: do not crash if you can't process tx
...
Due to unexisting variable the method s2s/create controller was crashing
instead of returning an error when it did not successfully create
a token.
2017-07-28 13:51:51 +02:00
tbe-odoo
7d428c871b
[IMP] payment, website_payment: generic mechanism to verify payment tokens on registration
...
When registering a payment token, validating it using a payment of a small amount followed by a refund
allows ensuring that the method is valid (i.e. checksumming the card number simple ensure the number
is valid but not that the card exists). This commit introduces a generic approach that must be implemented
for each acquirer that has tokenization support. This commit also introduces a generic payment token registration/usage template that can be adapted according to one's need.
payment_ogone: add support for tokens validation
2017-07-14 11:57:19 +02:00
Xavier Morel
01e3514147
[FIX] P3: urllib, urllib2 and urlparse
...
In Python 3, all of these were "consolidated" under urllib(.request,
.parse, .errors) which is inconvenient.
Since we already have hard dependencies on requests and
werkzeug(.urls, which is a backport of Python 3's unicode-aware
urllib.parse) migrate *everything* to that.
A sticking point is urllib2.URLError, those were (mostly) replaced by
the slightly more general IOError which URLError extends.
2017-05-15 12:26:30 +02:00
Xavier Morel
07ab8b6cd2
[FIX] P3: Exception.message removed
2017-05-12 16:15:40 +02:00
xmo-odoo
fffaf735f5
[FIX] P3: list -> iterable builtins ( #16811 )
...
In Python 3:
* various builtins and dict methods were changed to return
view/iterable objects rather than lists
* and the separate Python 2 view/iterable builtins and methods were
removed altogether
This is problematic when using these items as list (which the happens
repeatedly in Odoo), but more viciously when iterating *multiple times*
over them (which also happens, which I've messed up multiple times while
writing this, and which is a pain to debug even when you've just created
the issue).
Convert all code using these to semantics-matching cross-version
helper functions to get the LCD behaviour between P2 and P3, and
forbid the builtins via lint.
issue #8530
2017-05-10 09:39:55 +02:00
xmo-odoo
b4429c2a91
[FIX] Various P3-related import changes
...
* LDAP import: python-ldap is not python3-compatible, pyldap is
Warning: only supported from debian Stretch (current testing)?
https://packages.debian.org/search?searchon=names&keywords=pyldap
* implicitly relative imports
* imports of moved or removed stdlib modules
issue #8530
2017-04-28 09:06:53 +02:00
Christophe Simonis
f9897492e1
[FIX] payment_ogone: ogone expect the amount to be an integer
...
Oversight of python3 compat changes made at 2e6a589f41
2017-04-27 14:35:01 +02:00
xmo-odoo
2e6a589f41
[FIX] builtins removed from Python 3
...
* Reverse wrapper courtesy of @rco-odoo's original P3 branch
* thin compat module stripped down from werkzeug (to augment as needed)
issue 8530
2017-04-27 13:59:33 +02:00
Xavier Morel
3979f6802e
[ #8530 ] convert exception handlers to except..as syntax
...
Futurize fixers:
* lib2to3.fixes.fix_except
2017-04-11 14:53:29 +02:00
Christophe Simonis
65a5ced979
[MERGE] forward port branch saas-14 up to 777a87cde8
2017-03-13 17:37:20 +01:00
Odoo Translation Bot
a4e88793ea
[I18N] Update translation terms from Transifex
2017-03-08 16:37:08 +01:00
Christophe Simonis
68176d80ad
[MERGE] forward port branch saas-14 up to eddefc9948
2017-03-01 16:49:15 +01:00
Martin Trigaux
9a0aaa9e88
[I18N] export saas-14 source terms
2017-02-15 11:40:28 +01:00
Thibault Delavallée
cf1df16aea
[IMP] payment_*, website_quote: change callback_eval string to parameters
...
callback_eval is currently a code string that is evaluated directly
at payment confirmation. This commit changes it to have parameters
on the record and method to call on it. Moreover a hash done once at
transaction creation ensure that a modified transaction does not allow
to execute code on other records.
2017-02-13 16:58:47 +01:00
Raphael Collet
d0ca2d115e
[REF] ir_config_parameter: remove group_ids and simplify
...
Add `sudo()` to call `get_param` where necessary, and make the web client use a
controller instead of directly accessing parameters.
2017-01-03 16:52:49 +01:00
Martin Trigaux
19fce206ac
[I18N] port of 44a6366b to master
2017-01-03 16:39:22 +01:00
Christophe Simonis
b3a1109372
[MERGE] forward port branch 10.0 up to c08a590bb1
2017-01-02 15:31:58 +01:00
Damien Bouvy
d3538dbe47
[FIX] payment_ogone: migration error
...
Only happens if Ogone answers with "wait", which explains why it
took so long to happen.
2017-01-02 11:11:49 +01:00
Odoo Translation Bot
b21d1ae98e
[I18N] Update translation terms from Transifex
2016-12-25 04:42:15 +01:00
Odoo Translation Bot
5c4316a864
[I18N] Update translation terms from Transifex
2016-12-18 03:43:02 +01:00
Odoo Translation Bot
f5adc1ade0
[I18N] Update translation terms from Transifex
2016-12-11 03:43:27 +01:00
Moisés López
44a6366ba4
[REM] all: Remove es_MX.po files
...
- Previous information:
- `es_MX` language is not published to [transifex](https://www.transifex.com/odoo/odoo-10/languages/ ) this is a official announce from thread [Regional languages and Spanish (Latin America) translations](https://www.odoo.com/es_ES/groups/community-translators-63/community-translators-20325962?mode=thread&date_begin=&date_end= ) by @mart-e
- Currently we have the files `es_MX.po` with terms translations outdated or wrong translation.
- [Example wrong translation es_MX.po](https://github.com/odoo/odoo/blob/8de795291/addons/account/i18n/es_MX.po#L7788 ) should be [es.po correct translation](https://github.com/odoo/odoo/blob/8de795291/addons/account/i18n/es.po#L7975 )
- Now to change a `es_MX.po` a PR is required.
- `es.po` terms translations and the most terms are fine for México too. (Not regional translation is required for most cases)
Then our regional translation process should be:
| step | If accepted | If not accepted |
|------|-----|-------|
| Create a proposal to original language `es.po` from transifex | good and finish! | Create a new PR to odoo/odoo adding just that special term to `es_MX.PO` |
This PR reset the `es_MX.po` terms in order to fix many wrong terms using the good `es.po`.
Closes #14555
2016-12-05 09:11:13 +01:00
Odoo Translation Bot
260a3da768
[I18N] Update translation terms from Transifex
2016-12-04 03:44:39 +01:00
Christophe Simonis
0b846861b6
[MERGE] forward port branch 10.0 up to 5dc1c57
2016-12-01 17:05:08 +01:00
Christophe Simonis
440c8cc7c9
[FIX] payment_ogone: process s2s requests as sudo
2016-11-24 16:42:43 +01:00
Damien Bouvy
3321d9c1ca
[FIX] payment_ogone: serialize correctly & validate with sudo
2016-11-23 14:59:52 +01:00
Odoo Translation Bot
9ab572fa4c
[I18N] Update translation terms from Transifex
2016-11-23 13:50:32 +01:00
Odoo Translation Bot
bad26aae2e
[I18N] Update translation terms from Transifex
2016-11-20 03:37:19 +01:00
Odoo Translation Bot
9da2f44587
[I18N] Update translation terms from Transifex
2016-11-06 03:41:11 +01:00
Odoo Translation Bot
9d243ae9ea
[I18N] Update translation terms from Transifex
2016-10-30 03:37:27 +01:00
Odoo Translation Bot
a40c3bf792
[I18N] Update translation terms from Transifex
2016-10-18 11:50:34 +02:00
Christophe Simonis
63c7517126
[MERGE] forward port branch saas-13 up to 25f271c
2016-09-14 13:00:33 +02:00
Christophe Simonis
298e2032ea
[MERGE] forward port branch saas-12 up to 9f28139
2016-09-09 18:13:31 +02:00
Christophe Simonis
7a02b90e17
[MERGE] forward port branch saas-11 up to dc4d6b6
2016-09-09 15:43:06 +02:00
Christophe Simonis
dc4d6b6a7a
[MERGE] forward port branch saas-10 up to e1bd405
2016-09-09 15:14:39 +02:00
Christophe Simonis
e1bd405d8c
[MERGE] forward port branch 9.0 up to af87c57
2016-09-09 11:49:48 +02:00
Christophe Simonis
af87c57e51
[MERGE] forward port branch saas-6 up to f98665f
2016-09-09 11:26:15 +02:00
Christophe Simonis
f98665f9b6
[MERGE] forward port branch 8.0 up to b17b2a2
2016-09-09 10:52:34 +02:00
Martin Trigaux
fb74fec3f5
[I18N] export 10.0 source terms
2016-09-07 11:08:42 +02:00
Martin Trigaux
05d91ea4e9
[I18N] update saas-11 translations by merging 9.0 and master
...
Without fuzzy-matching that is too flexible and error prone.
Was matching on wrong source and got translation without '%s'
2016-09-07 09:40:37 +02:00
Ravi Gohil
b226510840
[IMP] payment_*: avoid access error on provider model
...
As provider model is intended to be used internally restricting the read of
some private fields to the employee group avoid creating access issues.
2016-09-06 10:20:41 +02:00
Martin Trigaux
6e61ea2256
[I18N] update saas-12 translations by merging 9.0 and master
...
Without fuzzy-matching that is too flexible and error prone.
Was matching on wrong source and got translation without '%s'
2016-09-06 10:03:09 +02:00
Martin Trigaux
e37d0909a2
[I18N] export master source terms
...
Since the externalidpocalypse
2016-09-05 16:33:43 +02:00
Olivier Dony
859d443863
[IMP] *: rename manifest files for v10 naming convention
2016-09-05 11:57:50 +02:00
Martin Trigaux
3efa9d39c6
[I18N] Update translation terms from Transifex
2016-09-05 11:34:17 +02:00
Denis Vermylen (dve)
ac442a3f08
[IMP] payment_ogone: change outdated logo
2016-09-02 17:42:43 +02:00
Raphael Collet
0783318f97
[FIX] adapt logger names
2016-09-02 17:28:13 +02:00
Damien Bouvy
ffd527d027
[IMP] payment, payment_*: add/improve tokenization support
...
This commit improves the tokenization process, allowing users
to set the acquirer to save payment data never, always or letting
the customer decide (only implemented in ecommerce for now).
Support for tokenization is improved for Ogone and Authorize.net
This commits also factorizes advanced payment features support
(authorization, tokenization, fees computation) in a generic method
overriden by every provider to specifiy which features are supported.
This process can be used in views to hide/show fields depending on
feature support or in constraint checks.
2016-09-01 15:58:41 +02:00
Denis Vermylen (dve)
c255342e8f
[IMP] payment_*: change payment icon
...
take the payment icon from the acquirer image field, instead of a static
unchangeable icon. Change the acquirer image on all acquirers data.
2016-08-31 17:17:38 +02:00
Jeremy Kersten
6f03ab45a8
[IMP] website_sale: allow to use payment.token to pay on eCommerce
...
This commit add as (sub) payment method all (owns) tokens from this acquirer.
Tested with Ogone with success
2016-08-30 17:50:44 +02:00