[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-12-11 11:10:37 +01:00
committed by Martin Trigaux
parent 6b9b2274e5
commit a1db9c3ac0
+1 -1
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()