details:   https://code.tryton.org/tryton/commit/0c5f6bfcd70d
branch:    default
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
diffstat:

 sao/src/model.js |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (15 lines):

diff -r 76fd590bfdaa -r 0c5f6bfcd70d sao/src/model.js
--- a/sao/src/model.js  Tue Apr 07 13:39:54 2026 +0200
+++ b/sao/src/model.js  Tue Apr 07 18:54:39 2026 +0200
@@ -2573,10 +2573,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);
                         }

Reply via email to