diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-01-22 14:42:09 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-01-22 14:42:09 +0100 |
| commit | a3d3e5e7fe238bbfd27f2c7b65118d0981b4c61a (patch) | |
| tree | 1b4bfde15d12b051f1108dac794abde1ed41311d /addons/payment_authorize/models | |
| parent | 628406156ba280585ddb8b50e791d64ac672efa3 (diff) | |
| parent | 50d87ae81b09fe9f621893eee8ccde4367e46c79 (diff) | |
[MERGE] forward port branch saas-15 up to 50d87ae81b0
Diffstat (limited to 'addons/payment_authorize/models')
| -rw-r--r-- | addons/payment_authorize/models/payment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment_authorize/models/payment.py b/addons/payment_authorize/models/payment.py index de9c74ae294..ab9eeee5940 100644 --- a/addons/payment_authorize/models/payment.py +++ b/addons/payment_authorize/models/payment.py @@ -126,7 +126,7 @@ class PaymentAcquirerAuthorize(models.Model): for field_name in mandatory_fields: if not data.get(field_name): error[field_name] = 'missing' - if data['cc_expiry'] and datetime.now().strftime('%y%M') > datetime.strptime(data['cc_expiry'], '%M / %y').strftime('%y%M'): + if data['cc_expiry'] and datetime.now().strftime('%y%m') > datetime.strptime(data['cc_expiry'], '%m / %y').strftime('%y%m'): return False return False if error else True |
