|
@ -8,7 +8,7 @@ class TestContractSaleInvoicing(TestContractBase): |
|
|
@classmethod |
|
|
@classmethod |
|
|
def setUpClass(cls): |
|
|
def setUpClass(cls): |
|
|
super(TestContractSaleInvoicing, cls).setUpClass() |
|
|
super(TestContractSaleInvoicing, cls).setUpClass() |
|
|
cls.contract.analytic_account_id = \ |
|
|
|
|
|
|
|
|
cls.contract.group_id = \ |
|
|
cls.env['account.analytic.account'].search([], limit=1) |
|
|
cls.env['account.analytic.account'].search([], limit=1) |
|
|
cls.product_so = cls.env.ref( |
|
|
cls.product_so = cls.env.ref( |
|
|
'product.product_product_1') |
|
|
'product.product_product_1') |
|
@ -23,7 +23,7 @@ class TestContractSaleInvoicing(TestContractBase): |
|
|
'product_uom': cls.product_so.uom_id.id, |
|
|
'product_uom': cls.product_so.uom_id.id, |
|
|
'price_unit': cls.product_so.list_price})], |
|
|
'price_unit': cls.product_so.list_price})], |
|
|
'pricelist_id': cls.partner.property_product_pricelist.id, |
|
|
'pricelist_id': cls.partner.property_product_pricelist.id, |
|
|
'analytic_account_id': cls.contract.analytic_account_id.id, |
|
|
|
|
|
|
|
|
'analytic_account_id': cls.contract.group_id.id, |
|
|
'date_order': '2016-02-15', |
|
|
'date_order': '2016-02-15', |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|