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:
parent
8ed519b800
commit
54bff6fd4c
|
@ -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.
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue