mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[12.0][REF] - Contract Variable quantity: split from analytic accoun
This commit is contained in:
@@ -16,12 +16,11 @@ class TestContractVariableQuantity(odoo.tests.HttpCase):
|
||||
self.product = self.env['product.product'].create(
|
||||
{'name': 'Test product'}
|
||||
)
|
||||
self.contract = self.env['account.analytic.account'].create(
|
||||
self.contract = self.env['contract.contract'].create(
|
||||
{
|
||||
'name': 'Test Contract',
|
||||
'partner_id': self.partner.id,
|
||||
'pricelist_id': self.partner.property_product_pricelist.id,
|
||||
'recurring_invoices': True,
|
||||
}
|
||||
)
|
||||
self.formula = self.env['contract.line.qty.formula'].create(
|
||||
@@ -40,7 +39,7 @@ class TestContractVariableQuantity(odoo.tests.HttpCase):
|
||||
'result = 12',
|
||||
}
|
||||
)
|
||||
self.contract_line = self.env['account.analytic.invoice.line'].create(
|
||||
self.contract_line = self.env['contract.line'].create(
|
||||
{
|
||||
'contract_id': self.contract.id,
|
||||
'product_id': self.product.id,
|
||||
|
||||
Reference in New Issue
Block a user