diff --git a/pos_partner_birthdate/static/src/js/ClientDetailsEdit.esm.js b/pos_partner_birthdate/static/src/js/ClientDetailsEdit.esm.js index d64c1f9f13..df4b59d1e0 100644 --- a/pos_partner_birthdate/static/src/js/ClientDetailsEdit.esm.js +++ b/pos_partner_birthdate/static/src/js/ClientDetailsEdit.esm.js @@ -1,4 +1,5 @@ /** @odoo-module **/ +const {useState} = owl; import PartnerDetailsEdit from "point_of_sale.PartnerDetailsEdit"; import Registries from "point_of_sale.Registries"; @@ -6,10 +7,10 @@ const PartnerDetailsEditBirthdate = (OriginalPartnerDetailsEdit) => class extends OriginalPartnerDetailsEdit { setup() { super.setup(); - this.changes = { + this.changes = useState({ ...this.changes, birthdate_date: this.props.partner.birthdate_date || null, - }; + }); } };