[tryton-debian-vcs] tryton-client branch debian-jessie-3.0 updated. debian/3.0.6-1-3-gb173edd
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Wed Oct 8 16:49:52 UTC 2014
The following commit has been merged in the debian-jessie-3.0 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-client.git;a=commitdiff;h=debian/3.0.6-1-3-gb173edd
commit b173eddceea9924609b01306f83121721a209d6e
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Oct 8 13:59:57 2014 +0200
Releasing debian version 3.0.7-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index bbdb71a..c8d0f8f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+tryton-client (3.0.7-1) unstable; urgency=medium
+
+ * Adding actual upstream signing key.
+ * Merging upstream version 3.0.7.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Wed, 08 Oct 2014 13:59:57 +0200
+
tryton-client (3.0.6-1) unstable; urgency=medium
* Merging upstream version 3.0.6.
commit b2b21f113c5d45dda116d782f73051f8d6bc0ab5
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Oct 8 13:59:55 2014 +0200
Merging upstream version 3.0.7.
diff --git a/CHANGELOG b/CHANGELOG
index fc8f49c..473df0c 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.0.7 - 2014-09-29
+* Bug fixes (see mercurial logs for details)
+
Version 3.0.6 - 2014-08-03
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index a092e2a..b53340b 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: tryton
-Version: 3.0.6
+Version: 3.0.7
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 a092e2a..b53340b 100644
--- a/tryton.egg-info/PKG-INFO
+++ b/tryton.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: tryton
-Version: 3.0.6
+Version: 3.0.7
Summary: Tryton client
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/tryton/common/domain_inversion.py b/tryton/common/domain_inversion.py
index 5841e65..a50eaa3 100644
--- a/tryton/common/domain_inversion.py
+++ b/tryton/common/domain_inversion.py
@@ -47,18 +47,21 @@ def is_leaf(expression):
and expression[1] in OPERATORS)
+def constrained_leaf(part, boolop=operator.and_):
+ field, operand, value = part[:3]
+ if operand == '=' and boolop == operator.and_:
+ # We should consider that other domain inversion will set a correct
+ # value to this field
+ return True
+ return False
+
+
def eval_leaf(part, context, boolop=operator.and_):
field, operand, value = part[:3]
if '.' in field:
# In the case where the leaf concerns a m2o then having a value in the
# evaluation context is deemed suffisant
return bool(context.get(field.split('.')[0]))
- if (operand == '='
- and context.get(field) is None
- and boolop == operator.and_):
- # We should consider that other domain inversion will set a correct
- # value to this field
- return True
context_field = context.get(field)
if isinstance(context_field, datetime.date) and not value:
if isinstance(context_field, datetime.datetime):
@@ -231,7 +234,8 @@ class And(object):
field = part[0]
if (field not in context
or field in context
- and eval_leaf(part, context, operator.and_)):
+ and (eval_leaf(part, context, operator.and_)
+ or constrained_leaf(part, operator.and_))):
result.append(True)
else:
return False
@@ -274,7 +278,8 @@ class Or(And):
field = part[0]
field = self.base(field)
if (field in context
- and eval_leaf(part, context, operator.or_)):
+ and (eval_leaf(part, context, operator.or_)
+ or constrained_leaf(part, operator.or_))):
return True
elif (field in context
and not eval_leaf(part, context, operator.or_)):
@@ -367,7 +372,7 @@ def test_andor_inversion():
def test_andand_inversion():
domain = [[['x', '=', 4], ['y', '>', 6]], ['z', '=', 3]]
assert domain_inversion(domain, 'z') == [['z', '=', 3]]
- assert domain_inversion(domain, 'z', {'x': 5}) is False
+ assert domain_inversion(domain, 'z', {'x': 5}) == [['z', '=', 3]]
assert domain_inversion(domain, 'z', {'y': 5}) is False
assert domain_inversion(domain, 'z', {'x': 4, 'y': 7}) == [['z', '=', 3]]
diff --git a/tryton/gui/window/view_form/screen/screen.py b/tryton/gui/window/view_form/screen/screen.py
index 37923e3..dfa1895 100644
--- a/tryton/gui/window/view_form/screen/screen.py
+++ b/tryton/gui/window/view_form/screen/screen.py
@@ -588,12 +588,13 @@ class Screen(SignalEvent):
if delete:
for record in records:
- if record.parent:
- record.parent.save(force_reload=False)
if record in record.group.record_deleted:
record.group.record_deleted.remove(record)
if record in record.group.record_removed:
record.group.record_removed.remove(record)
+ if record.parent:
+ # Save parent without deleted children
+ record.parent.save(force_reload=False)
record.destroy()
if idx > 0:
diff --git a/tryton/gui/window/win_export.py b/tryton/gui/window/win_export.py
index 636df5e..02eaffc 100644
--- a/tryton/gui/window/win_export.py
+++ b/tryton/gui/window/win_export.py
@@ -289,7 +289,7 @@ class WinExport(NoModal):
return
try:
lines = RPCExecute('model', 'ir.export.line', 'read',
- sum((x['export_fields'] for x in exports), []), None)
+ sum((list(x['export_fields']) for x in exports), []), None)
except RPCException:
return
id2lines = {}
diff --git a/tryton/version.py b/tryton/version.py
index 5e71d12..19e2e7d 100644
--- a/tryton/version.py
+++ b/tryton/version.py
@@ -1,6 +1,6 @@
#This file is part of Tryton. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
PACKAGE = "tryton"
-VERSION = "3.0.6"
+VERSION = "3.0.7"
LICENSE = "GPL-3"
WEBSITE = "http://www.tryton.org/"
--
tryton-client
More information about the tryton-debian-vcs
mailing list