From cc0c6b9b612d90191f95584c22e74cacdda5edda Mon Sep 17 00:00:00 2001 From: michel Date: Fri, 26 Jan 2018 13:51:37 +0100 Subject: [PATCH] [TMP]If family member family notbook is visible --- golem_family/models/golem_family.py | 11 ++++ golem_family/views/golem_member_views.xml | 76 ++++++++++++++--------- 2 files changed, 56 insertions(+), 31 deletions(-) diff --git a/golem_family/models/golem_family.py b/golem_family/models/golem_family.py index e8167b5..e294c33 100644 --- a/golem_family/models/golem_family.py +++ b/golem_family/models/golem_family.py @@ -24,7 +24,18 @@ class ResPartner(models.Model): """ Partner adaptations """ _inherit = 'res.partner' + family_member = fields.Many2one(related='family_id') family_member_ids = fields.One2many(related='family_id.member_ids') + family_street = fields.Char(related='family_id.street') + family_street2 = fields.Char(related='family_id.street2') + family_zip = fields.Char(related='family_id.zip') + family_city = fields.Char(related='family_id.city') + family_state_id = fields.Many2one(related='family_id.state_id') + family_country_id = fields.Many2one(related='family_id.country_id') + family_phone = fields.Char(related='family_id.phone') + family_mobile = fields.Char(related='family_id.mobile') + family_email = fields.Char(related='family_id.email') + family_website = fields.Char(related='family_id.website') family_id = fields.Many2one('golem.family', string='Family', index=True) family_role = fields.Many2one('golem.family.role', string='Role', diff --git a/golem_family/views/golem_member_views.xml b/golem_family/views/golem_member_views.xml index c3fc4cf..0a867c1 100644 --- a/golem_family/views/golem_member_views.xml +++ b/golem_family/views/golem_member_views.xml @@ -31,41 +31,55 @@ along with this program. If not, see . - -
Family form
- - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- - - - - - - - - - - -