-
- Downloads
[FIX] payment: force CardExpiry year to 2 digits
Description of the issue/feature this PR addresses: In odoo payment the cc_expiry.maxlength is limited to 7 characters https://github.com/odoo/odoo/blob/75785db4c8d0c0be9fb7b8dfc2cd7b8209181c21/addons/payment_test/views/payment_test_templates.xml#L19 https://github.com/odoo/odoo/blob/75785db4c8d0c0be9fb7b8dfc2cd7b8209181c21/addons/payment_ingenico/views/payment_ingenico_templates.xml#L54 Current behavior before PR: But your [$.payment.formatExpiry](https://github.com/odoo/odoo/blob/14.0/addons/payment/static/lib/jquery.payment/jquery.payment.js#L629) can return 9 characters  We can see in when the user use autofill https://user-images.githubusercontent.com/35231827/157748925-1778e71d-28a6-4ed5-82ac-989d4e503a24.mp4 Desired behavior after PR is merged: https://user-images.githubusercontent.com/35231827/157748644-fd530ded-a13f-473d-8410-09eca4c8c961.mp4 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#86226 Signed-off-by:Antoine Vandevenne (anv) <anv@odoo.com>
Please register or sign in to comment