merge
This commit is contained in:
commit
a2f82a87c9
2 files changed
+9
-1
No files matched your search
@@ -8,6 +8,7 @@ import collections
|
||||
import xml.dom.minidom
|
||||
import tryton.rpc as rpc
|
||||
from tryton.gui.window.view_form.model.group import Group
|
||||
from tryton.gui.window.view_form.model.record import Record
|
||||
from tryton.gui.window.view_form.view.screen_container import ScreenContainer
|
||||
from tryton.signal_event import SignalEvent
|
||||
from tryton.common import node_attributes
|
||||
@@ -606,7 +607,9 @@ class Screen(SignalEvent):
|
||||
if (not CONFIG['client.save_tree_expanded_state']
|
||||
or not view
|
||||
or view.view_type != 'tree'
|
||||
or not view.children_field):
|
||||
or not view.children_field
|
||||
or not (self.parent is None
|
||||
or isinstance(self.parent, Record))):
|
||||
return
|
||||
parent = self.parent.id if self.parent else None
|
||||
paths = view.get_expanded_paths()
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#this repository contains the full copyright notices and license terms.
|
||||
import gtk
|
||||
import gettext
|
||||
import tryton.common as common
|
||||
import tryton.rpc as rpc
|
||||
from tryton.gui.window.view_form.screen import Screen
|
||||
from tryton.config import TRYTON_ICON
|
||||
@@ -76,7 +77,11 @@ class WinSearch(NoModal):
|
||||
self.win.set_size_request(700, 500)
|
||||
|
||||
self.register()
|
||||
sensible_allocation = self.sensible_widget.get_allocation()
|
||||
self.win.set_default_size(int(sensible_allocation.width * 0.9),
|
||||
int(sensible_allocation.height * 0.9))
|
||||
self.win.show()
|
||||
common.center_window(self.win, self.parent, self.sensible_widget)
|
||||
|
||||
def sig_activate(self, *args):
|
||||
self.view.widget_tree.emit_stop_by_name('row_activated')
|
||||
|
||||
Reference in new issue
Block a user