Skip to content

Commit

Permalink
algorithmic change to update name field
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianMAG committed Jan 8, 2024
1 parent fcecec8 commit cb2065e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions pos_partner_firstname/static/src/js/PartnerDetailsEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,11 @@ odoo.define("pos_partner_firstname.PartnerDetailsEdit", function (require) {
title: _t("Both Customer First and Last Name Are Required"),
});
}
if (
(!this.props.partner.name && !processedChanges.name) ||
processedChanges.name === ""
) {
this.props.partner.name = this._update_partner_name(
processedChanges.lastname,
processedChanges.firstname
);
}
this.changes.name = this._update_partner_name(
processedChanges.lastname,
processedChanges.firstname
);
processedChanges.name = this.changes.name;
} else if (checked) {
this.changes.lastname = this.changes.firstname = undefined;
}
Expand Down

0 comments on commit cb2065e

Please sign in to comment.