2
0

[FIX] account_partner_required: constraint also depends on debit and credit

This commit is contained in:
Stéphane Bidoul 2014-10-25 17:22:53 +02:00 committed by Alexis de Lattre
parent ae2facc05b
commit aaa149cabf

View File

@ -95,5 +95,5 @@ class account_move_line(orm.Model):
_constraints = [
(_check_partner_required,
_check_partner_required_msg,
['partner_id', 'account_id']),
['partner_id', 'account_id', 'debit', 'credit']),
]