diff --git a/partner_brand/README.rst b/partner_brand/README.rst new file mode 100644 index 000000000..ce1a87eaf --- /dev/null +++ b/partner_brand/README.rst @@ -0,0 +1,100 @@ +============= +Partner Brand +============= + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/12.0/partner_brand + :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-12-0/partner-contact-12-0-partner_brand + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/134/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows you to manage your brand with a different address, logo, +email, website, etc. + +It adds a new type of address/contact and a filter to easily find them. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +#. Go to the partner form +#. Select a company +#. Add a new address and select the type "Brand" + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Open Source Integrators + +Contributors +~~~~~~~~~~~~ + +* Raphael Lee +* Steve Campbell +* Maxime Chambreuil + +Other credits +~~~~~~~~~~~~~ + +* Open Source Integrators + +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. + +.. |maintainer-osi-scampbell| image:: https://github.com/osi-scampbell.png?size=40px + :target: https://github.com/osi-scampbell + :alt: osi-scampbell + +Current `maintainer `__: + +|maintainer-osi-scampbell| + +This module is part of the `OCA/partner-contact `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/partner_brand/__init__.py b/partner_brand/__init__.py new file mode 100644 index 000000000..33c2f06ef --- /dev/null +++ b/partner_brand/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2019 Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/partner_brand/__manifest__.py b/partner_brand/__manifest__.py new file mode 100644 index 000000000..606229c14 --- /dev/null +++ b/partner_brand/__manifest__.py @@ -0,0 +1,22 @@ +# Copyright (C) 2019 Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Partner Brand", + "summary": "Manage your brands and use them on your documents", + "version": "12.0.1.0.0", + "category": "Sales Management", + "website": "https://github.com/OCA/sale-workflow", + "author": "Open Source Integrators, Odoo Community Association (OCA)", + "license": "AGPL-3", + "depends": [ + "contacts", + ], + "data": [ + "views/res_partner_views.xml", + "views/report_template.xml", + ], + "installable": True, + "development_status": "Beta", + "maintainers": ["osi-scampbell"], +} diff --git a/partner_brand/i18n/partner_brand.pot b/partner_brand/i18n/partner_brand.pot new file mode 100644 index 000000000..731b93bf9 --- /dev/null +++ b/partner_brand/i18n/partner_brand.pot @@ -0,0 +1,83 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_brand +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \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_brand +#: model:ir.model.fields,field_description:partner_brand.field_res_partner__type +#: model:ir.model.fields,field_description:partner_brand.field_res_users__type +msgid "Address Type" +msgstr "" + +#. module: partner_brand +#: selection:res.partner,type:0 +msgid "Brand" +msgstr "" + +#. module: partner_brand +#: model_terms:ir.ui.view,arch_db:partner_brand.filter_res_partner_brand +msgid "Brands" +msgstr "" + +#. module: partner_brand +#: model:ir.model,name:partner_brand.model_res_partner +#: selection:res.partner,type:0 +msgid "Contact" +msgstr "" + +#. module: partner_brand +#: model_terms:ir.ui.view,arch_db:partner_brand.external_layout_standard_footer +msgid "Email:" +msgstr "" + +#. module: partner_brand +#: selection:res.partner,type:0 +msgid "Invoice address" +msgstr "" + +#. module: partner_brand +#: model_terms:ir.ui.view,arch_db:partner_brand.external_layout_standard_logo +msgid "Logo" +msgstr "" + +#. module: partner_brand +#: selection:res.partner,type:0 +msgid "Other address" +msgstr "" + +#. module: partner_brand +#: model_terms:ir.ui.view,arch_db:partner_brand.external_layout_standard_footer +msgid "Phone:" +msgstr "" + +#. module: partner_brand +#: selection:res.partner,type:0 +msgid "Private Address" +msgstr "" + +#. module: partner_brand +#: selection:res.partner,type:0 +msgid "Shipping address" +msgstr "" + +#. module: partner_brand +#: model:ir.model.fields,help:partner_brand.field_res_partner__type +#: model:ir.model.fields,help:partner_brand.field_res_users__type +msgid "Used by Sales and Purchase Apps to select the relevant address depending on the context." +msgstr "" + +#. module: partner_brand +#: model_terms:ir.ui.view,arch_db:partner_brand.external_layout_standard_footer +msgid "Web:" +msgstr "" + diff --git a/partner_brand/models/__init__.py b/partner_brand/models/__init__.py new file mode 100644 index 000000000..a2a880802 --- /dev/null +++ b/partner_brand/models/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2019 Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import res_partner diff --git a/partner_brand/models/res_partner.py b/partner_brand/models/res_partner.py new file mode 100644 index 000000000..b55fffda1 --- /dev/null +++ b/partner_brand/models/res_partner.py @@ -0,0 +1,10 @@ +# Copyright (C) 2019 Open Source Integrators +# 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=[('brand', 'Brand')]) diff --git a/partner_brand/readme/CONTRIBUTORS.rst b/partner_brand/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..d9fb6931c --- /dev/null +++ b/partner_brand/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* Raphael Lee +* Steve Campbell +* Maxime Chambreuil diff --git a/partner_brand/readme/CREDITS.rst b/partner_brand/readme/CREDITS.rst new file mode 100644 index 000000000..dab2345c9 --- /dev/null +++ b/partner_brand/readme/CREDITS.rst @@ -0,0 +1 @@ +* Open Source Integrators diff --git a/partner_brand/readme/DESCRIPTION.rst b/partner_brand/readme/DESCRIPTION.rst new file mode 100644 index 000000000..cb8188eae --- /dev/null +++ b/partner_brand/readme/DESCRIPTION.rst @@ -0,0 +1,4 @@ +This module allows you to manage your brand with a different address, logo, +email, website, etc. + +It adds a new type of address/contact and a filter to easily find them. diff --git a/partner_brand/readme/USAGE.rst b/partner_brand/readme/USAGE.rst new file mode 100644 index 000000000..754839561 --- /dev/null +++ b/partner_brand/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 "Brand" diff --git a/partner_brand/static/description/icon.png b/partner_brand/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/partner_brand/static/description/icon.png differ diff --git a/partner_brand/static/description/index.html b/partner_brand/static/description/index.html new file mode 100644 index 000000000..3e21026ea --- /dev/null +++ b/partner_brand/static/description/index.html @@ -0,0 +1,442 @@ + + + + + + +Partner Brand + + + +
+

Partner Brand

+ + +

Beta License: AGPL-3 OCA/partner-contact Translate me on Weblate Try me on Runbot

+

This module allows you to manage your brand with a different address, logo, +email, website, etc.

+

It adds a new type of address/contact and a filter to easily find them.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  1. Go to the partner form
  2. +
  3. Select a company
  4. +
  5. Add a new address and select the type “Brand”
  6. +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Open Source Integrators
  • +
+
+ +
+

Other credits

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainer:

+

osi-scampbell

+

This module is part of the OCA/partner-contact project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/partner_brand/views/report_template.xml b/partner_brand/views/report_template.xml new file mode 100644 index 000000000..2248f923a --- /dev/null +++ b/partner_brand/views/report_template.xml @@ -0,0 +1,80 @@ + + + + + + + + + + + diff --git a/partner_brand/views/res_partner_views.xml b/partner_brand/views/res_partner_views.xml new file mode 100644 index 000000000..5af5ecbb9 --- /dev/null +++ b/partner_brand/views/res_partner_views.xml @@ -0,0 +1,18 @@ + + + + + + filter.res.partner.brand + res.partner + + + + + + + + + diff --git a/setup/_metapackage/VERSION.txt b/setup/_metapackage/VERSION.txt index de8e1ebdc..ea60b1adb 100644 --- a/setup/_metapackage/VERSION.txt +++ b/setup/_metapackage/VERSION.txt @@ -1 +1 @@ -12.0.20190618.0 \ No newline at end of file +12.0.20190731.0 \ No newline at end of file diff --git a/setup/_metapackage/setup.py b/setup/_metapackage/setup.py index 26440fa75..113175a96 100644 --- a/setup/_metapackage/setup.py +++ b/setup/_metapackage/setup.py @@ -17,6 +17,7 @@ setuptools.setup( 'odoo12-addon-partner_address_street3', 'odoo12-addon-partner_affiliate', 'odoo12-addon-partner_bank_active', + 'odoo12-addon-partner_brand', 'odoo12-addon-partner_capital', 'odoo12-addon-partner_coc', 'odoo12-addon-partner_company_group', diff --git a/setup/partner_brand/odoo/addons/partner_brand b/setup/partner_brand/odoo/addons/partner_brand new file mode 120000 index 000000000..147cd5cb6 --- /dev/null +++ b/setup/partner_brand/odoo/addons/partner_brand @@ -0,0 +1 @@ +../../../../partner_brand \ No newline at end of file diff --git a/setup/partner_brand/setup.py b/setup/partner_brand/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/partner_brand/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)