From 87c144b3c798ec355c8a08f533a86991a780b93a Mon Sep 17 00:00:00 2001 From: Imbar Budiman Date: Thu, 2 Nov 2023 13:58:18 +0700 Subject: [PATCH] [16.0][FIX] pos_partner_birthdate: fixing this.changes when add birthdate_date use useState --- pos_partner_birthdate/static/src/js/ClientDetailsEdit.esm.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, - }; + }); } };