Make domain inversion works on one2many
issue1861 review54001
This commit is contained in:
1 parent
1023c9beb5
commit
28ca842570
1 file changed
+8
-1
@@ -17,7 +17,7 @@ class Group(SignalEvent, list):
|
||||
super(Group, self).__init__()
|
||||
if domain is None:
|
||||
domain = []
|
||||
self.domain = domain
|
||||
self.__domain = domain
|
||||
self.lock_signal = False
|
||||
self.__window = window
|
||||
self.parent = parent
|
||||
@@ -49,6 +49,13 @@ class Group(SignalEvent, list):
|
||||
|
||||
window = property(__get_window, __set_window)
|
||||
|
||||
@property
|
||||
def domain(self):
|
||||
if self.parent and self.child_name:
|
||||
field = self.parent.group.fields[self.child_name]
|
||||
return [self.__domain, field.domain_get(self.parent)]
|
||||
return self.__domain
|
||||
|
||||
def insert(self, pos, record):
|
||||
assert record.group is self
|
||||
if pos >= 1:
|
||||
|
||||
Reference in new issue
Block a user