[FIX] account_partner_required: constraint also depends on debit and credit
This commit is contained in:
parent
ae2facc05b
commit
aaa149cabf
@ -95,5 +95,5 @@ class account_move_line(orm.Model):
|
|||||||
_constraints = [
|
_constraints = [
|
||||||
(_check_partner_required,
|
(_check_partner_required,
|
||||||
_check_partner_required_msg,
|
_check_partner_required_msg,
|
||||||
['partner_id', 'account_id']),
|
['partner_id', 'account_id', 'debit', 'credit']),
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user