[FIX] l10n_be_invoice_bba: constraint _check_communication

The constraint checks a non-existant field 'Communication'.
Should be 'reference' and 'reference_type'

Closes #9739
This commit is contained in:
Raf Ven 2015-11-25 14:26:20 +01:00 committed by Martin Trigaux
parent 6b9b2274e5
commit a1db9c3ac0
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ class account_invoice(osv.osv):
required=True, readonly=True),
}
_constraints = [
(_check_communication, 'Invalid BBA Structured Communication !', ['Communication']),
(_check_communication, 'Invalid BBA Structured Communication !', ['reference', 'reference_type']),
]
account_invoice()