Skip to content

Commit

Permalink
[16.0][FIX] pos_partner_birthdate: fixing this.changes when add birth…
Browse files Browse the repository at this point in the history
…date_date

use useState
  • Loading branch information
imbarbudiman committed Nov 2, 2023
1 parent 5cd4b1c commit 87c144b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pos_partner_birthdate/static/src/js/ClientDetailsEdit.esm.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
/** @odoo-module **/
const {useState} = owl;
import PartnerDetailsEdit from "point_of_sale.PartnerDetailsEdit";
import Registries from "point_of_sale.Registries";

const PartnerDetailsEditBirthdate = (OriginalPartnerDetailsEdit) =>
class extends OriginalPartnerDetailsEdit {
setup() {
super.setup();
this.changes = {
this.changes = useState({
...this.changes,
birthdate_date: this.props.partner.birthdate_date || null,
};
});
}
};

Expand Down

0 comments on commit 87c144b

Please sign in to comment.