diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-01-22 16:38:01 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-01-22 16:38:01 +0100 |
| commit | 950d9b2369046f2e3199d144df8edbd0e63f8a2f (patch) | |
| tree | bef25949654cb8832d646e12e1eafd5450e6f744 /addons/payment_authorize/models/payment.py | |
| parent | 8b5440c2b4515dc45af2b0ef38e4081c33036643 (diff) | |
| parent | dfe7f00e781503b01ec2b68df90a3f19c0060933 (diff) | |
[MERGE] forward port branch saas-16 up to dfe7f00e781
Diffstat (limited to 'addons/payment_authorize/models/payment.py')
| -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 ad792a08987..fa03c88b3a6 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 |
