account: fix yaml tests

Logic at move creation must be more apparent. If move validation fails, the
exception shall be propagated.

Conflicts:

	account/test/account_customer_invoice.yml
	account/test/account_validate_account_move.yml

bzr revid: p_christ@hol.gr-20100830223847-1afkt4kbilf5a2t8
This commit is contained in:
P. Christeas 2010-08-31 01:38:47 +03:00
parent 8ed519b800
commit 54bff6fd4c
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@
-
!python {model: account.invoice}: |
acc_id=self.browse(cr, uid, ref("account_invoice_customer0"))
assert acc_id.move_id, "Move not created"
assert (not acc_id.move_id), "Move falsely created at pro-forma"
-
I create invoice by clicking on Create button
-
@ -53,7 +53,7 @@
-
!python {model: account.invoice}: |
acc_id=self.browse(cr, uid, ref("account_invoice_customer0"))
assert acc_id.move_id, "Move created"
assert acc_id.move_id, "Move not created for open invoice"
-
I create a record for partial payment of 1000 EUR.
-