Browse Source

[FIX] protect against null values

pull/201/head
Holger Brunn 8 years ago
committed by George Daramouskas
parent
commit
4826ae3dbe
No known key found for this signature in database GPG Key ID: 5B4EF742F8CD859C
  1. 8
      account_bank_statement_import_auto_reconcile/models/account_bank_statement_import_auto_reconcile_exact_amount.py

8
account_bank_statement_import_auto_reconcile/models/account_bank_statement_import_auto_reconcile_exact_amount.py

@ -37,10 +37,10 @@ class AccountBankStatementImportAutoReconcileExactAmount(models.AbstractModel):
domain = [
'|', '|', '|',
('ref', operator, statement_line.ref),
('name', operator, statement_line.name),
('ref', operator, statement_line.name),
('name', operator, statement_line.ref),
('ref', operator, statement_line.ref or ''),
('name', operator, statement_line.name or ''),
('ref', operator, statement_line.name or ''),
('name', operator, statement_line.ref or ''),
('reconcile_id', '=', False),
('state', '=', 'valid'),
('account_id.reconcile', '=', True),

Loading…
Cancel
Save