diff --git a/partner_postal_address/README.rst b/partner_postal_address/README.rst new file mode 100644 index 000000000..21cd7854d --- /dev/null +++ b/partner_postal_address/README.rst @@ -0,0 +1,21 @@ +**This file is going to be generated by oca-gen-addon-readme.** + +*Manual changes will be overwritten.* + +Please provide content in the ``readme`` directory: + +* **DESCRIPTION.rst** (required) +* INSTALL.rst (optional) +* CONFIGURE.rst (optional) +* **USAGE.rst** (optional, highly recommended) +* DEVELOP.rst (optional) +* ROADMAP.rst (optional) +* HISTORY.rst (optional, recommended) +* **CONTRIBUTORS.rst** (optional, highly recommended) +* CREDITS.rst (optional) + +Content of this README will also be drawn from the addon manifest, +from keys such as name, authors, maintainers, development_status, +and license. + +A good, one sentence summary in the manifest is also highly recommended. diff --git a/partner_postal_address/__init__.py b/partner_postal_address/__init__.py new file mode 100644 index 000000000..bf50d043a --- /dev/null +++ b/partner_postal_address/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2019 Le Filament +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/partner_postal_address/__manifest__.py b/partner_postal_address/__manifest__.py new file mode 100644 index 000000000..2942fec01 --- /dev/null +++ b/partner_postal_address/__manifest__.py @@ -0,0 +1,18 @@ +# Copyright (C) 2019 Le Filament +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Partner Postal Address", + "summary": "Adds a postal address in address types", + "version": "12.0.1.0.0", + "category": "Partner Management", + "website": "https://github.com/OCA/partner-contact", + "author": "Le Filament, Odoo Community Association (OCA)", + "license": "AGPL-3", + "depends": [ + "contacts", + ], + "installable": True, + "development_status": "Beta", + "maintainers": ["remi-filament"], +} diff --git a/partner_postal_address/i18n/fr.po b/partner_postal_address/i18n/fr.po new file mode 100644 index 000000000..86059fe56 --- /dev/null +++ b/partner_postal_address/i18n/fr.po @@ -0,0 +1,60 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_postal_address +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-14 10:09+0000\n" +"PO-Revision-Date: 2019-08-14 10:09+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_postal_address +#: model:ir.model.fields,field_description:partner_postal_address.field_res_partner__type +#: model:ir.model.fields,field_description:partner_postal_address.field_res_users__type +msgid "Address Type" +msgstr "Type d'adresse" + +#. module: partner_postal_address +#: model:ir.model,name:partner_postal_address.model_res_partner +#: selection:res.partner,type:0 +msgid "Contact" +msgstr "" + +#. module: partner_postal_address +#: selection:res.partner,type:0 +msgid "Invoice address" +msgstr "Adresse de facturation" + +#. module: partner_postal_address +#: selection:res.partner,type:0 +msgid "Other address" +msgstr "Autre adresse" + +#. module: partner_postal_address +#: selection:res.partner,type:0 +msgid "Postal address" +msgstr "Adresse postale" + +#. module: partner_postal_address +#: selection:res.partner,type:0 +msgid "Private Address" +msgstr "Adresse personnelle" + +#. module: partner_postal_address +#: selection:res.partner,type:0 +msgid "Shipping address" +msgstr "Adresse d'expédition" + +#. module: partner_postal_address +#: model:ir.model.fields,help:partner_postal_address.field_res_partner__type +#: model:ir.model.fields,help:partner_postal_address.field_res_users__type +msgid "Used by Sales and Purchase Apps to select the relevant address depending on the context." +msgstr "Utilisé par les Applications Vente et Achats pour sélectionner l'adresse adéquate en fonction du contexte" + diff --git a/partner_postal_address/i18n/partner_postal_address.pot b/partner_postal_address/i18n/partner_postal_address.pot new file mode 100644 index 000000000..cdfe5c5e6 --- /dev/null +++ b/partner_postal_address/i18n/partner_postal_address.pot @@ -0,0 +1,60 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_postal_address +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-14 10:10+0000\n" +"PO-Revision-Date: 2019-08-14 10:10+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_postal_address +#: model:ir.model.fields,field_description:partner_postal_address.field_res_partner__type +#: model:ir.model.fields,field_description:partner_postal_address.field_res_users__type +msgid "Address Type" +msgstr "" + +#. module: partner_postal_address +#: model:ir.model,name:partner_postal_address.model_res_partner +#: selection:res.partner,type:0 +msgid "Contact" +msgstr "" + +#. module: partner_postal_address +#: selection:res.partner,type:0 +msgid "Invoice address" +msgstr "" + +#. module: partner_postal_address +#: selection:res.partner,type:0 +msgid "Other address" +msgstr "" + +#. module: partner_postal_address +#: selection:res.partner,type:0 +msgid "Postal address" +msgstr "" + +#. module: partner_postal_address +#: selection:res.partner,type:0 +msgid "Private Address" +msgstr "" + +#. module: partner_postal_address +#: selection:res.partner,type:0 +msgid "Shipping address" +msgstr "" + +#. module: partner_postal_address +#: model:ir.model.fields,help:partner_postal_address.field_res_partner__type +#: model:ir.model.fields,help:partner_postal_address.field_res_users__type +msgid "Used by Sales and Purchase Apps to select the relevant address depending on the context." +msgstr "" + diff --git a/partner_postal_address/models/__init__.py b/partner_postal_address/models/__init__.py new file mode 100644 index 000000000..1d64ab7bb --- /dev/null +++ b/partner_postal_address/models/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2019 Le Filament +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import res_partner diff --git a/partner_postal_address/models/res_partner.py b/partner_postal_address/models/res_partner.py new file mode 100644 index 000000000..f2af5ecf9 --- /dev/null +++ b/partner_postal_address/models/res_partner.py @@ -0,0 +1,10 @@ +# Copyright (C) 2019 Le Filament +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class Partner(models.Model): + _inherit = 'res.partner' + + type = fields.Selection(selection_add=[('postal', 'Postal address')]) diff --git a/partner_postal_address/readme/CONTRIBUTORS.rst b/partner_postal_address/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..d2a6456df --- /dev/null +++ b/partner_postal_address/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Rémi Cazenave (https://le-filament.com) diff --git a/partner_postal_address/readme/CREDITS.rst b/partner_postal_address/readme/CREDITS.rst new file mode 100644 index 000000000..938ce827a --- /dev/null +++ b/partner_postal_address/readme/CREDITS.rst @@ -0,0 +1 @@ +* Le Filament diff --git a/partner_postal_address/readme/DESCRIPTION.rst b/partner_postal_address/readme/DESCRIPTION.rst new file mode 100644 index 000000000..3f1a1d4c5 --- /dev/null +++ b/partner_postal_address/readme/DESCRIPTION.rst @@ -0,0 +1,3 @@ +This module allows you define an address as Postal address (ie to be used for postal communication). + +It adds a new type of address/contact. diff --git a/partner_postal_address/readme/USAGE.rst b/partner_postal_address/readme/USAGE.rst new file mode 100644 index 000000000..ae319bc90 --- /dev/null +++ b/partner_postal_address/readme/USAGE.rst @@ -0,0 +1,5 @@ +To use this module, you need to: + +#. Go to the partner form +#. Select a company +#. Add a new address and select the type "Postal" diff --git a/partner_postal_address/static/description/icon.png b/partner_postal_address/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/partner_postal_address/static/description/icon.png differ