[FIX] prevent crash if move ref is null

This commit is contained in:
Vincent Renaville
2013-06-07 10:47:55 +02:00
parent 6eaca0595d
commit 39c5bfada9

View File

@@ -114,5 +114,5 @@ class easy_reconcile_advanced_ref(orm.TransientModel):
:yield: matchers as tuple ('matcher key', value(s)) :yield: matchers as tuple ('matcher key', value(s))
""" """
yield ('partner_id', move_line['partner_id']) yield ('partner_id', move_line['partner_id'])
yield ('ref', (move_line['ref'].lower().strip(), yield ('ref', ((move_line['ref'] or '').lower().strip(),
move_line['name'].lower().strip())) move_line['name'].lower().strip()))