[tryton-debian-vcs] tryton-client branch debian-jessie-3.2 updated. debian/3.2.12-1-2-g00a4e99
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Wed Feb 10 19:52:59 UTC 2016
The following commit has been merged in the debian-jessie-3.2 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-client.git;a=commitdiff;h=debian/3.2.12-1-2-g00a4e99
commit 00a4e99e12fc67da25b28874a8aadcebccacde55
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Feb 10 19:00:58 2016 +0100
Releasing debian version 3.2.13-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index fb46f58..94cd35a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-client (3.2.13-1) unstable; urgency=medium
+
+ * Merging upstream version 3.2.13.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Wed, 10 Feb 2016 19:00:58 +0100
+
tryton-client (3.2.12-1) unstable; urgency=medium
* Merging upstream version 3.2.12.
commit 28730f8c09cfa0540bb789ab80c9d6b3870e8767
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Feb 10 19:00:58 2016 +0100
Merging upstream version 3.2.13.
diff --git a/CHANGELOG b/CHANGELOG
index d04ff7d..05d2400 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.2.13 - 2016-02-06
+* Bug fixes (see mercurial logs for details)
+
Version 3.2.12 - 2016-01-11
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 346cc45..2024360 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: tryton
-Version: 3.2.12
+Version: 3.2.13
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 346cc45..2024360 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.2.12
+Version: 3.2.13
Summary: Tryton client
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/tryton/gui/window/view_form/model/field.py b/tryton/gui/window/view_form/model/field.py
index 5dd3cbc..01da423 100644
--- a/tryton/gui/window/view_form/model/field.py
+++ b/tryton/gui/window/view_form/model/field.py
@@ -66,10 +66,13 @@ class Field(object):
context.update(record.expr_eval(self.attrs.get('context', {})))
return context
+ def _is_empty(self, record):
+ return not self.get_eval(record)
+
def check_required(self, record):
state_attrs = self.get_state_attrs(record)
if bool(int(state_attrs.get('required') or 0)):
- if (not self.get_eval(record)
+ if (self._is_empty(record)
and not bool(int(state_attrs.get('readonly') or 0))):
return False
return True
@@ -252,6 +255,9 @@ class TimeField(Field):
_default = None
+ def _is_empty(self, record):
+ return self.get(record) is None
+
def set_client(self, record, value, force_change=False):
if isinstance(value, basestring):
try:
@@ -278,13 +284,8 @@ class FloatField(Field):
_default = None
default_digits = (16, 2)
- def check_required(self, record):
- state_attrs = self.get_state_attrs(record)
- if bool(int(state_attrs.get('required') or 0)):
- if (self.get(record) is None
- and not bool(int(state_attrs.get('readonly') or 0))):
- return False
- return True
+ def _is_empty(self, record):
+ return self.get(record) is None
def get(self, record):
return record.value.get(self.name, self._default)
@@ -621,7 +622,6 @@ class O2MField(Field):
new_record.set_default(vals)
group.add(new_record)
else:
- new_record.id *= -1 # Don't consider record as unsaved
new_record.set(vals)
group.append(new_record)
diff --git a/tryton/version.py b/tryton/version.py
index 810c280..7e63eb0 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.2.12"
+VERSION = "3.2.13"
LICENSE = "GPL-3"
WEBSITE = "http://www.tryton.org/"
--
tryton-client
More information about the tryton-debian-vcs
mailing list