changeset 1dbebb8968dd in tryton:5.6
details: https://hg.tryton.org/tryton?cmd=changeset;node=1dbebb8968dd
description:
Display the full path of select fields to export
issue9595
review323971003
(grafted from 5a27773085271ff2293e8ade9d87177fbecd5eb8)
diffstat:
tryton/gui/window/win_export.py | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (42 lines):
diff -r 75ff176876c4 -r 1dbebb8968dd tryton/gui/window/win_export.py
--- a/tryton/gui/window/win_export.py Tue Sep 22 10:18:39 2020 +0200
+++ b/tryton/gui/window/win_export.py Thu Sep 24 22:43:50 2020 +0200
@@ -154,14 +154,11 @@
for name, field, string_ in items:
path = prefix_field + name
- long_string = string_
- if prefix_field:
- long_string = prefix_name + string_
node = self.model1.insert(parent_node, 0,
[string_, path])
+ string_ = prefix_name + string_
- self.fields[path] = (string_, long_string,
- field.get('relation'))
+ self.fields[path] = (string_, field.get('relation'))
# Insert relation only to real field
if '.' not in name:
if field.get('relation'):
@@ -178,7 +175,7 @@
child = self.model1.iter_children(iter)
if self.model1.get_value(child, 0) is None:
prefix_field = self.model1.get_value(iter, 1)
- string_, long_string, relation = self.fields[prefix_field]
+ string_, relation = self.fields[prefix_field]
self.model_populate(self._get_fields(relation), iter,
prefix_field + '/', string_ + '/')
self.model1.remove(child)
@@ -306,10 +303,10 @@
self.sel_field(name)
def sel_field(self, name):
- _, long_string, relation = self.fields[name]
+ string_, relation = self.fields[name]
if relation:
name += '/rec_name'
- self.model2.append((long_string, name))
+ self.model2.append((string_, name))
def response(self, dialog, response):
if response == Gtk.ResponseType.OK: