[CHG]Major change to Family : end with views into member forms + translations

This commit is contained in:
Fabien Bourgeois 2016-07-08 22:00:22 +02:00
parent 357383eb7a
commit 8bdcb70a44
6 changed files with 506 additions and 183 deletions

View File

@ -26,5 +26,5 @@
'application': False, 'application': False,
'installable': True, 'installable': True,
'depends': ['golem_member'], 'depends': ['golem_member'],
'data': ['views/golem_family_view.xml'] 'data': ['views/golem_family_view.xml', 'views/golem_member_view.xml']
} }

View File

@ -6,8 +6,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 8.0\n" "Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-06-28 03:16+0000\n" "POT-Creation-Date: 2016-07-08 19:50+0000\n"
"PO-Revision-Date: 2016-06-28 03:16+0000\n" "PO-Revision-Date: 2016-07-08 19:50+0000\n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -17,140 +17,309 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: golem_family #. module: golem_family
#: view:golem.member.family:golem_family.view_filter #: view:golem.family:golem_family.family_tree
msgid "By relation" msgid "# Members"
msgstr "Par lien familial" msgstr "# de membres"
#. module: golem_family #. module: golem_family
#: field:golem.member.family,create_uid:0 #: view:golem.family:golem_family.view_form
#: field:golem.member.family.relation,create_uid:0 msgid "0000000000"
msgstr "0000000000"
#. module: golem_family
#: view:golem.family:golem_family.view_form
msgid "Address"
msgstr "Addresse"
#. module: golem_family
#: view:golem.family:golem_family.view_filter
msgid "By city"
msgstr "Par ville"
#. module: golem_family
#: view:golem.family:golem_family.view_form
#: field:golem.family,city:0
msgid "City"
msgstr "Ville"
#. module: golem_family
#: view:golem.family:golem_family.view_form
msgid "Communication"
msgstr "Communication"
#. module: golem_family
#: field:golem.family,count:0
msgid "Count"
msgstr "Nombre"
#. module: golem_family
#: view:golem.family:golem_family.view_form
#: field:golem.family,country_id:0
msgid "Country"
msgstr "Pays"
#. module: golem_family
#: field:golem.family,create_uid:0
#: field:golem.member.family.role,create_uid:0
msgid "Created by" msgid "Created by"
msgstr "Créé par" msgstr "Créé par"
#. module: golem_family #. module: golem_family
#: field:golem.member.family,create_date:0 #: field:golem.family,create_date:0
#: field:golem.member.family.relation,create_date:0 #: field:golem.member.family.role,create_date:0
msgid "Created on" msgid "Created on"
msgstr "Créé le" msgstr "Créé le"
#. module: golem_family #. module: golem_family
#: field:golem.member.family,display_name:0 #: help:golem.family,message_last_post:0
#: field:golem.member.family.relation,display_name:0 msgid "Date of the last message posted on the record."
msgstr "Date du dernier message posté sur l'enregistrement."
#. module: golem_family
#: field:golem.family,display_name:0
#: field:golem.member.family.role,display_name:0
msgid "Display Name" msgid "Display Name"
msgstr "Nom affiché" msgstr "Nom affiché"
#. module: golem_family #. module: golem_family
#: field:golem.member,family_count:0 #: field:golem.family,email:0
msgid "Email"
msgstr "Email"
#. module: golem_family
#: model:ir.ui.menu,name:golem_family.family_menu_list
msgid "Families"
msgstr "Familles"
#. module: golem_family
#: view:golem.family:golem_family.view_form
#: field:golem.member,family_id:0
#: field:res.partner,family_id:0
msgid "Family" msgid "Family"
msgstr "Famille" msgstr "Famille"
#. module: golem_family #. module: golem_family
#: view:golem.member.family:golem_family.family_tree #: field:golem.member,family_count:0
msgid "Family Member From" #: field:res.partner,family_count:0
msgstr "Ce membre de la famille" msgid "Family Count"
msgstr "Somme des membres de la famille"
#. module: golem_family #. module: golem_family
#: view:golem.member.family:golem_family.family_tree #: code:addons/golem_family/models/golem_family.py:37
msgid "Family Member To"
msgstr "ce membre de la famille"
#. module: golem_family
#: code:addons/golem_family/models/golem_family.py:36
#, python-format #, python-format
msgid "Family Members" msgid "Family Members"
msgstr "Membres de la famille" msgstr "Membres de la famille"
#. module: golem_family #. module: golem_family
#: view:golem.member:golem_family.member_tab_add #: model:ir.ui.menu,name:golem_family.family_role_menu_list
msgid "Family Relations" msgid "Family Roles"
msgstr "Liens familiaux" msgstr "Rôles familiaux"
#. module: golem_family #. module: golem_family
#: field:golem.member.family,partnerfrom_id:0 #: view:golem.family:golem_family.view_form
msgid "Family member from" msgid "Family members"
msgstr "Ce membre de la famille" msgstr "Membres de la famille"
#. module: golem_family #. module: golem_family
#: field:golem.member.family,partnerto_id:0 #: sql_constraint:golem.member.family.role:0
msgid "Family member to" msgid "Family role must be unique."
msgstr "ce membre de la famille" msgstr "Les rôles familiaux doivent être uniques."
#. module: golem_family #. module: golem_family
#: field:golem.member.family,relation_id:0 #: field:golem.family,message_follower_ids:0
msgid "Family relation" msgid "Followers"
msgstr "Lien familial" msgstr "Abonnés"
#. module: golem_family #. module: golem_family
#: sql_constraint:golem.member.family.relation:0 #: model:ir.model,name:golem_family.model_golem_family
msgid "Family relation must be unique." msgid "GOLEM Family Entity"
msgstr "Le lien familial doit être unique" msgstr "GOLEM : famille"
#. module: golem_family
#: model:ir.ui.menu,name:golem_family.family_menu_list
msgid "Family relations"
msgstr "Liens familiaux"
#. module: golem_family
#: field:golem.member.family,fullrelation:0
msgid "Full relation string"
msgstr "Lien familial complet"
#. module: golem_family #. module: golem_family
#: model:ir.actions.act_window,name:golem_family.family_action_list #: model:ir.actions.act_window,name:golem_family.family_action_list
msgid "GOLEM Family Relations List" msgid "GOLEM Family List"
msgstr "GOLEM : liste des liens familiaux" msgstr "GOLEM : liste des familles"
#. module: golem_family
#: model:ir.actions.act_window,name:golem_family.family_role_action
msgid "GOLEM Family Role List"
msgstr "GOLEM : liste des rôles familiaux"
#. module: golem_family #. module: golem_family
#: model:ir.model,name:golem_family.model_golem_member #: model:ir.model,name:golem_family.model_golem_member
msgid "GOLEM Member" msgid "GOLEM Member"
msgstr "GOLEM : Membre de famille" msgstr "GOLEM : Adhérent"
#. module: golem_family #. module: golem_family
#: model:ir.model,name:golem_family.model_golem_member_family #: model:ir.model,name:golem_family.model_golem_member_family_role
msgid "GOLEM Member Family" msgid "GOLEM Member Family Role"
msgstr "GOLEM : Membre de famille" msgstr "GOLEM : rôle du membre de la famille"
#. module: golem_family #. module: golem_family
#: model:ir.model,name:golem_family.model_golem_member_family_relation #: view:golem.family:golem_family.view_filter
msgid "GOLEM Member Family Relation"
msgstr "GOLEM : lien des membres de famille"
#. module: golem_family
#: view:golem.member.family:golem_family.view_filter
msgid "Group By" msgid "Group By"
msgstr "Grouper par" msgstr "Grouper par"
#. module: golem_family #. module: golem_family
#: field:golem.member.family,id:0 #: help:golem.family,message_summary:0
#: field:golem.member.family.relation,id:0 msgid "Holds the Chatter summary (number of messages, ...). This summary is directly in html format in order to be inserted in kanban views."
msgstr "Contient le résumé des discussions (nombre de message...). Ce résumé peut être directement inséré dans les vues par cartes."
#. module: golem_family
#: field:golem.family,id:0
#: field:golem.member.family.role,id:0
msgid "ID" msgid "ID"
msgstr "ID" msgstr "ID"
#. module: golem_family #. module: golem_family
#: field:golem.member.family,__last_update:0 #: help:golem.family,message_unread:0
#: field:golem.member.family.relation,__last_update:0 msgid "If checked new messages require your attention."
msgstr "Si coché, les nouveaux messages vous seront notifiés."
#. module: golem_family
#: field:golem.family,message_is_follower:0
msgid "Is a Follower"
msgstr "Is a Follower"
#. module: golem_family
#: field:golem.family,message_last_post:0
msgid "Last Message Date"
msgstr "Last Message Date"
#. module: golem_family
#: field:golem.family,__last_update:0
#: field:golem.member.family.role,__last_update:0
msgid "Last Modified on" msgid "Last Modified on"
msgstr "Dernière modification le" msgstr "Dernière modification le"
#. module: golem_family #. module: golem_family
#: field:golem.member.family,write_uid:0 #: field:golem.family,write_uid:0
#: field:golem.member.family.relation,write_uid:0 #: field:golem.member.family.role,write_uid:0
msgid "Last Updated by" msgid "Last Updated by"
msgstr "Dernière modification par" msgstr "Dernière modification par"
#. module: golem_family #. module: golem_family
#: field:golem.member.family,write_date:0 #: field:golem.family,write_date:0
#: field:golem.member.family.relation,write_date:0 #: field:golem.member.family.role,write_date:0
msgid "Last Updated on" msgid "Last Updated on"
msgstr "Dernière modification le" msgstr "Dernière modification le"
#. module: golem_family #. module: golem_family
#: field:golem.member.family.relation,name:0 #: field:golem.family,member_ids:0
msgid "Relation" msgid "Members"
msgstr "Lien familial" msgstr "Adhérents"
#. module: golem_family #. module: golem_family
#: view:golem.member.family:golem_family.family_tree #: field:golem.family,message_ids:0
msgid "is the ... of" msgid "Messages"
msgstr "est le ... de" msgstr "Messages"
#. module: golem_family
#: help:golem.family,message_ids:0
msgid "Messages and communication history"
msgstr "Messages historique des communications"
#. module: golem_family
#: field:golem.family,mobile:0
msgid "Mobile"
msgstr "Mobile"
#. module: golem_family
#: view:golem.family:golem_family.view_form
#: field:golem.family,name:0
msgid "Name"
msgstr "Nom"
#. module: golem_family
#: field:golem.family,note:0
msgid "Note"
msgstr "Note"
#. module: golem_family
#: view:golem.family:golem_family.view_form
msgid "Others"
msgstr "Autres"
#. module: golem_family
#: model:ir.model,name:golem_family.model_res_partner
msgid "Partner"
msgstr "Partenaire"
#. module: golem_family
#: field:golem.family,phone:0
msgid "Phone"
msgstr "Téléphone"
#. module: golem_family
#: view:golem.family:golem_family.view_form
msgid "Put an internal note..."
msgstr "Rédigez une note interne..."
#. module: golem_family
#: field:golem.member,family_role:0
#: field:golem.member.family.role,name:0
#: field:res.partner,family_role:0
msgid "Role"
msgstr "Rôle"
#. module: golem_family
#: view:golem.family:golem_family.view_form
#: field:golem.family,state_id:0
msgid "State"
msgstr "Région"
#. module: golem_family
#: field:golem.family,street:0
msgid "Street"
msgstr "Rue"
#. module: golem_family
#: view:golem.family:golem_family.view_form
msgid "Street..."
msgstr "Rue..."
#. module: golem_family
#: field:golem.family,street2:0
msgid "Street2"
msgstr "Complément de rue"
#. module: golem_family
#: field:golem.family,message_summary:0
msgid "Summary"
msgstr "Résumé"
#. module: golem_family
#: field:golem.family,message_unread:0
msgid "Unread Messages"
msgstr "Messages non lus"
#. module: golem_family
#: field:golem.family,website:0
msgid "Website"
msgstr "Site Web"
#. module: golem_family
#: view:golem.family:golem_family.view_form
msgid "ZIP"
msgstr "Code postal"
#. module: golem_family
#: field:golem.family,zip:0
msgid "Zip"
msgstr "Code postal"
#. module: golem_family
#: view:golem.family:golem_family.view_form
msgid "e.g. www.odoo.com"
msgstr "par exemple www.yaltik.com"
#. module: golem_family
#: view:golem.member:golem_family.family_smartbtn_add
msgid "family members"
msgstr "famille"
#. module: golem_family
#: view:golem.family:golem_family.view_form
msgid "name@example.org"
msgstr "nom@exemple.ext"

View File

@ -6,8 +6,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 8.0\n" "Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-06-28 03:15+0000\n" "POT-Creation-Date: 2016-07-08 19:50+0000\n"
"PO-Revision-Date: 2016-06-28 03:15+0000\n" "PO-Revision-Date: 2016-07-08 19:50+0000\n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -16,87 +16,132 @@ msgstr ""
"Plural-Forms: \n" "Plural-Forms: \n"
#. module: golem_family #. module: golem_family
#: view:golem.member.family:golem_family.view_filter #: view:golem.family:golem_family.family_tree
msgid "By relation" msgid "# Members"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: field:golem.member.family,create_uid:0 #: view:golem.family:golem_family.view_form
#: field:golem.member.family.relation,create_uid:0 msgid "0000000000"
msgstr ""
#. module: golem_family
#: view:golem.family:golem_family.view_form
msgid "Address"
msgstr ""
#. module: golem_family
#: view:golem.family:golem_family.view_filter
msgid "By city"
msgstr ""
#. module: golem_family
#: view:golem.family:golem_family.view_form
#: field:golem.family,city:0
msgid "City"
msgstr ""
#. module: golem_family
#: view:golem.family:golem_family.view_form
msgid "Communication"
msgstr ""
#. module: golem_family
#: field:golem.family,count:0
msgid "Count"
msgstr ""
#. module: golem_family
#: view:golem.family:golem_family.view_form
#: field:golem.family,country_id:0
msgid "Country"
msgstr ""
#. module: golem_family
#: field:golem.family,create_uid:0
#: field:golem.member.family.role,create_uid:0
msgid "Created by" msgid "Created by"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: field:golem.member.family,create_date:0 #: field:golem.family,create_date:0
#: field:golem.member.family.relation,create_date:0 #: field:golem.member.family.role,create_date:0
msgid "Created on" msgid "Created on"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: field:golem.member.family,display_name:0 #: help:golem.family,message_last_post:0
#: field:golem.member.family.relation,display_name:0 msgid "Date of the last message posted on the record."
msgstr ""
#. module: golem_family
#: field:golem.family,display_name:0
#: field:golem.member.family.role,display_name:0
msgid "Display Name" msgid "Display Name"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: field:golem.member,family_count:0 #: field:golem.family,email:0
msgid "Email"
msgstr ""
#. module: golem_family
#: model:ir.ui.menu,name:golem_family.family_menu_list
msgid "Families"
msgstr ""
#. module: golem_family
#: view:golem.family:golem_family.view_form
#: field:golem.member,family_id:0
#: field:res.partner,family_id:0
msgid "Family" msgid "Family"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: view:golem.member.family:golem_family.family_tree #: field:golem.member,family_count:0
msgid "Family Member From" #: field:res.partner,family_count:0
msgid "Family Count"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: view:golem.member.family:golem_family.family_tree #: code:addons/golem_family/models/golem_family.py:37
msgid "Family Member To"
msgstr ""
#. module: golem_family
#: code:addons/golem_family/models/golem_family.py:36
#, python-format #, python-format
msgid "Family Members" msgid "Family Members"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: view:golem.member:golem_family.member_tab_add #: model:ir.ui.menu,name:golem_family.family_role_menu_list
msgid "Family Relations" msgid "Family Roles"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: field:golem.member.family,partnerfrom_id:0 #: view:golem.family:golem_family.view_form
msgid "Family member from" msgid "Family members"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: field:golem.member.family,partnerto_id:0 #: sql_constraint:golem.member.family.role:0
msgid "Family member to" msgid "Family role must be unique."
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: field:golem.member.family,relation_id:0 #: field:golem.family,message_follower_ids:0
msgid "Family relation" msgid "Followers"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: sql_constraint:golem.member.family.relation:0 #: model:ir.model,name:golem_family.model_golem_family
msgid "Family relation must be unique." msgid "GOLEM Family Entity"
msgstr ""
#. module: golem_family
#: model:ir.ui.menu,name:golem_family.family_menu_list
msgid "Family relations"
msgstr ""
#. module: golem_family
#: field:golem.member.family,fullrelation:0
msgid "Full relation string"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: model:ir.actions.act_window,name:golem_family.family_action_list #: model:ir.actions.act_window,name:golem_family.family_action_list
msgid "GOLEM Family Relations List" msgid "GOLEM Family List"
msgstr ""
#. module: golem_family
#: model:ir.actions.act_window,name:golem_family.family_role_action
msgid "GOLEM Family Role List"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
@ -105,51 +150,175 @@ msgid "GOLEM Member"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: model:ir.model,name:golem_family.model_golem_member_family #: model:ir.model,name:golem_family.model_golem_member_family_role
msgid "GOLEM Member Family" msgid "GOLEM Member Family Role"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: model:ir.model,name:golem_family.model_golem_member_family_relation #: view:golem.family:golem_family.view_filter
msgid "GOLEM Member Family Relation"
msgstr ""
#. module: golem_family
#: view:golem.member.family:golem_family.view_filter
msgid "Group By" msgid "Group By"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: field:golem.member.family,id:0 #: help:golem.family,message_summary:0
#: field:golem.member.family.relation,id:0 msgid "Holds the Chatter summary (number of messages, ...). This summary is directly in html format in order to be inserted in kanban views."
msgstr ""
#. module: golem_family
#: field:golem.family,id:0
#: field:golem.member.family.role,id:0
msgid "ID" msgid "ID"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: field:golem.member.family,__last_update:0 #: help:golem.family,message_unread:0
#: field:golem.member.family.relation,__last_update:0 msgid "If checked new messages require your attention."
msgstr ""
#. module: golem_family
#: field:golem.family,message_is_follower:0
msgid "Is a Follower"
msgstr ""
#. module: golem_family
#: field:golem.family,message_last_post:0
msgid "Last Message Date"
msgstr ""
#. module: golem_family
#: field:golem.family,__last_update:0
#: field:golem.member.family.role,__last_update:0
msgid "Last Modified on" msgid "Last Modified on"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: field:golem.member.family,write_uid:0 #: field:golem.family,write_uid:0
#: field:golem.member.family.relation,write_uid:0 #: field:golem.member.family.role,write_uid:0
msgid "Last Updated by" msgid "Last Updated by"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: field:golem.member.family,write_date:0 #: field:golem.family,write_date:0
#: field:golem.member.family.relation,write_date:0 #: field:golem.member.family.role,write_date:0
msgid "Last Updated on" msgid "Last Updated on"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: field:golem.member.family.relation,name:0 #: field:golem.family,member_ids:0
msgid "Relation" msgid "Members"
msgstr "" msgstr ""
#. module: golem_family #. module: golem_family
#: view:golem.member.family:golem_family.family_tree #: field:golem.family,message_ids:0
msgid "is the ... of" msgid "Messages"
msgstr ""
#. module: golem_family
#: help:golem.family,message_ids:0
msgid "Messages and communication history"
msgstr ""
#. module: golem_family
#: field:golem.family,mobile:0
msgid "Mobile"
msgstr ""
#. module: golem_family
#: view:golem.family:golem_family.view_form
#: field:golem.family,name:0
msgid "Name"
msgstr ""
#. module: golem_family
#: field:golem.family,note:0
msgid "Note"
msgstr ""
#. module: golem_family
#: view:golem.family:golem_family.view_form
msgid "Others"
msgstr ""
#. module: golem_family
#: model:ir.model,name:golem_family.model_res_partner
msgid "Partner"
msgstr ""
#. module: golem_family
#: field:golem.family,phone:0
msgid "Phone"
msgstr ""
#. module: golem_family
#: view:golem.family:golem_family.view_form
msgid "Put an internal note..."
msgstr ""
#. module: golem_family
#: field:golem.member,family_role:0
#: field:golem.member.family.role,name:0
#: field:res.partner,family_role:0
msgid "Role"
msgstr ""
#. module: golem_family
#: view:golem.family:golem_family.view_form
#: field:golem.family,state_id:0
msgid "State"
msgstr ""
#. module: golem_family
#: field:golem.family,street:0
msgid "Street"
msgstr ""
#. module: golem_family
#: view:golem.family:golem_family.view_form
msgid "Street..."
msgstr ""
#. module: golem_family
#: field:golem.family,street2:0
msgid "Street2"
msgstr ""
#. module: golem_family
#: field:golem.family,message_summary:0
msgid "Summary"
msgstr ""
#. module: golem_family
#: field:golem.family,message_unread:0
msgid "Unread Messages"
msgstr ""
#. module: golem_family
#: field:golem.family,website:0
msgid "Website"
msgstr ""
#. module: golem_family
#: view:golem.family:golem_family.view_form
msgid "ZIP"
msgstr ""
#. module: golem_family
#: field:golem.family,zip:0
msgid "Zip"
msgstr ""
#. module: golem_family
#: view:golem.family:golem_family.view_form
msgid "e.g. www.odoo.com"
msgstr ""
#. module: golem_family
#: view:golem.member:golem_family.family_smartbtn_add
msgid "family members"
msgstr ""
#. module: golem_family
#: view:golem.family:golem_family.view_form
msgid "name@example.org"
msgstr "" msgstr ""

View File

@ -27,6 +27,10 @@ class ResPartner(models.Model):
string='Role', index=True) string='Role', index=True)
family_count = fields.Integer('Family Count', related='family_id.count') family_count = fields.Integer('Family Count', related='family_id.count')
class GolemMember(models.Model):
_inherit = 'golem.member'
@api.multi @api.multi
def button_family_members(self): def button_family_members(self):
self.ensure_one() self.ensure_one()
@ -34,7 +38,7 @@ class ResPartner(models.Model):
'type': 'ir.actions.act_window', 'type': 'ir.actions.act_window',
'res_model': 'golem.family', 'res_model': 'golem.family',
'view_mode': 'form', 'view_mode': 'form',
'domain': [('id', '=', self.family_id.id)]} 'res_id': self.family_id.id}
class GolemFamily(models.Model): class GolemFamily(models.Model):

View File

@ -29,6 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<group> <group>
<div class="oe_title"> <div class="oe_title">
<h1> <h1>
<label for="name" string="Family" />
<field name="name" class="oe_inline" placeholder="Name" /> <field name="name" class="oe_inline" placeholder="Name" />
</h1> </h1>
</div> </div>
@ -113,6 +114,24 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</record> </record>
<!-- Searches --> <!-- Searches -->
<record id="view_filter" model="ir.ui.view">
<field name="name">GOLEM Family Filters</field>
<field name="model">golem.family</field>
<field name="arch" type="xml">
<search>
<field name="name" />
<field name="zip" />
<field name="city" />
<field name="phone" />
<field name="mobile" />
<field name="email" />
<group string="Group By">
<filter name="group_city" string="By city"
context="{'group_by': 'city'}"/>
</group>
</search>
</field>
</record>
<!-- Actions --> <!-- Actions -->
<act_window id="family_action_list" name="GOLEM Family List" <act_window id="family_action_list" name="GOLEM Family List"

View File

@ -20,65 +20,27 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<openerp> <openerp>
<data> <data>
<!-- Form --> <!-- Form -->
<record model="ir.ui.view" id="member_tab_add"> <record model="ir.ui.view" id="family_smartbtn_add">
<field name="name">Add family management to new tab</field> <field name="name">Add family management smart button</field>
<field name="model">golem.member</field> <field name="model">golem.member</field>
<field name="inherit_id" ref="golem_member.view_form" /> <field name="inherit_id" ref="golem_member.view_form" />
<field name="arch" type="xml"> <field name="arch" type="xml">
<div class="oe_title" position="after"> <div class="oe_title" position="after">
<div class="oe_right oe_button_box"> <div class="oe_right oe_button_box">
<button <button class="oe_inline oe_stat_button" type="object"
class="oe_inline oe_stat_button" type="object" name="button_family_members" icon="fa-users"
name="button_family_members" icon="fa-users"> attrs="{'invisible': [('family_id', '=', False)]}">
<field string="Family Relations" name="family_count" widget="statinfo" /> <field string="family members" name="family_count"
widget="statinfo" />
</button> </button>
</div> </div>
</div> </div>
<field name="lastname" position="before">
<field name="family_id" />
<field name="family_role" />
</field>
</field> </field>
</record> </record>
<!-- Tree -->
<record id="family_tree" model="ir.ui.view">
<field name="name">Family list</field>
<field name="model">golem.member.family</field>
<field name="arch" type="xml">
<tree editable="top">
<field name="partnerfrom_id" string="Family Member From" />
<field name="relation_id" string="is the ... of" />
<field name="partnerto_id" string="Family Member To" />
</tree>
</field>
</record>
<!-- Searches -->
<record id="view_filter" model="ir.ui.view">
<field name="name">GOLEM Families Filters</field>
<field name="model">golem.member.family</field>
<field name="arch" type="xml">
<search>
<field name="fullrelation" />
<field name="relation_id" widget="many2one" />
<group string="Group By">
<filter name="group_relation" string="By relation"
context="{'group_by': 'relation_id'}"/>
</group>
</search>
</field>
</record>
<!-- Actions -->
<act_window id="family_action_list" name="GOLEM Family Relations List"
res_model="golem.member.family" view_mode="tree" />
<act_window id="family_relation_type_action"
name="GOLEM Family Relation Types List"
res_model="golem.member.family.relation" view_mode="tree" />
<!-- Menus -->
<menuitem id="family_menu_list" name="Family relations"
parent="membership.menu_membership" action="family_action_list"
sequence="10" />
<menuitem id="family_relation_type_menu_list" name="Family Rel. Types"
parent="base.menu_marketing_config_association"
action="family_relation_type_action" sequence="3" />
</data> </data>
</openerp> </openerp>