diff --git a/partner_company_group/README.rst b/partner_company_group/README.rst index 045bf0936..98dcd04de 100644 --- a/partner_company_group/README.rst +++ b/partner_company_group/README.rst @@ -14,13 +14,13 @@ Partner Company Group :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/13.0/partner_company_group + :target: https://github.com/OCA/partner-contact/tree/14.0/partner_company_group :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-13-0/partner-contact-13-0-partner_company_group + :target: https://translation.odoo-community.org/projects/partner-contact-14-0/partner-contact-14-0-partner_company_group :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/13.0 + :target: https://runbot.odoo-community.org/runbot/134/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -38,7 +38,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -59,6 +59,8 @@ Contributors * Ernesto Tejeda +* Tharathip Chaweewongphan + Maintainers ~~~~~~~~~~~ @@ -72,6 +74,6 @@ 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 `_ project on GitHub. +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_company_group/__manifest__.py b/partner_company_group/__manifest__.py index 4c4313281..f7fd832fd 100644 --- a/partner_company_group/__manifest__.py +++ b/partner_company_group/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Partner Company Group", "summary": "Adds the possibility to add a company group to a company", - "version": "13.0.1.1.0", + "version": "14.0.1.0.0", "category": "Sales", "author": "Camptocamp SA, Odoo Community Association (OCA)", "license": "AGPL-3", diff --git a/partner_company_group/readme/CONTRIBUTORS.rst b/partner_company_group/readme/CONTRIBUTORS.rst index 274fa00ac..36d5510c0 100644 --- a/partner_company_group/readme/CONTRIBUTORS.rst +++ b/partner_company_group/readme/CONTRIBUTORS.rst @@ -3,3 +3,5 @@ * `Tecnativa `_: * Ernesto Tejeda + +* Tharathip Chaweewongphan diff --git a/partner_company_group/static/description/index.html b/partner_company_group/static/description/index.html index 67f5ec356..ee61cff06 100644 --- a/partner_company_group/static/description/index.html +++ b/partner_company_group/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This Module adds a company group field to companies, which is also propagated to contacts and allows to search and group for the company group in contact, leads, sale orders and invoices.

Table of contents

@@ -386,7 +386,7 @@ ul.auto-toc {

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.

+feedback.

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

@@ -406,6 +406,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
  • Ernesto Tejeda
  • +
  • Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>
  • @@ -415,7 +416,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

    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 project on GitHub.

    +

    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_company_group/tests/__init__.py b/partner_company_group/tests/__init__.py new file mode 100644 index 000000000..ac7b02108 --- /dev/null +++ b/partner_company_group/tests/__init__.py @@ -0,0 +1 @@ +from . import test_partner_company_group diff --git a/partner_company_group/tests/test_partner_company_group.py b/partner_company_group/tests/test_partner_company_group.py new file mode 100644 index 000000000..3f7075781 --- /dev/null +++ b/partner_company_group/tests/test_partner_company_group.py @@ -0,0 +1,20 @@ +# Copyright 2020 Ecosoft Co., Ltd (http://ecosoft.co.th/) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo.tests.common import TransactionCase + + +class TestPartnerCompanyGroup(TransactionCase): + def setUp(self): + super().setUp() + self.partner_model = self.env["res.partner"] + self.company = self.partner_model.create( + {"name": "Test Company", "company_type": "company"} + ) + self.contact = self.partner_model.create( + {"name": "Test Contact", "type": "contact", "parent_id": self.company.id} + ) + + def test_partner_company_group(self): + self.company.write({"company_group_id": self.company.id}) + self.assertEqual(self.company.company_group_id, self.contact.company_group_id) diff --git a/setup/partner_company_group/odoo/addons/partner_company_group b/setup/partner_company_group/odoo/addons/partner_company_group new file mode 120000 index 000000000..2738b49f7 --- /dev/null +++ b/setup/partner_company_group/odoo/addons/partner_company_group @@ -0,0 +1 @@ +../../../../partner_company_group \ No newline at end of file diff --git a/setup/partner_company_group/setup.py b/setup/partner_company_group/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/partner_company_group/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)