details:   https://code.tryton.org/tryton/commit/6a0e72ef3b33
branch:    default
user:      Cédric Krier <[email protected]>
date:      Thu Dec 18 00:45:20 2025 +0100
description:
        Hide chat when changing current record without chat
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 6715ccac77ff -r 6a0e72ef3b33 sao/src/tab.js
--- a/sao/src/tab.js    Thu Dec 18 00:44:36 2025 +0100
+++ b/sao/src/tab.js    Thu Dec 18 00:45:20 2025 +0100
@@ -1606,6 +1606,7 @@
                     this._chat.refresh();
                     this.sidebar_content.append(this._chat.el);
                 }
+                this.update_sidebar();
             }
         },
         record_modified: function() {
diff -r 6715ccac77ff -r 6a0e72ef3b33 tryton/tryton/gui/window/form.py
--- a/tryton/tryton/gui/window/form.py  Thu Dec 18 00:44:36 2025 +0100
+++ b/tryton/tryton/gui/window/form.py  Thu Dec 18 00:45:20 2025 +0100
@@ -658,6 +658,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