From 2636c2ea5beedf910bc0f80132156a0abd91290e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Wed, 11 Jun 2014 16:47:13 +0200 Subject: [PATCH] Quote doublequote characters when copying records to clipboard issue3972 review6341002 --- tryton/gui/window/view_form/view/list.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/list.py b/tryton/gui/window/view_form/view/list.py index e4669fc16c..27477dc4ee 100644 --- a/tryton/gui/window/view_form/view/list.py +++ b/tryton/gui/window/view_form/view/list.py @@ -688,7 +688,9 @@ class ViewTree(View): if not col.get_visible() or not col.name: continue widget = self.treeview.widgets[col.name] - values.append('"' + str(widget.get_textual_value(record)) + '"') + values.append('"' + + str(widget.get_textual_value(record)).replace('"', '""') + + '"') data.append('\t'.join(values)) return