mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] - Compute recurring_next_date before create contract line
This commit is contained in:
committed by
Thomas Binsfeld
parent
6ee1b9c242
commit
c8ec4f3404
@@ -16,7 +16,25 @@ class TestSaleOrder(TransactionCase):
|
||||
{'name': 'Template 1'}
|
||||
)
|
||||
self.contract_template2 = self.env['account.analytic.contract'].create(
|
||||
{'name': 'Template 2'}
|
||||
{
|
||||
'name': 'Template 2',
|
||||
'recurring_invoice_line_ids': [
|
||||
(
|
||||
0,
|
||||
0,
|
||||
{
|
||||
'product_id': self.product2.id,
|
||||
'name': 'Services from #START# to #END#',
|
||||
'quantity': 1,
|
||||
'uom_id': self.product2.uom_id.id,
|
||||
'price_unit': 100,
|
||||
'discount': 50,
|
||||
'recurring_rule_type': 'yearly',
|
||||
'recurring_interval': 1,
|
||||
},
|
||||
)
|
||||
],
|
||||
}
|
||||
)
|
||||
self.product1.write(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user