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: Migration to 18.0 #1901

Open
wants to merge 31 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
31 commits
Select commit Hold shift + click to select a range
adbab59
Rename to partner_contact_gender.
May 20, 2015
27256f3
[9.0] Upgrade Partner Gender module
Nov 19, 2015
854a3f5
[ADD] init hook to set gender based on titles
hbrunn May 31, 2016
29736ac
Fix multiple tabs "contact information"
leemannd Jan 18, 2016
6883972
[MIG] partner_contact_gender: Migration to 11.0
Oct 31, 2017
c3457b1
Translated using Weblate (Spanish)
mvrodriguez Mar 1, 2019
312ffbb
[MIG] partner_contact_gender: Migration to 12.0
oihane Mar 12, 2019
95cfebe
Translated using Weblate (Danish)
hhgabelgaard Jul 30, 2019
6937ff9
[MIG] partner_contact_gender: Migration to 13.0
Daemo00 Oct 13, 2019
6535acc
Translated using Weblate (Catalan)
eduardgm Feb 2, 2020
465ceb1
Translated using Weblate (Portuguese (Brazil))
Aug 12, 2020
2657c44
[MIG] partner_contact_gender: Migration to 14.0
newtratip Oct 15, 2020
3b2d2ec
Translated using Weblate (Portuguese)
pedrocs-exo Nov 10, 2021
844479f
Translated using Weblate (Italian)
primes2h Dec 10, 2021
baf46f6
[MIG] partner_contact_gender Migration to 15.0
lfreeke Jan 24, 2022
1b7ad24
[MIG] partner_contact_gender: Migration to 16.0
carmenbianca Sep 8, 2022
dcbfec2
[FIX] partner_contact_gender: Remove superfluous .pot file
carmenbianca Oct 11, 2022
88f26c5
Translated using Weblate (German)
marylla Nov 4, 2022
deedc0b
Translated using Weblate (French)
PierrickBrun Nov 29, 2022
9cb117c
Translated using Weblate (Croatian)
badbole Jan 3, 2023
ba0f4c0
Translated using Weblate (Italian)
mymage May 30, 2023
804c056
Translated using Weblate (Japanese)
kanda999 Nov 30, 2023
a12d320
[IMP] partner_contact_gender: pre-commit auto fixes
quoc-pn Dec 7, 2023
3cc3441
[MIG] partner_contact_gender: Migration to 17.0
quoc-pn Dec 6, 2023
498d5ca
Translated using Weblate (Swedish)
jakobkrabbe Jun 5, 2024
3ce58b6
[IMP] partner_contact_role: pre-commit execution
jdidderen-nsi Aug 7, 2024
67cae86
[IMP] partner_contact_gender: improvment to readme / DESCRIPTION, rea…
polchampion Sep 30, 2024
a147ac3
[IMP] partner_contact_gender: improve readme and icon
polchampion Sep 30, 2024
9ae1b8a
[IMP] partner_contact_gender: improve readme and icon 2.0
polchampion Sep 30, 2024
b423025
[MIG] partner_contact_gender: Migration to 18.0
Borruso Nov 26, 2024
505f254
[DON'T MERGE] test-requirements.txt
Borruso Nov 26, 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/18.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-18-0/partner-contact-18-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=18.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:%2018.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 <[email protected]>
- Jairo Llopis <[email protected]>
- Richard deMeester <[email protected]>
- Tharathip Chaweewongphan <[email protected]>
- `Komit Company Limited <https://komit-consulting.com/>`__:

- Quoc Pham Ngoc <[email protected]>

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/18.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.0",
"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 <[email protected]>, 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 <[email protected]>, 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 <[email protected]>, 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 <[email protected]>, 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 <[email protected]>, 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 <[email protected]>, 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 <[email protected]>, 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 <[email protected]>, 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 <[email protected]>, 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 <[email protected]>\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