[tryton-debian-vcs] tryton-modules-company branch upstream-1.8 created. 35d3d04ab781866719a7dea8b2c5b99a7b49a110

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Wed Nov 27 17:00:52 UTC 2013


The following commit has been merged in the upstream-1.8 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-company.git;a=commitdiff;h=35d3d04ab781866719a7dea8b2c5b99a7b49a110
commit 35d3d04ab781866719a7dea8b2c5b99a7b49a110
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Tue Oct 11 14:35:10 2011 +0200

    Adding upstream version 1.8.1.

diff --git a/CHANGELOG b/CHANGELOG
index b285d68..65662c5 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 1.8.1 - 2011-10-01
+* Bug fixes (see mercurial logs for details)
+
 Version 1.8.0 - 2010-11-01
 * Bug fixes (see mercurial logs for details)
 
diff --git a/COPYRIGHT b/COPYRIGHT
index cca7db9..3d2324b 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,6 +1,6 @@
-Copyright (C) 2008-2010 Cédric Krier.
-Copyright (C) 2008-2010 Bertrand Chenal.
-Copyright (C) 2008-2010 B2CK SPRL.
+Copyright (C) 2008-2011 Cédric Krier.
+Copyright (C) 2008-2011 Bertrand Chenal.
+Copyright (C) 2008-2011 B2CK SPRL.
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
diff --git a/PKG-INFO b/PKG-INFO
index 437f77b..87e13fd 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: trytond_company
-Version: 1.8.0
+Version: 1.8.1
 Summary: Define company and employee.
 Add main and current company on users preferences.
 Add company on properties.
diff --git a/__tryton__.py b/__tryton__.py
index e5ab516..6742bc6 100644
--- a/__tryton__.py
+++ b/__tryton__.py
@@ -6,7 +6,7 @@
     'name_es_CO': 'Compañía',
     'name_es_ES': 'Empresa',
     'name_fr_FR': 'Société',
-    'version': '1.8.0',
+    'version': '1.8.1',
     'author': 'B2CK',
     'email': 'info at b2ck.com',
     'website': 'http://www.tryton.org/',
diff --git a/company.py b/company.py
index adbeb6a..283e1ef 100644
--- a/company.py
+++ b/company.py
@@ -180,7 +180,10 @@ class Property(ModelSQL, ModelView):
 
     def _set_values(self, name, model, res_id, val, field_id):
         user_obj = self.pool.get('res.user')
-        user = user_obj.browse(Transaction().user)
+        user_id = Transaction().user
+        if user_id == 0:
+            user_id = Transaction().context.get('user', user_id)
+        user = user_obj.browse(user_id)
         res = super(Property, self)._set_values(name, model, res_id, val, 
                 field_id)
         if user:
@@ -188,7 +191,7 @@ class Property(ModelSQL, ModelView):
         return res
 
     def search(self, domain, offset=0, limit=None, order=None, count=False):
-        if Transaction().user == 0:
+        if Transaction().user == 0 and not 'user' in Transaction().context:
             domain = ['AND', domain[:], ('company', '=', False)]
         return super(Property, self).search(domain, offset=offset,
                 limit=limit, order=order, count=count)
diff --git a/trytond_company.egg-info/PKG-INFO b/trytond_company.egg-info/PKG-INFO
index 4f5d031..48f0d3c 100644
--- a/trytond_company.egg-info/PKG-INFO
+++ b/trytond_company.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: trytond-company
-Version: 1.8.0
+Version: 1.8.1
 Summary: Define company and employee.
 Add main and current company on users preferences.
 Add company on properties.
-- 
tryton-modules-company



More information about the tryton-debian-vcs mailing list