From 3aad37400e15dd21bef818e74359264cd6a2d48f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kh=C3=B4i=20=28Ki=C3=AAn=20Kim=29?= Date: Fri, 11 Oct 2024 13:22:55 +0700 Subject: [PATCH] [MIG] base_partner_sequence: Migration to 18.0 --- base_partner_sequence/README.rst | 9 +++++++++ base_partner_sequence/__manifest__.py | 2 +- base_partner_sequence/readme/CONTRIBUTORS.md | 1 + base_partner_sequence/readme/CREDITS.md | 3 +++ .../static/description/index.html | 14 ++++++++++++-- .../tests/test_base_partner_sequence.py | 16 ++++------------ 6 files changed, 30 insertions(+), 15 deletions(-) create mode 100644 base_partner_sequence/readme/CREDITS.md diff --git a/base_partner_sequence/README.rst b/base_partner_sequence/README.rst index f8a21cf4d230..d349d495bae1 100644 --- a/base_partner_sequence/README.rst +++ b/base_partner_sequence/README.rst @@ -84,6 +84,15 @@ Contributors - Francesco Apruzzese - Daniel Reis - Nikul Chaudhary +- Khoi (Kien Kim) + +Other credits +------------- + +The migration of this module from 17.0 to 18.0 was financially supported +by: + +- Camptocamp Maintainers ----------- diff --git a/base_partner_sequence/__manifest__.py b/base_partner_sequence/__manifest__.py index cb1caf9ca1e2..48a5f52b5a40 100644 --- a/base_partner_sequence/__manifest__.py +++ b/base_partner_sequence/__manifest__.py @@ -12,7 +12,7 @@ "Odoo Community Association (OCA)" ), "name": "Add a sequence on customers' code", - "version": "17.0.1.0.0", + "version": "18.0.1.0.0", "development_status": "Production/Stable", "category": "Generic Modules/Base", "website": "https://github.com/OCA/partner-contact", diff --git a/base_partner_sequence/readme/CONTRIBUTORS.md b/base_partner_sequence/readme/CONTRIBUTORS.md index ae4d7c96df96..e750bf22c785 100644 --- a/base_partner_sequence/readme/CONTRIBUTORS.md +++ b/base_partner_sequence/readme/CONTRIBUTORS.md @@ -13,3 +13,4 @@ - Francesco Apruzzese \<\> - Daniel Reis \<\> - Nikul Chaudhary \<\> +- Khoi (Kien Kim) \<\> diff --git a/base_partner_sequence/readme/CREDITS.md b/base_partner_sequence/readme/CREDITS.md new file mode 100644 index 000000000000..f024a19f86f6 --- /dev/null +++ b/base_partner_sequence/readme/CREDITS.md @@ -0,0 +1,3 @@ +The migration of this module from 17.0 to 18.0 was financially supported by: + +- Camptocamp diff --git a/base_partner_sequence/static/description/index.html b/base_partner_sequence/static/description/index.html index 23f6bd914c67..bd4b68ce45d8 100644 --- a/base_partner_sequence/static/description/index.html +++ b/base_partner_sequence/static/description/index.html @@ -386,7 +386,8 @@

Add a sequence on customers’ code

  • Credits
  • @@ -428,10 +429,19 @@

    Contributors

  • Francesco Apruzzese <cescoap@gmail.com>
  • Daniel Reis <dreis@opensourceintegrators.com>
  • Nikul Chaudhary <nchaudhary@opensourceintegrators.com>
  • +
  • Khoi (Kien Kim) <khoikk@trobz.com>
  • + + +
    +

    Other credits

    +

    The migration of this module from 17.0 to 18.0 was financially supported +by:

    +
      +
    • Camptocamp
    -

    Maintainers

    +

    Maintainers

    This module is maintained by the OCA.

    Odoo Community Association diff --git a/base_partner_sequence/tests/test_base_partner_sequence.py b/base_partner_sequence/tests/test_base_partner_sequence.py index ec98ed3bb38a..d5c6344bc93d 100644 --- a/base_partner_sequence/tests/test_base_partner_sequence.py +++ b/base_partner_sequence/tests/test_base_partner_sequence.py @@ -2,18 +2,10 @@ # Copyright 2016 Tecnativa - Vicent Cubells # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -import odoo.tests.common as common +from odoo.addons.base.tests.common import BaseCommon -class TestBasePartnerSequence(common.TransactionCase): - def setUp(self): - super().setUp() - - self.res_partner = self.env["res.partner"] - self.partner = self.res_partner.create( - {"name": "test1", "email": "test@test.com"} - ) - +class TestBasePartnerSequence(BaseCommon): def test_ref_sequence_on_partner(self): # Test sequence on creating partner and copying it self.assertTrue(self.partner.ref, "A partner has always a ref.") @@ -25,7 +17,7 @@ def test_ref_sequence_on_partner(self): def test_ref_sequence_on_contact(self): # Test if sequence doesn't increase on creating a contact child - contact = self.res_partner.create( + contact = self.env["res.partner"].create( { "name": "contact1", "email": "contact@contact.com", @@ -54,7 +46,7 @@ def test_ref_change_convert_child_to_parent(self): converted to a commercial partner.""" # Remove the ref from the parent so child does not have one initially self.partner.write({"ref": False}) - contact = self.res_partner.create( + contact = self.env["res.partner"].create( { "name": "contact1", "email": "contact@contact.com",