details: https://code.tryton.org/tryton/commit/5115e32ad9e4
branch: 7.0
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 04b97e05a510 -r 5115e32ad9e4 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
@@ -3756,9 +3756,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 04b97e05a510 -r 5115e32ad9e4
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
@@ -558,8 +558,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_):