[IMP] Improvement in yml test cases of account_payment.

bzr revid: tpa@tinyerp.com-20111221071459-7mxdi5uj8o9pkae4
This commit is contained in:
Turkesh Patel (Open ERP) 2011-12-21 12:44:59 +05:30
parent a99cac9ff8
commit 8ff2693b8f
1 changed files with 10 additions and 1 deletions

View File

@ -97,4 +97,13 @@
import_payment_id = self.create(cr, uid, {'lines': [(6,0,[payment_line.id])]})
self.populate_statement(cr, uid, [import_payment_id], {"statement_id": ref("account_bank_statement_1"),
"active_model": "account.bank.statement", "journal_type": "cash",
"active_id": ref("account_bank_statement_1")})
"active_id": ref("account_bank_statement_1")})
-
I am checking whether the calculations of Owner Account and Destination Account are done correctly or not in payment line.
-
!python {model: payment.line}: |
payment = self.pool.get('payment.order').browse(cr, uid, ref("payment_order_1"))
line_id = self.browse(cr, uid,payment.line_ids[0].id,context)
assert line_id.info_owner, "Owner Account not proper."
assert line_id.info_partner, "Destination Account not proper."
assert line_id.ml_inv_ref, "Invoice reference is not proper."