Duplicate _columns when inherit it as there is only one instance of dict for

the same object in multi-db
This commit is contained in:
Cédric Krier committed 2008-02-22 14:00:29 +01:00
1 parent b8bb522a8d
commit 2cc0e87ec2
1 file changed
+2
+2
View File
@@ -1,5 +1,6 @@
"User"
import time
import copy
from xml import dom
from xml.dom import minidom
from trytond.osv import fields, OSV, ExceptOSV
@@ -212,6 +213,7 @@ class Group2(Group):
def __init__(self, pool):
super(Group2, self).__init__(pool)
if pool:
self._columns = copy.copy(self._columns)
self._columns['users'] = fields.many2many(
'res.user', 'res_group_user_rel', 'gid', 'uid', 'Users')