Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

18.0 mig partner contact gender #1941

Open
wants to merge 33 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
c5a99c9
Rename to partner_contact_gender.
May 20, 2015
7c8aca3
[9.0] Upgrade Partner Gender module
Nov 19, 2015
476aa1a
[ADD] init hook to set gender based on titles
hbrunn May 31, 2016
6b67192
Fix multiple tabs "contact information"
leemannd Jan 18, 2016
fbadf04
[MIG] partner_contact_gender: Migration to 11.0
Oct 31, 2017
5a11fc9
Translated using Weblate (Spanish)
mvrodriguez Mar 1, 2019
d248649
[MIG] partner_contact_gender: Migration to 12.0
oihane Mar 12, 2019
4707e9c
Translated using Weblate (Danish)
hhgabelgaard Jul 30, 2019
3a99e43
[MIG] partner_contact_gender: Migration to 13.0
Daemo00 Oct 13, 2019
4475a2b
Translated using Weblate (Catalan)
eduardgm Feb 2, 2020
faf1ad3
Translated using Weblate (Portuguese (Brazil))
Aug 12, 2020
cec6f1d
[MIG] partner_contact_gender: Migration to 14.0
newtratip Oct 15, 2020
6988103
Translated using Weblate (Portuguese)
pedrocs-exo Nov 10, 2021
1f4e12f
Translated using Weblate (Italian)
primes2h Dec 10, 2021
0a3af33
[MIG] partner_contact_gender Migration to 15.0
lfreeke Jan 24, 2022
005e092
[MIG] partner_contact_gender: Migration to 16.0
carmenbianca Sep 8, 2022
f315645
[FIX] partner_contact_gender: Remove superfluous .pot file
carmenbianca Oct 11, 2022
96417f6
Translated using Weblate (German)
marylla Nov 4, 2022
23ef284
Translated using Weblate (French)
PierrickBrun Nov 29, 2022
f437538
Translated using Weblate (Croatian)
badbole Jan 3, 2023
860a39c
Translated using Weblate (Italian)
mymage May 30, 2023
bd6f4bb
Translated using Weblate (Japanese)
kanda999 Nov 30, 2023
4ddee01
[IMP] partner_contact_gender: pre-commit auto fixes
quoc-pn Dec 7, 2023
1c3bbd9
[MIG] partner_contact_gender: Migration to 17.0
quoc-pn Dec 6, 2023
6bbc53a
[UPD] Update partner_contact_gender.pot
Dec 8, 2023
58d22c6
[BOT] post-merge updates
OCA-git-bot Dec 8, 2023
814fbc3
Translated using Weblate (Swedish)
jakobkrabbe Jun 5, 2024
6a8eb88
[IMP] partner_contact_role: pre-commit execution
jdidderen-nsi Aug 7, 2024
98ce7dd
[IMP] partner_contact_gender: improvment to readme / DESCRIPTION, rea…
polchampion Sep 30, 2024
8110c29
[IMP] partner_contact_gender: improve readme and icon
polchampion Sep 30, 2024
794d4f8
[IMP] partner_contact_gender: improve readme and icon 2.0
polchampion Sep 30, 2024
e268430
[BOT] post-merge updates
OCA-git-bot Oct 16, 2024
4afc17e
[MIG] partner_contact_gender: Migration to 18.0
jeromeguerriat-msf Dec 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions partner_contact_gender/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
==============
Contact gender
==============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:96406392862391e2551776e753c3228246272620c8dc9eed041f6b2e491cd5fd
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github
:target: https://github.com/OCA/partner-contact/tree/17.0/partner_contact_gender
:alt: OCA/partner-contact
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/partner-contact-17-0/partner-contact-17-0-partner_contact_gender
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the contact management functionality. It allows
recording of a partner's gender among three options: "Male", "Female",
"Other".

**Table of contents**

.. contents::
:local:

Usage
=====

A value for 'Gender' can be selected on the 'Personal Information' tab
of the partner contact form.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_contact_gender%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Grupo ESOC
* Tecnativa

Contributors
------------

- Holger Brunn <hbrunn@therp.nl>
- Jairo Llopis <j.llopis@grupoesoc.es>
- Richard deMeester <richard@willowit.com.au>
- Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>
- `Komit Company Limited <https://komit-consulting.com/>`__:

- Quoc Pham Ngoc <quoc-pn@komit-consulting.com>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/17.0/partner_contact_gender>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions partner_contact_gender/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import models
from .hooks import post_init_hook
18 changes: 18 additions & 0 deletions partner_contact_gender/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2014-2015 Grupo ESOC <www.grupoesoc.es>
# Copyright 2017-Apertoso N.V. (<http://www.apertoso.be>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Contact gender",
"summary": "Add gender field to contacts",
"version": "18.0.1.0.1",
"category": "Customer Relationship Management",
"website": "https://github.com/OCA/partner-contact",
"author": "Grupo ESOC, Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"auto_install": False,
"depends": ["partner_contact_personal_information_page"],
"data": ["views/res_partner.xml"],
"post_init_hook": "post_init_hook",
}
14 changes: 14 additions & 0 deletions partner_contact_gender/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2016-2018 Therp BV <https://therp.nl>.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).


def post_init_hook(env):
gender_mappings = {
"female": env.ref("base.res_partner_title_madam")
+ env.ref("base.res_partner_title_miss"),
"male": env.ref("base.res_partner_title_mister"),
}
for gender, titles in list(gender_mappings.items()):
env["res.partner"].with_context(active_test=False).search(
[("title", "in", titles.ids)]
).write({"gender": gender})
48 changes: 48 additions & 0 deletions partner_contact_gender/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_contact_gender
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-10 03:39+0000\n"
"PO-Revision-Date: 2017-03-10 03:39+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n"
"Language: am\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: partner_contact_gender
#: model:ir.model,name:partner_contact_gender.model_res_partner
msgid "Contact"
msgstr ""

