[tryton-debian-vcs] tryton-client branch debian updated. debian/4.0.1-1-3-g0c96c09
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Tue Jul 12 13:02:12 UTC 2016
The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-client.git;a=commitdiff;h=debian/4.0.1-1-3-g0c96c09
commit 0c96c0980a7e91629b2ae57177ac88a99b8a4e67
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Mon Jul 11 19:30:26 2016 +0200
Releasing debian version 4.0.2-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index 5da8af1..c2ab1d5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+tryton-client (4.0.2-1) unstable; urgency=medium
+
+ * Updating to Standards-Version: 3.9.8, no changes needed.
+ * Merging upstream version 4.0.2.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Mon, 11 Jul 2016 19:30:26 +0200
+
tryton-client (4.0.1-1) unstable; urgency=medium
* Merging upstream version 4.0.0.
commit b8ba3dc7d1a5e7b8d362f111a9d163e64e11c90f
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Mon Jul 11 19:30:26 2016 +0200
Merging upstream version 4.0.2.
diff --git a/CHANGELOG b/CHANGELOG
index e9a945a..3976d97 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.0.2 - 2016-07-04
+* Bug fixes (see mercurial logs for details)
+
Version 4.0.1 - 2016-05-11
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index e87458a..85eefea 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: tryton
-Version: 4.0.1
+Version: 4.0.2
Summary: Tryton client
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/tryton.egg-info/PKG-INFO b/tryton.egg-info/PKG-INFO
index e87458a..85eefea 100644
--- a/tryton.egg-info/PKG-INFO
+++ b/tryton.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: tryton
-Version: 4.0.1
+Version: 4.0.2
Summary: Tryton client
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/tryton/__init__.py b/tryton/__init__.py
index 037c985..278a8a0 100644
--- a/tryton/__init__.py
+++ b/tryton/__init__.py
@@ -1,3 +1,3 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
-__version__ = "4.0.1"
+__version__ = "4.0.2"
diff --git a/tryton/common/domain_parser.py b/tryton/common/domain_parser.py
index 03a754e..2e2208e 100644
--- a/tryton/common/domain_parser.py
+++ b/tryton/common/domain_parser.py
@@ -1025,6 +1025,8 @@ class DomainParser(object):
operator = None
name = value
value = ''
+ if not name:
+ name = ''
if (name.lower() not in self.strings
and name not in self.fields):
for field in self.strings.itervalues():
@@ -1455,3 +1457,18 @@ def test_parse_clause():
assert rlist(dom.parse_clause([('Many2One', None, ['John', 'Jane'])])) == [
('many2one.rec_name', 'in', ['John', 'Jane']),
]
+
+
+def test_completion():
+ dom = DomainParser({
+ 'name': {
+ 'string': 'Name',
+ 'name': 'name',
+ 'type': 'char',
+ },
+ })
+ assert list(dom.completion(u'Nam')) == ['Name: ']
+ assert list(dom.completion(u'Name:')) == ['Name: ']
+ assert list(dom.completion(u'Name: foo')) == []
+ assert list(dom.completion(u'Name: !=')) == []
+ assert list(dom.completion(u'Name: !=foo')) == []
diff --git a/tryton/data/locale/bg_BG/LC_MESSAGES/tryton.mo b/tryton/data/locale/bg_BG/LC_MESSAGES/tryton.mo
index d7cc319..89e1486 100644
Binary files a/tryton/data/locale/bg_BG/LC_MESSAGES/tryton.mo and b/tryton/data/locale/bg_BG/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/ca_ES/LC_MESSAGES/tryton.mo b/tryton/data/locale/ca_ES/LC_MESSAGES/tryton.mo
index 858d826..c96769c 100644
Binary files a/tryton/data/locale/ca_ES/LC_MESSAGES/tryton.mo and b/tryton/data/locale/ca_ES/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/cs_CZ/LC_MESSAGES/tryton.mo b/tryton/data/locale/cs_CZ/LC_MESSAGES/tryton.mo
index ce252db..bf283da 100644
Binary files a/tryton/data/locale/cs_CZ/LC_MESSAGES/tryton.mo and b/tryton/data/locale/cs_CZ/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/de_DE/LC_MESSAGES/tryton.mo b/tryton/data/locale/de_DE/LC_MESSAGES/tryton.mo
index ff719f0..0cc2fc9 100644
Binary files a/tryton/data/locale/de_DE/LC_MESSAGES/tryton.mo and b/tryton/data/locale/de_DE/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/es_AR/LC_MESSAGES/tryton.mo b/tryton/data/locale/es_AR/LC_MESSAGES/tryton.mo
index 5d31a28..a2c6ad0 100644
Binary files a/tryton/data/locale/es_AR/LC_MESSAGES/tryton.mo and b/tryton/data/locale/es_AR/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/es_CO/LC_MESSAGES/tryton.mo b/tryton/data/locale/es_CO/LC_MESSAGES/tryton.mo
index 8ddcfe2..0181fe9 100644
Binary files a/tryton/data/locale/es_CO/LC_MESSAGES/tryton.mo and b/tryton/data/locale/es_CO/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/es_EC/LC_MESSAGES/tryton.mo b/tryton/data/locale/es_EC/LC_MESSAGES/tryton.mo
index ebf92f7..dfb8eda 100644
Binary files a/tryton/data/locale/es_EC/LC_MESSAGES/tryton.mo and b/tryton/data/locale/es_EC/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/es_ES/LC_MESSAGES/tryton.mo b/tryton/data/locale/es_ES/LC_MESSAGES/tryton.mo
index db1df7d..3d73396 100644
Binary files a/tryton/data/locale/es_ES/LC_MESSAGES/tryton.mo and b/tryton/data/locale/es_ES/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/es_MX/LC_MESSAGES/tryton.mo b/tryton/data/locale/es_MX/LC_MESSAGES/tryton.mo
index e374505..e73bc2f 100644
Binary files a/tryton/data/locale/es_MX/LC_MESSAGES/tryton.mo and b/tryton/data/locale/es_MX/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/fr_FR/LC_MESSAGES/tryton.mo b/tryton/data/locale/fr_FR/LC_MESSAGES/tryton.mo
index b915834..7b8eee3 100644
Binary files a/tryton/data/locale/fr_FR/LC_MESSAGES/tryton.mo and b/tryton/data/locale/fr_FR/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/hu_HU/LC_MESSAGES/tryton.mo b/tryton/data/locale/hu_HU/LC_MESSAGES/tryton.mo
index 9f87692..9d1cc35 100644
Binary files a/tryton/data/locale/hu_HU/LC_MESSAGES/tryton.mo and b/tryton/data/locale/hu_HU/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/it_IT/LC_MESSAGES/tryton.mo b/tryton/data/locale/it_IT/LC_MESSAGES/tryton.mo
index 5c0442e..bdef943 100644
Binary files a/tryton/data/locale/it_IT/LC_MESSAGES/tryton.mo and b/tryton/data/locale/it_IT/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/ja_JP/LC_MESSAGES/tryton.mo b/tryton/data/locale/ja_JP/LC_MESSAGES/tryton.mo
index 73b01d6..2a94fd2 100644
Binary files a/tryton/data/locale/ja_JP/LC_MESSAGES/tryton.mo and b/tryton/data/locale/ja_JP/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/lo_LA/LC_MESSAGES/tryton.mo b/tryton/data/locale/lo_LA/LC_MESSAGES/tryton.mo
index 3648fde..578b9dd 100644
Binary files a/tryton/data/locale/lo_LA/LC_MESSAGES/tryton.mo and b/tryton/data/locale/lo_LA/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/lt_LT/LC_MESSAGES/tryton.mo b/tryton/data/locale/lt_LT/LC_MESSAGES/tryton.mo
index 57d189a..ed5d6c6 100644
Binary files a/tryton/data/locale/lt_LT/LC_MESSAGES/tryton.mo and b/tryton/data/locale/lt_LT/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/nl_NL/LC_MESSAGES/tryton.mo b/tryton/data/locale/nl_NL/LC_MESSAGES/tryton.mo
index 21786e6..e0ea400 100644
Binary files a/tryton/data/locale/nl_NL/LC_MESSAGES/tryton.mo and b/tryton/data/locale/nl_NL/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/pt_BR/LC_MESSAGES/tryton.mo b/tryton/data/locale/pt_BR/LC_MESSAGES/tryton.mo
index 5cc9663..48a1bdf 100644
Binary files a/tryton/data/locale/pt_BR/LC_MESSAGES/tryton.mo and b/tryton/data/locale/pt_BR/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/ru_RU/LC_MESSAGES/tryton.mo b/tryton/data/locale/ru_RU/LC_MESSAGES/tryton.mo
index b7852c1..e0f8d08 100644
Binary files a/tryton/data/locale/ru_RU/LC_MESSAGES/tryton.mo and b/tryton/data/locale/ru_RU/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/sl_SI/LC_MESSAGES/tryton.mo b/tryton/data/locale/sl_SI/LC_MESSAGES/tryton.mo
index 4b27043..fcc4cb4 100644
Binary files a/tryton/data/locale/sl_SI/LC_MESSAGES/tryton.mo and b/tryton/data/locale/sl_SI/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/data/locale/zh_CN/LC_MESSAGES/tryton.mo b/tryton/data/locale/zh_CN/LC_MESSAGES/tryton.mo
index 7cf4ea7..f1de168 100644
Binary files a/tryton/data/locale/zh_CN/LC_MESSAGES/tryton.mo and b/tryton/data/locale/zh_CN/LC_MESSAGES/tryton.mo differ
diff --git a/tryton/gui/window/attachment.py b/tryton/gui/window/attachment.py
index da0e146..0095870 100644
--- a/tryton/gui/window/attachment.py
+++ b/tryton/gui/window/attachment.py
@@ -25,8 +25,6 @@ class Attachment(WinForm):
super(Attachment, self).__init__(screen, self.callback,
view_type='tree')
screen.search_filter()
- # Set parent after to be allowed to call search_filter
- screen.parent = record
def destroy(self):
self.prev_view.save_width_height()
diff --git a/tryton/gui/window/note.py b/tryton/gui/window/note.py
index 0c09082..efac25b 100644
--- a/tryton/gui/window/note.py
+++ b/tryton/gui/window/note.py
@@ -19,8 +19,6 @@ class Note(WinForm):
exclude_field='resource')
super(Note, self).__init__(screen, self.callback, view_type='tree')
screen.search_filter()
- # Set parent after to be allowed to call search_filter
- screen.parent = record
def destroy(self):
self.prev_view.save_width_height()
diff --git a/tryton/gui/window/view_form/screen/screen.py b/tryton/gui/window/view_form/screen/screen.py
index 2dcada0..c79c2de 100644
--- a/tryton/gui/window/view_form/screen/screen.py
+++ b/tryton/gui/window/view_form/screen/screen.py
@@ -427,7 +427,8 @@ class Screen(SignalEvent):
'ids': [r.id for r in self.selected_records],
}, context=self.context.copy(), warning=False)
else:
- self.switch_view(view_type='form')
+ if not self.modified():
+ self.switch_view(view_type='form')
return True
@property
@@ -436,8 +437,6 @@ class Screen(SignalEvent):
def switch_view(self, view_type=None):
if self.current_view:
- if not self.parent and self.modified():
- return
self.current_view.set_value()
if (self.current_record and
self.current_record not in self.current_record.group):
diff --git a/tryton/gui/window/view_form/view/calendar_gtk/calendar_.py b/tryton/gui/window/view_form/view/calendar_gtk/calendar_.py
index c408ef9..ecb46f9 100644
--- a/tryton/gui/window/view_form/view/calendar_gtk/calendar_.py
+++ b/tryton/gui/window/view_form/view/calendar_gtk/calendar_.py
@@ -79,8 +79,8 @@ class Calendar_(goocalendar.Calendar):
if not record[dtstart].get(record):
continue
- start = record[dtstart].get(record)
- end = record[dtend].get(record)
+ start = record[dtstart].get_client(record)
+ end = record[dtend].get_client(record)
midnight = datetime.time(0)
all_day = False
if not isinstance(start, datetime.datetime):
diff --git a/tryton/gui/window/view_form/view/form_gtk/widget.py b/tryton/gui/window/view_form/view/form_gtk/widget.py
index 21d3b8c..bd6d6cc 100644
--- a/tryton/gui/window/view_form/view/form_gtk/widget.py
+++ b/tryton/gui/window/view_form/view/form_gtk/widget.py
@@ -242,6 +242,7 @@ class TranslateMixin:
return button
def translate(self, *args):
+ self.view.set_value()
if self.record.id < 0 or self.record.modified:
common.message(
_('You need to save the record before adding translations!'))
diff --git a/tryton/gui/window/win_import.py b/tryton/gui/window/win_import.py
index 8c76fc6..b91a715 100644
--- a/tryton/gui/window/win_import.py
+++ b/tryton/gui/window/win_import.py
@@ -107,7 +107,7 @@ class WinImport(WinCSV):
try:
data = csv.reader(
open(fname, 'rb'),
- quotechar=self.get_delimiter(),
+ quotechar=self.get_quotechar(),
delimiter=self.get_delimiter())
except IOError:
common.warning(_('Error opening CSV file'), _('Error'))
--
tryton-client
More information about the tryton-debian-vcs
mailing list