details: https://code.tryton.org/tryton/commit/3739026c24d3
branch: 7.0
user: Nicolas Évrard <[email protected]>
date: Tue Apr 07 18:54:39 2026 +0200
description:
Remove the implicit undefined return when computing the fields to update
Closes #14751
(grafted from 0c5f6bfcd70da379ffea74f44ceaa84ccc97f103)
diffstat:
sao/src/model.js | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diffs (15 lines):
diff -r 6e2531b54a64 -r 3739026c24d3 sao/src/model.js
--- a/sao/src/model.js Thu Apr 02 19:24:07 2026 +0200
+++ b/sao/src/model.js Tue Apr 07 18:54:39 2026 +0200
@@ -2514,10 +2514,7 @@
if (record2) {
let to_update = Object.fromEntries(
Object.entries(vals).filter(
- ([k, v]) => {
- !Object.prototype.hasOwnProperty.call(
- vals_to_set, k)
- }
+ ([k, v]) => !Object.hasOwn(vals_to_set, k)
));
record2.set_on_change(to_update);
}