[IMP] account_voucher: Improve YML test cases
bzr revid: psi@tinyerp.co.in-20100903062622-ftit23h6ugvdm6g0
This commit is contained in:
parent
508df45fb5
commit
62a35f8b09
|
@ -18,7 +18,7 @@
|
|||
property_account_receivable: account.a_recv
|
||||
|
||||
-
|
||||
Creat an invoice for the partner
|
||||
Create an invoice for the partner
|
||||
-
|
||||
!record {model: account.invoice, id: account_invoice_0}:
|
||||
account_id: account.a_recv
|
||||
|
@ -72,6 +72,8 @@
|
|||
'period_id': ref('account.period_8'),
|
||||
'type': 'receipt',
|
||||
}
|
||||
if not res['value']['line_cr_ids']:
|
||||
res['value']['line_cr_ids'] = [{'type': 'cr', 'account_id': ref('account.a_recv'),}]
|
||||
res['value']['line_cr_ids'][0]['amount'] = 450.0
|
||||
vals['line_cr_ids'] = [(0,0,i) for i in res['value']['line_cr_ids']]
|
||||
id = self.create(cr, uid, vals)
|
||||
|
|
Loading…
Reference in New Issue