diff --git a/golem_family_minor/__init__.py b/golem_family_minor/__init__.py
index 643d893..8d28962 100644
--- a/golem_family_minor/__init__.py
+++ b/golem_family_minor/__init__.py
@@ -14,3 +14,5 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see .
+
+from . import golem_member
diff --git a/golem_family_minor/__openerp__.py b/golem_family_minor/__openerp__.py
index c35ff9e..3cd49e5 100644
--- a/golem_family_minor/__openerp__.py
+++ b/golem_family_minor/__openerp__.py
@@ -28,5 +28,5 @@
'installable': True,
'auto_install': True,
'depends': ['golem_family', 'golem_member_minor'],
- 'data': ['golem_member_view.xml']
+ 'data': []
}
diff --git a/golem_family_minor/golem_member.py b/golem_family_minor/golem_member.py
new file mode 100644
index 0000000..f7eb174
--- /dev/null
+++ b/golem_family_minor/golem_member.py
@@ -0,0 +1,26 @@
+# -*- coding: utf-8 -*-
+
+# Copyright 2016 Fabien Bourgeois
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+
+from openerp import models, fields
+
+LEGAL_DMN = "['&', ('family_id', '=', family_id), ('id', '!=', partner_id)]"
+
+
+class GolemMember(models.Model):
+ _inherit = 'golem.member'
+
+ legal_guardian_ids = fields.Many2many(domain=LEGAL_DMN)
diff --git a/golem_family_minor/golem_member_view.xml b/golem_family_minor/golem_member_view.xml
deleted file mode 100644
index 3bc222b..0000000
--- a/golem_family_minor/golem_member_view.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
-
-
- Restrict domain for legal_guardian
- golem.member
-
-
-
-
-
-
- ['&', ('family_id', '=', family_id), ('id', '!=', partner_id)]
- {'no_create': True}
-
-
-
-
-
-