[IMP] event: Improved assert string

bzr revid: ron@tinyerp.com-20111114084644-8jrahh2z4qc4b2rs
This commit is contained in:
ron@tinyerp.com 2011-11-14 14:16:44 +05:30
parent 64a531e000
commit 46322eb7e1
2 changed files with 1 additions and 1 deletions

View File

@ -24,5 +24,5 @@
assert record.invoice_id.partner_id == record.partner_id, "Customer is not correspond with registration"
assert record.invoice_id.type == 'out_invoice', "Invoice type is not correct"
assert record.invoice_id.origin == record.event_product, "Invoice origin is not correct"
assert record.invoice_id.amount_total == record.price_subtotal, "Invoice origin is not correct"
assert record.invoice_id.amount_total == record.price_subtotal, "Invoice amount is not correct"
assert record.state == "done", "Registration should be closed after invoice generated"