diff --git a/partner_title_order/README.rst b/partner_title_order/README.rst index eb9d5b2b1574..6886a91c9592 100644 --- a/partner_title_order/README.rst +++ b/partner_title_order/README.rst @@ -61,6 +61,7 @@ Contributors - `Trobz `__: - Khoi Vo + - Khoi (Kien Kim) Other credits ------------- @@ -70,6 +71,11 @@ Other credits - Cosanum - Camptocamp R&D +The migration of this module from 17.0 to 18.0 was financially supported +by: + +- Camptocamp. + Maintainers ----------- diff --git a/partner_title_order/__manifest__.py b/partner_title_order/__manifest__.py index ff7f9bd96570..9de07595f700 100644 --- a/partner_title_order/__manifest__.py +++ b/partner_title_order/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Partner title order", "summary": "Makes partner title sortable by sequence", - "version": "14.0.1.0.0", + "version": "18.0.1.0.0", "category": "Hidden", "author": "Camptocamp, Odoo Community Association (OCA)", "license": "AGPL-3", diff --git a/partner_title_order/readme/CONTRIBUTORS.md b/partner_title_order/readme/CONTRIBUTORS.md index 165dee4f46b5..e6528b0b631a 100644 --- a/partner_title_order/readme/CONTRIBUTORS.md +++ b/partner_title_order/readme/CONTRIBUTORS.md @@ -1,4 +1,5 @@ - Simone Orsi \<\> -- [Trobz](https://trobz.com): +- [Trobz](https://trobz.com): - Khoi Vo \<\> + - Khoi (Kien Kim) \<\> diff --git a/partner_title_order/readme/CREDITS.md b/partner_title_order/readme/CREDITS.md index 76784bf51595..f648e56375b4 100644 --- a/partner_title_order/readme/CREDITS.md +++ b/partner_title_order/readme/CREDITS.md @@ -2,3 +2,7 @@ - Cosanum - Camptocamp R&D + +The migration of this module from 17.0 to 18.0 was financially supported by: + +- Camptocamp. diff --git a/partner_title_order/static/description/index.html b/partner_title_order/static/description/index.html index c4b10c6b680e..3108d61ab844 100644 --- a/partner_title_order/static/description/index.html +++ b/partner_title_order/static/description/index.html @@ -406,6 +406,7 @@

Contributors

  • Simone Orsi <simone.orsi@camptocamp.com>
  • Trobz:
  • @@ -417,6 +418,11 @@

    Other credits

  • Cosanum
  • Camptocamp R&D
  • +

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

    +
      +
    • Camptocamp.
    • +

    Maintainers

    diff --git a/partner_title_order/tests/test_partner_title.py b/partner_title_order/tests/test_partner_title.py index 646a8a410bd8..bfa4f7cac727 100644 --- a/partner_title_order/tests/test_partner_title.py +++ b/partner_title_order/tests/test_partner_title.py @@ -1,10 +1,10 @@ # Copyright 2020 Camptocamp SA # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) -from odoo.tests.common import SavepointCase +import odoo.tests.common as common -class TestPartnerTitle(SavepointCase): +class TestPartnerTitle(common.TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() @@ -14,7 +14,7 @@ def test_default_order(self): partner_titles = self.env["res.partner.title"].search([]) self.assertEqual( partner_titles.mapped("name"), - partner_titles.sorted(lambda x: x.name).mapped("name"), + partner_titles.sorted(lambda x: (x.sequence, x.name)).mapped("name"), ) def test_sequence_order(self):