summaryrefslogtreecommitdiff
path: root/addons/payment_authorize/models
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-01-22 14:42:09 +0100
committerChristophe Simonis <chs@odoo.com>2018-01-22 14:42:09 +0100
commita3d3e5e7fe238bbfd27f2c7b65118d0981b4c61a (patch)
tree1b4bfde15d12b051f1108dac794abde1ed41311d /addons/payment_authorize/models
parent628406156ba280585ddb8b50e791d64ac672efa3 (diff)
parent50d87ae81b09fe9f621893eee8ccde4367e46c79 (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.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 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