details:   https://code.tryton.org/tryton/commit/78033527cc84
branch:    7.6
user:      Cédric Krier <[email protected]>
date:      Thu Dec 18 00:45:20 2025 +0100
description:
        Hide chat when changing current record without chat
        (grafted from 6a0e72ef3b33d6221601d0806200deeb0aba2521)
diffstat:

 sao/src/tab.js                   |  1 +
 tryton/tryton/gui/window/form.py |  2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diffs (23 lines):

diff -r f7114021f9bb -r 78033527cc84 sao/src/tab.js
--- a/sao/src/tab.js    Thu Dec 18 00:39:38 2025 +0100
+++ b/sao/src/tab.js    Thu Dec 18 00:45:20 2025 +0100
@@ -1601,6 +1601,7 @@
                     this._chat.refresh();
                     this.sidebar_content.append(this._chat.el);
                 }
+                this.update_sidebar();
             }
         },
         record_modified: function() {
diff -r f7114021f9bb -r 78033527cc84 tryton/tryton/gui/window/form.py
--- a/tryton/tryton/gui/window/form.py  Thu Dec 18 00:39:38 2025 +0100
+++ b/tryton/tryton/gui/window/form.py  Thu Dec 18 00:45:20 2025 +0100
@@ -656,6 +656,8 @@
                 self.chat.add(self._chat.widget)
                 self.chat.show_all()
                 self._chat.refresh()
+            else:
+                self.buttons['chat'].set_active(False)
 
     def record_modified(self):
         def _record_modified():

Reply via email to