[IMP] value of invoice.comment should be blank if value is False

bzr revid: bde@tinyerp.com-20130821052528-wfo71cmpwcu1593r
This commit is contained in:
Bharat R. Devnani (OpenERP) 2013-08-21 10:55:28 +05:30
parent 02aef6ff11
commit 64fee2e674
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@
assert invoice.reference == order.client_order_ref or order.name,"Reference is not correspond."
assert invoice.partner_id.id == order.partner_invoice_id.id,"Customer does not correspond."
assert invoice.currency_id.id == order.pricelist_id.currency_id.id, "Currency is not correspond."
assert invoice.comment == (order.note or ''),"Note is not correspond."
assert (invoice.comment or '') == (order.note or ''),"Note is not correspond."
assert invoice.journal_id.id in journal_ids,"Sales Journal is not link on Invoice."
assert invoice.payment_term.id == order.payment_term.id, "Payment term is not correspond."
for so_line in order.order_line: