[FIX] odex25_account_payment_fix: Fix bug
This commit is contained in:
parent
abbab6ece5
commit
e17d7994a4
|
|
@ -66,7 +66,7 @@ class AccountPayment(models.Model):
|
||||||
# line.analytic_account_id = payment.analytic_account_id.id
|
# line.analytic_account_id = payment.analytic_account_id.id
|
||||||
# return res
|
# return res
|
||||||
def action_post(self):
|
def action_post(self):
|
||||||
if self.payment_type == 'outbound':
|
if self.filtered(lambda p: p.payment_type == 'outbound'):
|
||||||
self._check_permission('odex25_account_payment_fix.group_posted')
|
self._check_permission('odex25_account_payment_fix.group_posted')
|
||||||
|
|
||||||
res = super(AccountPayment, self).action_post()
|
res = super(AccountPayment, self).action_post()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue