mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] contract: Fix test crash with other modules
This commit is contained in:
committed by
Christopher Rogos
parent
a0d0b42700
commit
5d83f9de6d
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Recurring - Contracts Management',
|
'name': 'Recurring - Contracts Management',
|
||||||
'version': '12.0.4.2.4',
|
'version': '12.0.4.2.5',
|
||||||
'category': 'Contract Management',
|
'category': 'Contract Management',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'author': "OpenERP SA, "
|
'author': "OpenERP SA, "
|
||||||
|
|||||||
@@ -18,7 +18,13 @@ class TestContractBase(common.SavepointCase):
|
|||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
super().setUpClass()
|
super().setUpClass()
|
||||||
cls.today = fields.Date.today()
|
cls.today = fields.Date.today()
|
||||||
cls.partner = cls.env.ref('base.res_partner_2')
|
cls.pricelist = cls.env['product.pricelist'].create({
|
||||||
|
'name': 'pricelist for contract test',
|
||||||
|
})
|
||||||
|
cls.partner = cls.env['res.partner'].create({
|
||||||
|
'name': 'partner test contract',
|
||||||
|
'property_product_pricelist': cls.pricelist.id,
|
||||||
|
})
|
||||||
cls.product_1 = cls.env.ref('product.product_product_1')
|
cls.product_1 = cls.env.ref('product.product_product_1')
|
||||||
cls.product_2 = cls.env.ref('product.product_product_2')
|
cls.product_2 = cls.env.ref('product.product_product_2')
|
||||||
cls.product_1.taxes_id += cls.env['account.tax'].search(
|
cls.product_1.taxes_id += cls.env['account.tax'].search(
|
||||||
|
|||||||
Reference in New Issue
Block a user