[tryton-debian-vcs] tryton-client branch debian-jessie-3.4 updated. debian/3.4.7-1-2-gb7798e7
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.4 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-client.git;a=commitdiff;h=debian/3.4.7-1-2-gb7798e7
commit b7798e7220e0fcfe88d5f8a57ed639580f59c19b
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Feb 10 19:03:53 2016 +0100
Releasing debian version 3.4.8-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index 4f09a5b..f367b21 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-client (3.4.8-1) unstable; urgency=medium
+
+ * Merging upstream version 3.4.8.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Wed, 10 Feb 2016 19:03:53 +0100
+
tryton-client (3.4.7-1) unstable; urgency=medium
* Merging upstream version 3.4.7.
commit b4aa3a386c68ce11636202a7a9c088dcaee5af06
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Feb 10 19:03:53 2016 +0100
Merging upstream version 3.4.8.
diff --git a/CHANGELOG b/CHANGELOG
index 7523503..88020f3 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.4.8 - 2016-02-06
+* Bug fixes (see mercurial logs for details)
+
Version 3.4.7 - 2016-01-11
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 4f10e37..cdeb3cf 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: tryton
-Version: 3.4.7
+Version: 3.4.8
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 4f10e37..cdeb3cf 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.4.7
+Version: 3.4.8
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 136b48d..a69bd29 100644
--- a/tryton/gui/window/view_form/model/field.py
+++ b/tryton/gui/window/view_form/model/field.py
@@ -67,10 +67,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
@@ -253,6 +256,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:
@@ -279,13 +285,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)
@@ -599,7 +600,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 338a8b8..6544eee 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.4.7"
+VERSION = "3.4.8"
LICENSE = "GPL-3"
WEBSITE = "http://www.tryton.org/"
--
tryton-client
More information about the tryton-debian-vcs
mailing list