Skip to content

Commit

Permalink
Merge PR #1627 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by gurneyalex
  • Loading branch information
OCA-git-bot committed Dec 8, 2023
2 parents e6f3255 + fe0605a commit eb576d4
Show file tree
Hide file tree
Showing 71 changed files with 4,164 additions and 0 deletions.
Empty file added all-physical.sloc
Empty file.
Empty file added all.filecount
Empty file.
Binary file added pandoc-3.1.9-1-amd64.deb
Binary file not shown.
80 changes: 80 additions & 0 deletions partner_address_street3/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
====================
Street3 in addresses
====================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:02ed6e826cea014a86dfbe2d8189ccee8d6a0b9f1163112fd6aaf2dd24415aa4
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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_address_street3
: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_address_street3
: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 base *res.partner* model by supplying a 3rd line
on addresses (street3).

**Table of contents**

.. contents::
:local:

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_address_street3%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
-------

* Camptocamp

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

- Nicolas Bessi <nicolas.bessi@camptocamp.com>
- Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
- Huy Ly <huyly0909@gmail.com>
- Alexis de Lattre <alexis.delattre@akretion.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_address_street3>`_ 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_address_street3/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import models
from .hooks import post_init_hook
from .hooks import uninstall_hook
18 changes: 18 additions & 0 deletions partner_address_street3/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2014-2020 Camptocamp SA
# @author: Nicolas Bessi
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Street3 in addresses",
"summary": "Add a third address line on partners",
"license": "AGPL-3",
"version": "17.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"maintainer": "Camptocamp",
"category": "Sales",
"website": "https://github.com/OCA/partner-contact",
"data": ["views/res_partner.xml"],
"post_init_hook": "post_init_hook",
"uninstall_hook": "uninstall_hook",
"installable": True,
}
40 changes: 40 additions & 0 deletions partner_address_street3/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright 2016-2020 Sodexis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).


def post_init_hook(env):
"""Add street3 to address format"""
query = """
UPDATE res_country
SET address_format = replace(
address_format,
E'%(street2)s\n',
E'%(street2)s\n%(street3)s\n'
)
"""
env.cr.execute(query)


def uninstall_hook(env):
"""Remove street3 from address format"""
# Remove %(street3)s\n from address_format
query = """
UPDATE res_country
SET address_format = replace(
address_format,
E'%(street3)s\n',
''
)
"""
env.cr.execute(query)

# Remove %(street3)s from address_format
query = """
UPDATE res_country
SET address_format = replace(
address_format,
E'%(street3)s',
''
)
"""
env.cr.execute(query)
63 changes: 63 additions & 0 deletions partner_address_street3/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_address_street3
#
# 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_address_street3
#: model:ir.model,name:partner_address_street3.model_res_partner
msgid "Contact"
msgstr ""

#. module: partner_address_street3
#: model:ir.model,name:partner_address_street3.model_res_country
msgid "Country"
msgstr ""

#. module: partner_address_street3
#: model:ir.model.fields,help:partner_address_street3.field_res_country__address_format
msgid ""
"Display format to use for addresses belonging to this country.\n"
"\n"
"You can use python-style string pattern with all the fields of the address "
"(for example, use '%(street)s' to display the field 'street') plus\n"
"%(state_name)s: the name of the state\n"
"%(state_code)s: the code of the state\n"
"%(country_name)s: the name of the country\n"
"%(country_code)s: the code of the country"
msgstr ""

#. module: partner_address_street3
#: model:ir.model.fields,field_description:partner_address_street3.field_res_country__address_format
msgid "Layout in Reports"
msgstr ""

#. module: partner_address_street3
#: model:ir.model.fields,field_description:partner_address_street3.field_res_partner__street3
#: model:ir.model.fields,field_description:partner_address_street3.field_res_users__street3
msgid "Street 3"
msgstr ""

#. module: partner_address_street3
#: model_terms:ir.ui.view,arch_db:partner_address_street3.res_partner_view_form_private
#: model_terms:ir.ui.view,arch_db:partner_address_street3.view_partner_address_form
#: model_terms:ir.ui.view,arch_db:partner_address_street3.view_partner_form
msgid "Street 3..."
msgstr ""

#~ msgid "Partner"
#~ msgstr "ተባባሪ"
64 changes: 64 additions & 0 deletions partner_address_street3/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_address_street3
#
# 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_address_street3
#: model:ir.model,name:partner_address_street3.model_res_partner
msgid "Contact"
msgstr ""

#. module: partner_address_street3
#: model:ir.model,name:partner_address_street3.model_res_country
msgid "Country"
msgstr ""

#. module: partner_address_street3
#: model:ir.model.fields,help:partner_address_street3.field_res_country__address_format
msgid ""
"Display format to use for addresses belonging to this country.\n"
"\n"
"You can use python-style string pattern with all the fields of the address "
"(for example, use '%(street)s' to display the field 'street') plus\n"
"%(state_name)s: the name of the state\n"
"%(state_code)s: the code of the state\n"
"%(country_name)s: the name of the country\n"
"%(country_code)s: the code of the country"
msgstr ""

#. module: partner_address_street3
#: model:ir.model.fields,field_description:partner_address_street3.field_res_country__address_format
msgid "Layout in Reports"
msgstr ""

#. module: partner_address_street3
#: model:ir.model.fields,field_description:partner_address_street3.field_res_partner__street3
#: model:ir.model.fields,field_description:partner_address_street3.field_res_users__street3
msgid "Street 3"
msgstr ""

#. module: partner_address_street3
#: model_terms:ir.ui.view,arch_db:partner_address_street3.res_partner_view_form_private
#: model_terms:ir.ui.view,arch_db:partner_address_street3.view_partner_address_form
#: model_terms:ir.ui.view,arch_db:partner_address_street3.view_partner_form
msgid "Street 3..."
msgstr ""

#~ msgid "Partner"
#~ msgstr "الشريك"
63 changes: 63 additions & 0 deletions partner_address_street3/i18n/bg.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_address_street3
#
# 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_address_street3
#: model:ir.model,name:partner_address_street3.model_res_partner
msgid "Contact"
msgstr ""

#. module: partner_address_street3
#: model:ir.model,name:partner_address_street3.model_res_country
msgid "Country"
msgstr ""

#. module: partner_address_street3
#: model:ir.model.fields,help:partner_address_street3.field_res_country__address_format
msgid ""
"Display format to use for addresses belonging to this country.\n"
"\n"
"You can use python-style string pattern with all the fields of the address "
"(for example, use '%(street)s' to display the field 'street') plus\n"
"%(state_name)s: the name of the state\n"
"%(state_code)s: the code of the state\n"
"%(country_name)s: the name of the country\n"
"%(country_code)s: the code of the country"
msgstr ""

#. module: partner_address_street3
#: model:ir.model.fields,field_description:partner_address_street3.field_res_country__address_format
msgid "Layout in Reports"
msgstr ""

#. module: partner_address_street3
#: model:ir.model.fields,field_description:partner_address_street3.field_res_partner__street3
#: model:ir.model.fields,field_description:partner_address_street3.field_res_users__street3
msgid "Street 3"
msgstr ""

#. module: partner_address_street3
#: model_terms:ir.ui.view,arch_db:partner_address_street3.res_partner_view_form_private
#: model_terms:ir.ui.view,arch_db:partner_address_street3.view_partner_address_form
#: model_terms:ir.ui.view,arch_db:partner_address_street3.view_partner_form
msgid "Street 3..."
msgstr ""

#~ msgid "Partner"
#~ msgstr "Партньор"
Loading

0 comments on commit eb576d4

Please sign in to comment.