[tryton-debian-vcs] tryton-modules-product-classification branch upstream updated. upstream/4.0.1-1-g7046a74

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Mon Oct 3 14:14:28 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-product-classification.git;a=commitdiff;h=upstream/4.0.1-1-g7046a74

commit 7046a74df009714fbd73828b7a29b03885078014
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Oct 3 12:45:16 2016 +0200

    Adding upstream version 4.0.2.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/CHANGELOG b/CHANGELOG
index af12f3a..99a1b44 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.0.2 - 2016-10-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 16daa77..52b0fe1 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_product_classification
-Version: 4.0.1
+Version: 4.0.2
 Summary: Tryton module to implement product classification
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/product.py b/product.py
index 03c4af4..b27b813 100644
--- a/product.py
+++ b/product.py
@@ -3,6 +3,7 @@
 from trytond.model import ModelStorage, ModelView, fields
 from trytond.pool import PoolMeta, Pool
 from trytond.pyson import Eval
+from trytond.rpc import RPC
 
 __all__ = ['ClassificationMixin', 'classification_tree',
     'Template', 'Product', 'ClassificationDummy', 'ClassificationTreeDummy']
@@ -78,6 +79,11 @@ class Product:
     __name__ = 'product.product'
 
     @classmethod
+    def __setup__(cls):
+        super(Product, cls).__setup__()
+        cls.__rpc__['get_classification'] = RPC()
+
+    @classmethod
     def get_classification(cls):
         pool = Pool()
         Template = pool.get('product.template')
diff --git a/tryton.cfg b/tryton.cfg
index de8c13d..82ab8a5 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=4.0.1
+version=4.0.2
 depends:
     ir
     product
diff --git a/trytond_product_classification.egg-info/PKG-INFO b/trytond_product_classification.egg-info/PKG-INFO
index 01aecaf..c5d68c0 100644
--- a/trytond_product_classification.egg-info/PKG-INFO
+++ b/trytond_product_classification.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-product-classification
-Version: 4.0.1
+Version: 4.0.2
 Summary: Tryton module to implement product classification
 Home-page: http://www.tryton.org/
 Author: Tryton
-- 
tryton-modules-product-classification



More information about the tryton-debian-vcs mailing list