[tryton-debian-vcs] tryton-modules-party branch upstream updated. upstream/4.0.1-1-g339eec8
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Mon Aug 8 09:32:09 UTC 2016
The following commit has been merged in the upstream branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-party.git;a=commitdiff;h=upstream/4.0.1-1-g339eec8
commit 339eec8758fc93b373fff03369fce34c06ce5a54
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Fri Aug 5 11:30:22 2016 +0200
Adding upstream version 4.0.2.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/CHANGELOG b/CHANGELOG
index 9a64ec7..3b38f4c 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.0.2 - 2016-08-02
+* 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 6a736b6..1329ba7 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_party
-Version: 4.0.1
+Version: 4.0.2
Summary: Tryton module with parties and addresses
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/party.py b/party.py
index 6742861..b7f7502 100644
--- a/party.py
+++ b/party.py
@@ -292,10 +292,11 @@ class PartyIdentifier(ModelSQL, ModelView):
super(PartyIdentifier, self).pre_validate()
self.check_code()
+ @fields.depends('type', 'party', 'code')
def check_code(self):
if self.type == 'eu_vat':
if not vat.is_valid(self.code):
- if self.party.id > 0:
+ if self.party and self.party.id > 0:
party = self.party.rec_name
else:
party = ''
diff --git a/tryton.cfg b/tryton.cfg
index fe4da1f..6cca58d 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=4.0.1
+version=4.0.2
depends:
country
ir
diff --git a/trytond_party.egg-info/PKG-INFO b/trytond_party.egg-info/PKG-INFO
index 6b86790..ccfbf3d 100644
--- a/trytond_party.egg-info/PKG-INFO
+++ b/trytond_party.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond-party
-Version: 4.0.1
+Version: 4.0.2
Summary: Tryton module with parties and addresses
Home-page: http://www.tryton.org/
Author: Tryton
--
tryton-modules-party
More information about the tryton-debian-vcs
mailing list