Browse Source

Add module partner_postal_address

12.0
remi-filament 5 years ago
parent
commit
7993519015
  1. 21
      partner_postal_address/README.rst
  2. 4
      partner_postal_address/__init__.py
  3. 18
      partner_postal_address/__manifest__.py
  4. 60
      partner_postal_address/i18n/fr.po
  5. 60
      partner_postal_address/i18n/partner_postal_address.pot
  6. 4
      partner_postal_address/models/__init__.py
  7. 10
      partner_postal_address/models/res_partner.py
  8. 1
      partner_postal_address/readme/CONTRIBUTORS.rst
  9. 1
      partner_postal_address/readme/CREDITS.rst
  10. 3
      partner_postal_address/readme/DESCRIPTION.rst
  11. 5
      partner_postal_address/readme/USAGE.rst
  12. BIN
      partner_postal_address/static/description/icon.png

21
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.

4
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

18
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"],
}

60
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"

60
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 ""

4
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

10
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')])

1
partner_postal_address/readme/CONTRIBUTORS.rst

@ -0,0 +1 @@
* Rémi Cazenave <remi-filament> (https://le-filament.com)

1
partner_postal_address/readme/CREDITS.rst

@ -0,0 +1 @@
* Le Filament <https://le-filament.com>

3
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.

5
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"

BIN
partner_postal_address/static/description/icon.png

After

Width: 128  |  Height: 128  |  Size: 9.2 KiB

Loading…
Cancel
Save