I am trying to add a custom date input field to the Extra Info section on the eCommerce Website. I have the code below for a new module (the code in the view I copied from a date field using the Form Builder). It keeps giving me the error:
ValueError: time data '19/05/2022' does not match format '%Y-%m-%d'
when I submit the Extra Info page. If I remove the datepicker from the input field and enter it in manually in the %Y-%m-%d format (eg 2021-02-19) it works...How can I get the datepicker and input field working....I do not want to use type='date' due to browser compatibility issues.
Model
Views
Follow up debugging:
The Extra Info Next button calls the /website_form/shop.sale.order route in website_sale. It is failing at the:
order.write(data['record']) line
where data['record'] = {'x_website_delivery_date': '20/04/2021'}