forked from OCA/partner-contact
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1115 from OCA/17.0
Syncing from upstream OCA/partner-contact (17.0)
- Loading branch information
Showing
144 changed files
with
7,416 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: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/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 <[email protected]> | ||
- Alexandre Fayolle <[email protected]> | ||
- Huy Ly <[email protected]> | ||
- Alexis de Lattre <[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/17.0/partner_address_street3>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "ተባባሪ" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "الشريك" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "Партньор" |
Oops, something went wrong.