From 2cc0e87ec233054728b7fbee3b7db4f6142f87f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 22 Feb 2008 14:00:29 +0100 Subject: [PATCH] Duplicate _columns when inherit it as there is only one instance of dict for the same object in multi-db --- trytond/res/user.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trytond/res/user.py b/trytond/res/user.py index 3f75f30c1e..c6db69ae36 100644 --- a/trytond/res/user.py +++ b/trytond/res/user.py @@ -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')