From 9730196c959235bccac643ca90137c7f81bd3893 Mon Sep 17 00:00:00 2001 From: Camila Vives Date: Thu, 14 Nov 2024 09:46:33 -0300 Subject: [PATCH] [REV] account_batch_payment_ux: fix depends of constraints method --- account_batch_payment_ux/models/account_batch_payment.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/account_batch_payment_ux/models/account_batch_payment.py b/account_batch_payment_ux/models/account_batch_payment.py index 6e533f42..962ed3be 100644 --- a/account_batch_payment_ux/models/account_batch_payment.py +++ b/account_batch_payment_ux/models/account_batch_payment.py @@ -39,12 +39,3 @@ def action_draft(self): self.payment_ids.is_move_sent = False self.write({'state': 'draft'}) - - # Agregamos este código porque Odoo hizo un cambio de los depends de este método que hace que falle - # https://github.com/odoo/enterprise/pull/70264 - # No falla en runbot de odoo porque el módulo de sepa direct debit tiene un método similar a este - # Ticket a odoo con la explicación: https://www.odoo.com/es_ES/my/tasks/4296137 - # Una vez que lo solucionen en Odoo, deberíamos hacer un revert de este código - @api.constrains('batch_type', 'journal_id', 'payment_ids') - def _check_payments_constrains(self): - super(AccountBatchPayment, self)._check_payments_constrains()