-
-
Notifications
You must be signed in to change notification settings - Fork 851
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] base_partner_sequence: Migration to 18.0
- Loading branch information
1 parent
c741ee4
commit 3aad374
Showing
6 changed files
with
30 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,6 +84,15 @@ Contributors | |
- Francesco Apruzzese <[email protected]> | ||
- Daniel Reis <[email protected]> | ||
- Nikul Chaudhary <[email protected]> | ||
- Khoi (Kien Kim) <[email protected]> | ||
|
||
Other credits | ||
------------- | ||
|
||
The migration of this module from 17.0 to 18.0 was financially supported | ||
by: | ||
|
||
- Camptocamp | ||
|
||
Maintainers | ||
----------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ | |
- Francesco Apruzzese \<<[email protected]>\> | ||
- Daniel Reis \<<[email protected]>\> | ||
- Nikul Chaudhary \<<[email protected]>\> | ||
- Khoi (Kien Kim) \<<[email protected]>\> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
The migration of this module from 17.0 to 18.0 was financially supported by: | ||
|
||
- Camptocamp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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": "[email protected]"} | ||
) | ||
|
||
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": "[email protected]", | ||
|
@@ -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": "[email protected]", | ||
|