Merge pull request #5400 from expsa/kch_dev_odex25_accounting
[FIX] odex25_account_payment_fix: Fix bug
This commit is contained in:
commit
822021a17b
|
|
@ -66,7 +66,7 @@ class AccountPayment(models.Model):
|
|||
# line.analytic_account_id = payment.analytic_account_id.id
|
||||
# return res
|
||||
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')
|
||||
|
||||
res = super(AccountPayment, self).action_post()
|
||||
|
|
|
|||
Loading…
Reference in New Issue