Browse Source

[FIX] protect against null values

pull/99/head
Holger Brunn 8 years ago
parent
commit
8532e9750f
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  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 = [ 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), ('reconcile_id', '=', False),
('state', '=', 'valid'), ('state', '=', 'valid'),
('account_id.reconcile', '=', True), ('account_id.reconcile', '=', True),

Loading…
Cancel
Save