From 861abca7145513d779d011b5d51cf68ad3c51464 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Mon, 18 May 2015 13:06:01 +0200 Subject: [PATCH 1/6] Add module partner_gender. --- partner_gender/README.rst | 59 +++++++++++++++++++++ partner_gender/__init__.py | 19 +++++++ partner_gender/__openerp__.py | 35 ++++++++++++ partner_gender/i18n/es.po | 38 +++++++++++++ partner_gender/i18n/partner_gender.pot | 37 +++++++++++++ partner_gender/models.py | 26 +++++++++ partner_gender/static/description/icon.png | Bin 0 -> 1978 bytes partner_gender/static/description/icon.svg | 49 +++++++++++++++++ partner_gender/views/res_partner.xml | 38 +++++++++++++ 9 files changed, 301 insertions(+) create mode 100644 partner_gender/README.rst create mode 100644 partner_gender/__init__.py create mode 100644 partner_gender/__openerp__.py create mode 100644 partner_gender/i18n/es.po create mode 100644 partner_gender/i18n/partner_gender.pot create mode 100644 partner_gender/models.py create mode 100644 partner_gender/static/description/icon.png create mode 100644 partner_gender/static/description/icon.svg create mode 100644 partner_gender/views/res_partner.xml diff --git a/partner_gender/README.rst b/partner_gender/README.rst new file mode 100644 index 000000000..bab19569f --- /dev/null +++ b/partner_gender/README.rst @@ -0,0 +1,59 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 + +Partner Gender +============== + +This module was written to extend the functionality of `base_contact`_ to +support setting the gender of a partner. + + +.. _base_contact: https://github.com/OCA/partner-contact/tree/8.0/base_contact + +Installation +============ + +To install this module, you need to: + +* Install the `partner-contact`_ repository. + + +.. _partner-contact: https://github.com/OCA/partner-contact/ + +Usage +===== + +To use this module, you need to: + +* Edit a partner or create a new one. +* Ensure the partner is **not** a company. +* Go to the *Personal information* sheet. +* Set the gender there. + +For further information, please visit: + +* https://www.odoo.com/forum/help-1 +* https://github.com/OCA/partner-contact/ + +Credits +======= + +Contributors +------------ + +* Jairo Llopis + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit http://odoo-community.org. diff --git a/partner_gender/__init__.py b/partner_gender/__init__.py new file mode 100644 index 000000000..685080d25 --- /dev/null +++ b/partner_gender/__init__.py @@ -0,0 +1,19 @@ +# -*- encoding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . import models diff --git a/partner_gender/__openerp__.py b/partner_gender/__openerp__.py new file mode 100644 index 000000000..1634a4d3e --- /dev/null +++ b/partner_gender/__openerp__.py @@ -0,0 +1,35 @@ +# -*- encoding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 . + +{ + "name": "Partner gender", + "version": "1.0", + "category": "Customer Relationship Management", + "author": "Odoo Community Association (OCA), Grupo ESOC", + "license": "AGPL-3", + "website": "https://odoo-community.org/", + "installable": True, + "application": False, + "summary": "Add gender field to partners", + "depends": [ + "base_contact", + ], + "data": [ + "views/res_partner.xml", + ], +} diff --git a/partner_gender/i18n/es.po b/partner_gender/i18n/es.po new file mode 100644 index 000000000..f58f87b5a --- /dev/null +++ b/partner_gender/i18n/es.po @@ -0,0 +1,38 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_gender +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0-20150514\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-18 10:55+0000\n" +"PO-Revision-Date: 2015-05-18 12:57+0100\n" +"Last-Translator: Jairo Llopis \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.7.6\n" +"Language: es_ES\n" + +#. module: partner_gender +#: selection:res.partner,gender:0 +msgid "Female" +msgstr "Femenino" + +#. module: partner_gender +#: field:res.partner,gender:0 +msgid "Gender" +msgstr "Género" + +#. module: partner_gender +#: selection:res.partner,gender:0 +msgid "Male" +msgstr "Masculino" + +#. module: partner_gender +#: model:ir.model,name:partner_gender.model_res_partner +msgid "Partner" +msgstr "Empresa" diff --git a/partner_gender/i18n/partner_gender.pot b/partner_gender/i18n/partner_gender.pot new file mode 100644 index 000000000..b7839051f --- /dev/null +++ b/partner_gender/i18n/partner_gender.pot @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_gender +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0-20150514\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-18 10:55+0000\n" +"PO-Revision-Date: 2015-05-18 10:55+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: partner_gender +#: selection:res.partner,gender:0 +msgid "Female" +msgstr "" + +#. module: partner_gender +#: field:res.partner,gender:0 +msgid "Gender" +msgstr "" + +#. module: partner_gender +#: selection:res.partner,gender:0 +msgid "Male" +msgstr "" + +#. module: partner_gender +#: model:ir.model,name:partner_gender.model_res_partner +msgid "Partner" +msgstr "" + diff --git a/partner_gender/models.py b/partner_gender/models.py new file mode 100644 index 000000000..88f632381 --- /dev/null +++ b/partner_gender/models.py @@ -0,0 +1,26 @@ +# -*- encoding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# 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 fields, models + + +class Partner(models.Model): + """Partners with gender.""" + _inherit = "res.partner" + + gender = fields.Selection([('male', 'Male'), ('female', 'Female')]) diff --git a/partner_gender/static/description/icon.png b/partner_gender/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..09168c60eae08813041e5f96bb4d401140c1b8ed GIT binary patch literal 1978 zcmV;r2SxaaP)0fB{WA8Iz4 z8K%!v^{uLh{*rpwt(ors^xs{5y1J^S6B)&f1#SVVLu}&&uq9VALNEk41$YsakASK~ zBd9QD5uF(wWxk1k%)LV5I39P~7LZX$y~&3&LkjV13&;#9=-@Q47x)g?kSo80)G`)Wi=G)%fFmLI=M)owrNDlo>s{Rm zEC8+upl2*_NMj#OK%cztO%y)s{5_-!m;r1eIurcL#@xPi&^2Q#aB0zZQ)|fWzz*U! zqPT1Zt`l^P1OCz2PAM}Wg@z0P){wjr`K2BB5U4HEHV*h#Dg#lOi0Rq87kC$#4Gcw2%ew+2fqAIG z1T6vfSFUVFnV)JdLp=-V2K^uKJ}`-JS8O$^Df$>VYq0-{HlrT+9ld~00!x4aG3XeE zYLd=rYAG&1PyuH2Mn9!p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/partner_gender/views/res_partner.xml b/partner_gender/views/res_partner.xml new file mode 100644 index 000000000..2a7f53139 --- /dev/null +++ b/partner_gender/views/res_partner.xml @@ -0,0 +1,38 @@ + + + + + + + + + Partner gender + res.partner + + + + + + + + + + + + From 7ac6685c4455d9fc2f3a1dfce831d556e1625a52 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Tue, 19 May 2015 09:19:47 +0200 Subject: [PATCH 2/6] Rename module to base_contact_gender. --- {partner_gender => base_contact_gender}/README.rst | 0 {partner_gender => base_contact_gender}/__init__.py | 0 .../__openerp__.py | 4 ++-- {partner_gender => base_contact_gender}/i18n/es.po | 0 .../i18n/partner_gender.pot | 0 {partner_gender => base_contact_gender}/models.py | 0 .../static/description/icon.png | Bin .../static/description/icon.svg | 0 .../views/res_partner.xml | 0 9 files changed, 2 insertions(+), 2 deletions(-) rename {partner_gender => base_contact_gender}/README.rst (100%) rename {partner_gender => base_contact_gender}/__init__.py (100%) rename {partner_gender => base_contact_gender}/__openerp__.py (93%) rename {partner_gender => base_contact_gender}/i18n/es.po (100%) rename {partner_gender => base_contact_gender}/i18n/partner_gender.pot (100%) rename {partner_gender => base_contact_gender}/models.py (100%) rename {partner_gender => base_contact_gender}/static/description/icon.png (100%) rename {partner_gender => base_contact_gender}/static/description/icon.svg (100%) rename {partner_gender => base_contact_gender}/views/res_partner.xml (100%) diff --git a/partner_gender/README.rst b/base_contact_gender/README.rst similarity index 100% rename from partner_gender/README.rst rename to base_contact_gender/README.rst diff --git a/partner_gender/__init__.py b/base_contact_gender/__init__.py similarity index 100% rename from partner_gender/__init__.py rename to base_contact_gender/__init__.py diff --git a/partner_gender/__openerp__.py b/base_contact_gender/__openerp__.py similarity index 93% rename from partner_gender/__openerp__.py rename to base_contact_gender/__openerp__.py index 1634a4d3e..bfb2f1735 100644 --- a/partner_gender/__openerp__.py +++ b/base_contact_gender/__openerp__.py @@ -17,7 +17,7 @@ # along with this program. If not, see . { - "name": "Partner gender", + "name": "Contact gender", "version": "1.0", "category": "Customer Relationship Management", "author": "Odoo Community Association (OCA), Grupo ESOC", @@ -25,7 +25,7 @@ "website": "https://odoo-community.org/", "installable": True, "application": False, - "summary": "Add gender field to partners", + "summary": "Add gender field to contacts", "depends": [ "base_contact", ], diff --git a/partner_gender/i18n/es.po b/base_contact_gender/i18n/es.po similarity index 100% rename from partner_gender/i18n/es.po rename to base_contact_gender/i18n/es.po diff --git a/partner_gender/i18n/partner_gender.pot b/base_contact_gender/i18n/partner_gender.pot similarity index 100% rename from partner_gender/i18n/partner_gender.pot rename to base_contact_gender/i18n/partner_gender.pot diff --git a/partner_gender/models.py b/base_contact_gender/models.py similarity index 100% rename from partner_gender/models.py rename to base_contact_gender/models.py diff --git a/partner_gender/static/description/icon.png b/base_contact_gender/static/description/icon.png similarity index 100% rename from partner_gender/static/description/icon.png rename to base_contact_gender/static/description/icon.png diff --git a/partner_gender/static/description/icon.svg b/base_contact_gender/static/description/icon.svg similarity index 100% rename from partner_gender/static/description/icon.svg rename to base_contact_gender/static/description/icon.svg diff --git a/partner_gender/views/res_partner.xml b/base_contact_gender/views/res_partner.xml similarity index 100% rename from partner_gender/views/res_partner.xml rename to base_contact_gender/views/res_partner.xml From 4d0a86c6111d56ee629698985ccbab3701960caa Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Tue, 19 May 2015 09:25:13 +0200 Subject: [PATCH 3/6] Use a better icon. --- .../static/description/icon.png | Bin 1978 -> 2686 bytes .../static/description/icon.svg | 48 ++++++++---------- 2 files changed, 22 insertions(+), 26 deletions(-) diff --git a/base_contact_gender/static/description/icon.png b/base_contact_gender/static/description/icon.png index 09168c60eae08813041e5f96bb4d401140c1b8ed..e3761210a2023ef9469e5533c97466694e7c4f90 100644 GIT binary patch delta 2604 zcmV+{3e)wv5B?O8ZGQ>-NkldvH|M9mhYvyCES&+WIQ^XvZlcVzjL&I!?7Z z*0y469fb{2D+)>y6q%}6EP`GG2ngExpyW|StHqLq`W*Yvs#RMZr;alwAz%^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5&5MZ_z}@lV^6xiJ03&P(49mr+ zCs8TDy{I(U6-EJvku`55-efN-T@bUJfg=P-^aUH_ZC->?2 zi#|-cXJidTKG}vQA;Re;F97c#Ev6vMtG1eh8kJvfaFBg7G;7^J6oYfQnvucsAvCXoiA9{D|wi=$`g zhui@tO&fEahwzUpv4>vMChHLJy?;&&kgFHXoXws%FUZiral7+~z+-pyoJ_AsFJJRTr zORTBWrvW*R-$>CtQ5p{90q@w8rbQKMkr^q5C#qu9oSU@A?&$d5sW8U6P z$kPuz)G{7M>$SVcOUOZbs6}2T+Y$)ekKS*C%&{dfN~%zc0h9~&Eb3;OYqMfxL;jxWAimZR1siJEJH&op&(+{7zk zkVZ-BP%G)^9*nc7$(MH$Za!ZRU@q{b!M-crj1GFCmTWaSFdk|U#Y*6D)LGtJ*hha< zlJE@hIptH?Qe_1yb-y6!3cQW^K`JgsQL9C4LtT0M&|9-aDs8|Eq<{EXBMdW9tL%g| zCaSWBbiZnjgj!VdAia-|yPO8zpfU#ZMMfjR?k!DRSsU;b@GuF@=ZG4YvW$MHUq_gPI;%$@PuTZRotC>$Lz6b3hU-+q zJQZhIhX2*@oJC!+;eYxxW@%QhmzatKaovy$j?56p$P96e%n--O3~>w>o ziR0#*+8eqHhOCWvd+n%^B&o!Ov=`Lqky1DJ2T + viewBox="0 0 99.999997 99.999997" + id="svg2" + version="1.1"> - - - - + + From 3fee8d806836a27e7892440d31e39e6f1b085f32 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Tue, 19 May 2015 09:49:22 +0200 Subject: [PATCH 4/6] Icon credits. --- base_contact_gender/README.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base_contact_gender/README.rst b/base_contact_gender/README.rst index bab19569f..b8c0ea5bf 100644 --- a/base_contact_gender/README.rst +++ b/base_contact_gender/README.rst @@ -38,6 +38,8 @@ For further information, please visit: Credits ======= +* Icon from `Font Awesome `_. + Contributors ------------ From 7a843602b6b736dd7cf70c546c7a079d3cfbd1a1 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Wed, 20 May 2015 12:36:57 +0200 Subject: [PATCH 5/6] Rename to partner_contact_gender. --- .../README.rst | 0 .../__init__.py | 0 .../__openerp__.py | 0 .../i18n/es.po | 0 .../i18n/partner_gender.pot | 0 .../models.py | 0 .../static/description/icon.png | Bin .../static/description/icon.svg | 0 .../views/res_partner.xml | 0 9 files changed, 0 insertions(+), 0 deletions(-) rename {base_contact_gender => partner_contact_gender}/README.rst (100%) rename {base_contact_gender => partner_contact_gender}/__init__.py (100%) rename {base_contact_gender => partner_contact_gender}/__openerp__.py (100%) rename {base_contact_gender => partner_contact_gender}/i18n/es.po (100%) rename {base_contact_gender => partner_contact_gender}/i18n/partner_gender.pot (100%) rename {base_contact_gender => partner_contact_gender}/models.py (100%) rename {base_contact_gender => partner_contact_gender}/static/description/icon.png (100%) rename {base_contact_gender => partner_contact_gender}/static/description/icon.svg (100%) rename {base_contact_gender => partner_contact_gender}/views/res_partner.xml (100%) diff --git a/base_contact_gender/README.rst b/partner_contact_gender/README.rst similarity index 100% rename from base_contact_gender/README.rst rename to partner_contact_gender/README.rst diff --git a/base_contact_gender/__init__.py b/partner_contact_gender/__init__.py similarity index 100% rename from base_contact_gender/__init__.py rename to partner_contact_gender/__init__.py diff --git a/base_contact_gender/__openerp__.py b/partner_contact_gender/__openerp__.py similarity index 100% rename from base_contact_gender/__openerp__.py rename to partner_contact_gender/__openerp__.py diff --git a/base_contact_gender/i18n/es.po b/partner_contact_gender/i18n/es.po similarity index 100% rename from base_contact_gender/i18n/es.po rename to partner_contact_gender/i18n/es.po diff --git a/base_contact_gender/i18n/partner_gender.pot b/partner_contact_gender/i18n/partner_gender.pot similarity index 100% rename from base_contact_gender/i18n/partner_gender.pot rename to partner_contact_gender/i18n/partner_gender.pot diff --git a/base_contact_gender/models.py b/partner_contact_gender/models.py similarity index 100% rename from base_contact_gender/models.py rename to partner_contact_gender/models.py diff --git a/base_contact_gender/static/description/icon.png b/partner_contact_gender/static/description/icon.png similarity index 100% rename from base_contact_gender/static/description/icon.png rename to partner_contact_gender/static/description/icon.png diff --git a/base_contact_gender/static/description/icon.svg b/partner_contact_gender/static/description/icon.svg similarity index 100% rename from base_contact_gender/static/description/icon.svg rename to partner_contact_gender/static/description/icon.svg diff --git a/base_contact_gender/views/res_partner.xml b/partner_contact_gender/views/res_partner.xml similarity index 100% rename from base_contact_gender/views/res_partner.xml rename to partner_contact_gender/views/res_partner.xml From 9aaae0e0d1783a65f5f4e68717278bd28c7dd4a4 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Wed, 20 May 2015 12:38:30 +0200 Subject: [PATCH 6/6] Update dependencies. --- partner_contact_gender/README.rst | 5 +---- partner_contact_gender/__openerp__.py | 2 +- partner_contact_gender/views/res_partner.xml | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/partner_contact_gender/README.rst b/partner_contact_gender/README.rst index b8c0ea5bf..9ec0f96f0 100644 --- a/partner_contact_gender/README.rst +++ b/partner_contact_gender/README.rst @@ -4,12 +4,9 @@ Partner Gender ============== -This module was written to extend the functionality of `base_contact`_ to +This module was written to extend the functionality of Odoo contacts manager to support setting the gender of a partner. - -.. _base_contact: https://github.com/OCA/partner-contact/tree/8.0/base_contact - Installation ============ diff --git a/partner_contact_gender/__openerp__.py b/partner_contact_gender/__openerp__.py index bfb2f1735..f8e750e09 100644 --- a/partner_contact_gender/__openerp__.py +++ b/partner_contact_gender/__openerp__.py @@ -27,7 +27,7 @@ "application": False, "summary": "Add gender field to contacts", "depends": [ - "base_contact", + "partner_contact_personal_information_page", ], "data": [ "views/res_partner.xml", diff --git a/partner_contact_gender/views/res_partner.xml b/partner_contact_gender/views/res_partner.xml index 2a7f53139..fdaa83893 100644 --- a/partner_contact_gender/views/res_partner.xml +++ b/partner_contact_gender/views/res_partner.xml @@ -24,10 +24,10 @@ along with this program. If not, see . Partner gender res.partner - + - +