#. module: partner_contact_gender
#: model:ir.model.fields.selection,name:partner_contact_gender.selection__res_partner__gender__female
msgid "Female"
msgstr ""

#. module: partner_contact_gender
#: model:ir.model.fields,field_description:partner_contact_gender.field_res_partner__gender
#: model:ir.model.fields,field_description:partner_contact_gender.field_res_users__gender
msgid "Gender"
msgstr ""

#. module: partner_contact_gender
#: model:ir.model.fields.selection,name:partner_contact_gender.selection__res_partner__gender__male
msgid "Male"
msgstr ""

#. module: partner_contact_gender
#: model:ir.model.fields.selection,name:partner_contact_gender.selection__res_partner__gender__other
msgid "Other"
msgstr ""

#~ msgid "Partner"
#~ msgstr "ተባባሪ"
49 changes: 49 additions & 0 deletions partner_contact_gender/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_contact_gender
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-10 03:39+0000\n"
"PO-Revision-Date: 2017-03-10 03:39+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: partner_contact_gender
#: model:ir.model,name:partner_contact_gender.model_res_partner
msgid "Contact"
msgstr ""

#. module: partner_contact_gender
#: model:ir.model.fields.selection,name:partner_contact_gender.selection__res_partner__gender__female
msgid "Female"
msgstr ""

#. module: partner_contact_gender
#: model:ir.model.fields,field_description:partner_contact_gender.field_res_partner__gender
#: model:ir.model.fields,field_description:partner_contact_gender.field_res_users__gender
msgid "Gender"
msgstr ""

#. module: partner_contact_gender
#: model:ir.model.fields.selection,name:partner_contact_gender.selection__res_partner__gender__male
msgid "Male"
msgstr ""

#. module: partner_contact_gender
#: model:ir.model.fields.selection,name:partner_contact_gender.selection__res_partner__gender__other
msgid "Other"
msgstr ""

#~ msgid "Partner"
#~ msgstr "الشريك"
48 changes: 48 additions & 0 deletions partner_contact_gender/i18n/bg.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_contact_gender
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-31 01:39+0000\n"
"PO-Revision-Date: 2016-12-31 01:39+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n"
"Language: bg\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: partner_contact_gender
#: model:ir.model,name:partner_contact_gender.model_res_partner
msgid "Contact"
msgstr ""

#. module: partner_contact_gender
#: model:ir.model.fields.selection,name:partner_contact_gender.selection__res_partner__gender__female
msgid "Female"
msgstr ""

#. module: partner_contact_gender
#: model:ir.model.fields,field_description:partner_contact_gender.field_res_partner__gender
#: model:ir.model.fields,field_description:partner_contact_gender.field_res_users__gender
msgid "Gender"
msgstr ""

#. module: partner_contact_gender
#: model:ir.model.fields.selection,name:partner_contact_gender.selection__res_partner__gender__male
msgid "Male"
msgstr ""

#. module: partner_contact_gender
#: model:ir.model.fields.selection,name:partner_contact_gender.selection__res_partner__gender__other
msgid "Other"
msgstr ""

#~ msgid "Partner"
#~ msgstr "Партньор"
49 changes: 49 additions & 0 deletions partner_contact_gender/i18n/bs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_contact_gender
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-10 03:39+0000\n"
"PO-Revision-Date: 2017-03-10 03:39+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n"
"Language: bs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

#. module: partner_contact_gender
#: model:ir.model,name:partner_contact_gender.model_res_partner
msgid "Contact"
msgstr ""

#. module: partner_contact_gender
#: model:ir.model.fields.selection,name:partner_contact_gender.selection__res_partner__gender__female
msgid "Female"
msgstr ""

#. module: partner_contact_gender
#: model:ir.model.fields,field_description:partner_contact_gender.field_res_partner__gender
#: model:ir.model.fields,field_description:partner_contact_gender.field_res_users__gender
msgid "Gender"
msgstr ""

#. module: partner_contact_gender
#: model:ir.model.fields.selection,name:partner_contact_gender.selection__res_partner__gender__male
msgid "Male"
msgstr ""

#. module: partner_contact_gender
#: model:ir.model.fields.selection,name:partner_contact_gender.selection__res_partner__gender__other
msgid "Other"
msgstr ""

#~ msgid "Partner"
#~ msgstr "Partner"
49 changes: 49 additions & 0 deletions partner_contact_gender/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_contact_gender
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-10 03:39+0000\n"
"PO-Revision-Date: 2020-02-02 21:13+0000\n"
"Last-Translator: eduardgm <eduard.garcia@qubiq.es>\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.10\n"

#. module: partner_contact_gender
#: model:ir.model,name:partner_contact_gender.model_res_partner
msgid "Contact"
msgstr "Contacte"

#. module: partner_contact_gender
#: model:ir.model.fields.selection,name:partner_contact_gender.selection__res_partner__gender__female
msgid "Female"
msgstr "Femení"

#. module: partner_contact_gender
#: model:ir.model.fields,field_description:partner_contact_gender.field_res_partner__gender
#: model:ir.model.fields,field_description:partner_contact_gender.field_res_users__gender
msgid "Gender"
msgstr "Gènere"

#. module: partner_contact_gender
#: model:ir.model.fields.selection,name:partner_contact_gender.selection__res_partner__gender__male
msgid "Male"
msgstr "Masculí"

#. module: partner_contact_gender
#: model:ir.model.fields.selection,name:partner_contact_gender.selection__res_partner__gender__other
msgid "Other"
msgstr "Altre"

#~ msgid "Partner"
#~ msgstr "Empresa"
Loading
Loading