From bb91b5c3bb5c7a1635459acba6aa7d13de94408f Mon Sep 17 00:00:00 2001 From: Fabien Bourgeois Date: Wed, 13 Jul 2016 19:36:25 +0200 Subject: [PATCH] [ADD]GOLEM Member Skills on partners too --- golem_member_skills/__openerp__.py | 2 +- golem_member_skills/golem_member.py | 4 +- golem_member_skills/golem_member_view.xml | 4 +- golem_member_skills/i18n/fr.po | 18 +++++-- .../i18n/golem_member_skills.pot | 18 +++++-- golem_member_skills/res_partner_view.xml | 53 +++++++++++++++++++ 6 files changed, 86 insertions(+), 13 deletions(-) create mode 100644 golem_member_skills/res_partner_view.xml diff --git a/golem_member_skills/__openerp__.py b/golem_member_skills/__openerp__.py index ca3e90d..4ea1ace 100644 --- a/golem_member_skills/__openerp__.py +++ b/golem_member_skills/__openerp__.py @@ -26,5 +26,5 @@ 'application': False, 'installable': True, 'depends': ['golem_member'], - 'data': ['golem_member_view.xml'] + 'data': ['golem_member_view.xml', 'res_partner_view.xml'] } diff --git a/golem_member_skills/golem_member.py b/golem_member_skills/golem_member.py index cffbf99..047d6cb 100644 --- a/golem_member_skills/golem_member.py +++ b/golem_member_skills/golem_member.py @@ -18,8 +18,8 @@ from openerp import models, fields -class GolemMember(models.Model): - _inherit = 'golem.member' +class ResPartner(models.Model): + _inherit = 'res.partner' is_volunteer = fields.Boolean('Volunteer?') skill_ids = fields.Many2many('golem.member.skill', string='Skills') diff --git a/golem_member_skills/golem_member_view.xml b/golem_member_skills/golem_member_view.xml index e73dd1d..bec7dc0 100644 --- a/golem_member_skills/golem_member_view.xml +++ b/golem_member_skills/golem_member_view.xml @@ -20,7 +20,7 @@ along with this program. If not, see . - + Add skills to Others tab golem.member @@ -33,7 +33,7 @@ along with this program. If not, see . - + Add Skills Search and Filter golem.member diff --git a/golem_member_skills/i18n/fr.po b/golem_member_skills/i18n/fr.po index 707845e..5b78556 100644 --- a/golem_member_skills/i18n/fr.po +++ b/golem_member_skills/i18n/fr.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-06-28 03:18+0000\n" -"PO-Revision-Date: 2016-06-28 03:18+0000\n" +"POT-Creation-Date: 2016-07-13 17:33+0000\n" +"PO-Revision-Date: 2016-07-13 17:33+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -52,7 +52,8 @@ msgid "ID" msgstr "ID" #. module: golem_member_skills -#: view:golem.member:golem_member_skills.skills_search +#: view:golem.member:golem_member_skills.golem_member_skills_search +#: view:res.partner:golem_member_skills.res_partner_skills_search msgid "Is volunteer" msgstr "Est bénévole" @@ -81,6 +82,11 @@ msgstr "Les compétences adhérents doivent être unique." msgid "Member skills" msgstr "Compétences de l'adhérent" +#. module: golem_member_skills +#: model:ir.model,name:golem_member_skills.model_res_partner +msgid "Partner" +msgstr "Partenaire" + #. module: golem_member_skills #: field:golem.member.skill,name:0 msgid "Skill" @@ -88,16 +94,20 @@ msgstr "Compétence" #. module: golem_member_skills #: field:golem.member,skill_ids:0 +#: view:res.partner:golem_member_skills.res_partner_skills_form +#: field:res.partner,skill_ids:0 msgid "Skills" msgstr "Compétences" #. module: golem_member_skills -#: view:golem.member:golem_member_skills.skills_form +#: view:golem.member:golem_member_skills.golem_member_skills_form +#: view:res.partner:golem_member_skills.res_partner_skills_form msgid "Skills..." msgstr "Compétences..." #. module: golem_member_skills #: field:golem.member,is_volunteer:0 +#: field:res.partner,is_volunteer:0 msgid "Volunteer?" msgstr "Bénévole?" diff --git a/golem_member_skills/i18n/golem_member_skills.pot b/golem_member_skills/i18n/golem_member_skills.pot index e95eef4..a0e0a30 100644 --- a/golem_member_skills/i18n/golem_member_skills.pot +++ b/golem_member_skills/i18n/golem_member_skills.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-06-28 03:17+0000\n" -"PO-Revision-Date: 2016-06-28 03:17+0000\n" +"POT-Creation-Date: 2016-07-13 17:32+0000\n" +"PO-Revision-Date: 2016-07-13 17:32+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -51,7 +51,8 @@ msgid "ID" msgstr "" #. module: golem_member_skills -#: view:golem.member:golem_member_skills.skills_search +#: view:golem.member:golem_member_skills.golem_member_skills_search +#: view:res.partner:golem_member_skills.res_partner_skills_search msgid "Is volunteer" msgstr "" @@ -80,6 +81,11 @@ msgstr "" msgid "Member skills" msgstr "" +#. module: golem_member_skills +#: model:ir.model,name:golem_member_skills.model_res_partner +msgid "Partner" +msgstr "" + #. module: golem_member_skills #: field:golem.member.skill,name:0 msgid "Skill" @@ -87,16 +93,20 @@ msgstr "" #. module: golem_member_skills #: field:golem.member,skill_ids:0 +#: view:res.partner:golem_member_skills.res_partner_skills_form +#: field:res.partner,skill_ids:0 msgid "Skills" msgstr "" #. module: golem_member_skills -#: view:golem.member:golem_member_skills.skills_form +#: view:golem.member:golem_member_skills.golem_member_skills_form +#: view:res.partner:golem_member_skills.res_partner_skills_form msgid "Skills..." msgstr "" #. module: golem_member_skills #: field:golem.member,is_volunteer:0 +#: field:res.partner,is_volunteer:0 msgid "Volunteer?" msgstr "" diff --git a/golem_member_skills/res_partner_view.xml b/golem_member_skills/res_partner_view.xml new file mode 100644 index 0000000..25e724b --- /dev/null +++ b/golem_member_skills/res_partner_view.xml @@ -0,0 +1,53 @@ + + + + + + + + + Add skills as new tab inside notebook + res.partner + + + + + + + + + + + + + + + Add Skills Search and Filter + res.partner + + + + + + + + + +