mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[REF] Contract Sale Invoicing: split from analytic account
[REF] Contract Sale Invoicing: update translations [IMP] - Assert that the predecessor is available for new link at uncancel [RMV] - remove usless changes [RMV] - Remove usless field recurring_invoices after the total isolation between contract model and account analytic one. recurring_invoices which was used to mark analytic account as contract became usless [IMP] - P3 syntax [IMP] - use @openupgrade.migrate() and openupgrade.logged_query [IMP] - drop transient table in migration script
This commit is contained in:
committed by
sbejaoui
parent
24f57be03d
commit
a429b10c20
@@ -8,6 +8,8 @@ class TestContractSaleInvoicing(TestContractBase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super(TestContractSaleInvoicing, cls).setUpClass()
|
||||
cls.contract.analytic_account_id = \
|
||||
cls.env['account.analytic.account'].search([], limit=1)
|
||||
cls.product_so = cls.env.ref(
|
||||
'product.product_product_1')
|
||||
cls.product_so.invoice_policy = 'order'
|
||||
@@ -21,7 +23,7 @@ class TestContractSaleInvoicing(TestContractBase):
|
||||
'product_uom': cls.product_so.uom_id.id,
|
||||
'price_unit': cls.product_so.list_price})],
|
||||
'pricelist_id': cls.partner.property_product_pricelist.id,
|
||||
'analytic_account_id': cls.contract.id,
|
||||
'analytic_account_id': cls.contract.analytic_account_id.id,
|
||||
'date_order': '2016-02-15',
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user