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

Open
wants to merge 24 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
24 commits
Select commit Hold shift + click to select a range
ca0c048
Using under to respect naming convention
nbessi Oct 29, 2014
624bc34
[MIG] port partner_address_street3 to 9.0
gurneyalex Dec 16, 2015
ab26749
[10.0] Port partner_address_street3 (#318)
Nov 2, 2016
bcc85af
[MIG] partner_address_street3 Migration to 11.0
Feb 27, 2018
974726c
[MIG] partner_address_street3: Migration to 12.0
HviorForgeFlow Jan 21, 2019
276ff0f
Translated using Weblate (Spanish)
mvrodriguez Mar 1, 2019
fa71646
Translated using Weblate (Portuguese (Brazil))
Sep 17, 2019
d13fb00
Translated using Weblate (Spanish)
Galoperd Nov 10, 2019
899e43a
Translated using Weblate (German)
psc May 14, 2020
31b70ad
[MIG] partner_address_street3 to v14
alexis-via Dec 14, 2020
7d8fe75
Black, isort and other pre-commit stuff
alexis-via Dec 14, 2020
0bf4220
Translated using Weblate (Italian)
rbellanova Feb 16, 2022
40f0584
[MIG] partner_address_street3: Migration to 15.0
emagdalenaC2i May 19, 2022
7392dcb
[MIG] partner_address_street3: Migration to 16.0
SodexisTeam Dec 19, 2022
728c052
Translated using Weblate (Croatian)
badbole Jan 30, 2023
93f57fe
Translated using Weblate (Spanish)
Ivorra78 Aug 22, 2023
7a1a5bb
Translated using Weblate (French)
Nov 3, 2023
3c04f2b
[IMP] partner_address_street3: pre-commit auto fixes
gurneyalex Dec 7, 2023
0baf9ae
[MIG] partner_address_street3: Migration to 17.0
gurneyalex Dec 7, 2023
ece5c0a
Translated using Weblate (Swedish)
jakobkrabbe Jun 5, 2024
df0a9cd
[IMP] partner_contact_role: pre-commit execution
jdidderen-nsi Aug 7, 2024
7517fb9
[IMP] partner_address_street3: pre-commit auto fixes
LucasTran380381 Oct 23, 2024
0f61e78
[MIG] partner_address_street3: Migration to 18.0
LucasTran380381 Oct 21, 2024
506292e
[MIG] partner_address_street3: Migration to 18.0
Oct 31, 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
81 changes: 81 additions & 0 deletions partner_address_street3/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
====================
Street3 in addresses
====================

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

.. |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_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-18-0/partner-contact-18-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=18.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:%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
-------

* Camptocamp

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

- Nicolas Bessi <[email protected]>
- Alexandre Fayolle <[email protected]>
- Huy Ly <[email protected]>
- Alexis de Lattre <[email protected]>
- Nhan Tran <[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_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": "18.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 <[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_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 <[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_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 <[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_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
Loading