summaryrefslogtreecommitdiff
path: root/addons/payment_authorize/models/payment.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-01-22 16:38:01 +0100
committerChristophe Simonis <chs@odoo.com>2018-01-22 16:38:01 +0100
commit950d9b2369046f2e3199d144df8edbd0e63f8a2f (patch)
treebef25949654cb8832d646e12e1eafd5450e6f744 /addons/payment_authorize/models/payment.py
parent8b5440c2b4515dc45af2b0ef38e4081c33036643 (diff)
parentdfe7f00e781503b01ec2b68df90a3f19c0060933 (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.py2
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