details:   https://code.tryton.org/tryton/commit/d88a5dbbe85e
branch:    7.8
user:      Cédric Krier <[email protected]>
date:      Thu Apr 16 22:48:34 2026 +0200
description:
        Only set the value on the current view of One2Many when the form set 
values

        If the current view is a form view, we need to ensure that the values 
are
        actually set for all the widgets.
        (grafted from c91abeb5bcc1bcb4d8c7c96b610fb142637661aa)
diffstat:

 sao/src/view/form.js                                         |  4 +---
 tryton/tryton/gui/window/view_form/view/form_gtk/one2many.py |  2 --
 2 files changed, 1 insertions(+), 5 deletions(-)

diffs (26 lines):

diff -r f8e83739f8d3 -r d88a5dbbe85e sao/src/view/form.js
--- a/sao/src/view/form.js      Thu Apr 16 22:45:15 2026 +0200
+++ b/sao/src/view/form.js      Thu Apr 16 22:48:34 2026 +0200
@@ -3970,9 +3970,7 @@
             return prm;
         },
         set_value: function() {
-            if (this.screen.modified()) {  // TODO check if required
-                this.view.screen.record_modified(false);
-            }
+            this.screen.current_view.set_value();
         },
         _update_completion: function(text) {
             if (!this.record) {
diff -r f8e83739f8d3 -r d88a5dbbe85e 
tryton/tryton/gui/window/view_form/view/form_gtk/one2many.py
--- a/tryton/tryton/gui/window/view_form/view/form_gtk/one2many.py      Thu Apr 
16 22:45:15 2026 +0200
+++ b/tryton/tryton/gui/window/view_form/view/form_gtk/one2many.py      Thu Apr 
16 22:48:34 2026 +0200
@@ -590,8 +590,6 @@
 
     def set_value(self):
         self.screen.current_view.set_value()
-        if self.screen.modified():  # TODO check if required
-            self.view.screen.record_modified(display=False)
         return True
 
     def _completion_match_selected(self, completion, model, iter_):

Reply via email to