-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MERGE] forward port branch saas-15 up to d44cd77
- Loading branch information
Showing
28 changed files
with
147 additions
and
27 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
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
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
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
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
# Part of Odoo. See LICENSE file for full copyright and licensing details. | ||
|
||
from . import test_variants, test_uom, test_pricelist, test_product_pricelist | ||
from . import test_seller, test_variants, test_uom, test_pricelist, test_product_pricelist |
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,28 @@ | ||
# -*- coding: utf-8 -*- | ||
# Part of Odoo. See LICENSE file for full copyright and licensing details. | ||
|
||
from odoo.tests.common import TransactionCase | ||
|
||
|
||
class TestSeller(TransactionCase): | ||
|
||
def setUp(self): | ||
super(TestSeller, self).setUp() | ||
self.product_service = self.env.ref('product.product_product_2') | ||
self.product_service.default_code = 'DEFCODE' | ||
self.asustec = self.env.ref('base.res_partner_1') | ||
self.camptocamp = self.env.ref('base.res_partner_12') | ||
|
||
def test_10_sellers(self): | ||
self.product_service.write({'seller_ids': [ | ||
(0, 0, {'name': self.asustec.id, 'product_code': 'ASUCODE'}), | ||
(0, 0, {'name': self.camptocamp.id, 'product_code': 'C2CCODE'}), | ||
]}) | ||
|
||
default_code = self.product_service.code | ||
self.assertEqual("DEFCODE", default_code, "Default code not used in product name") | ||
|
||
context_code = self.product_service\ | ||
.with_context(partner_id=self.camptocamp.id)\ | ||
.code | ||
self.assertEqual('C2CCODE', context_code, "Partner's code not used in product name with context set") |
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
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
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,17 @@ | ||
China, 2018-04-28 | ||
|
||
Shine IT agrees to the terms of the Odoo Corporate Contributor License | ||
Agreement v1.0. | ||
|
||
I declare that I am authorized and able to make this agreement and sign this | ||
declaration. | ||
|
||
Signed, | ||
|
||
Tony Gu [email protected] https://github.com/digitalsatori | ||
|
||
List of contributors: | ||
Tony Gu [email protected] https://github.com/digitalsatori | ||
Joshua Jan [email protected] https://github.com/joshuajan | ||
Xiao Guo [email protected] https://github.com/xerxesnoPT | ||
|
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,11 @@ | ||
|
||
|
||
France, 2018-06-07 | ||
|
||
I here by agree to the terms of the Odoo Individual Contributor License Agreement v1.0. | ||
|
||
I declare that I am authorized and able to make this agreement and sign this declaration. | ||
|
||
Signed, | ||
|
||
Flavien CHÊNE [email protected] https://github.com/Zelwak |
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,11 @@ | ||
France, 2018-05-24 | ||
|
||
I hereby agree to the terms of the Odoo Individual Contributor License | ||
Agreement v1.0. | ||
|
||
I declare that I am authorized and able to make this agreement and sign this | ||
declaration. | ||
|
||
Signed, | ||
|
||
Martin Duvergey [email protected] https://github.com/mduvergey |
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,11 @@ | ||
Belgium, 2018-05-17 | ||
|
||
I hereby agree to the terms of the Odoo Individual Contributor License | ||
Agreement v1.0. | ||
|
||
I declare that I am authorized and able to make this agreement and sign this | ||
declaration. | ||
|
||
Signed, | ||
|
||
Rod Schouteden [email protected] https://github.com/schout-it |
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
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
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
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