-
-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by chienandalu
- Loading branch information
Showing
4 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
* Emanuel Cino <ecino@compassion.ch> | ||
* Juan Carlos Bonilla Bravo <juancarlos.bonilla@factorlibre.com> |
16 changes: 16 additions & 0 deletions
16
pos_partner_birthdate/static/src/js/ClientDetailsEdit.esm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** @odoo-module **/ | ||
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, | ||
birthdate_date: this.props.partner.birthdate_date || null, | ||
}; | ||
} | ||
}; | ||
|
||
Registries.Component.extend(PartnerDetailsEdit, PartnerDetailsEditBirthdate); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters