From a3451054db8e3fdf6d89ebe28f4b3672a5f92c75 Mon Sep 17 00:00:00 2001 From: benjamin <benjamin@le-filament.com> Date: Tue, 27 Jul 2021 17:55:34 +0200 Subject: [PATCH] [debug] debug payment line check --- models/account_payment_order.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/models/account_payment_order.py b/models/account_payment_order.py index d696758..b4a6af4 100644 --- a/models/account_payment_order.py +++ b/models/account_payment_order.py @@ -75,4 +75,12 @@ class AccountPaymentOrder(models.Model): 'views': [[tree_id, 'tree'], [False, 'form']], 'search_view_id': [search_id, 'search'], 'domain': [['payment_order_id', '=', self.id]], - } \ No newline at end of file + } + + +class AccountPaymentLine(models.Model): + _inherit = 'account.payment.line' + + @api.multi + def draft2open_payment_line_check(self): + self.ensure_one() -- GitLab