diff --git a/partner_brand/README.rst b/partner_brand/README.rst new file mode 100644 index 000000000..21cd7854d --- /dev/null +++ b/partner_brand/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. 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..17d206213 --- /dev/null +++ b/partner_brand/__manifest__.py @@ -0,0 +1,24 @@ +# 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", + "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", + ], + "installable": True, + "development_status": "Beta", + "maintainers": ["osi-scampbell"], +} 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/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 + + + + + + + + +