Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REV] account_batch_payment_ux: fix depends of constraints method #485

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions account_batch_payment_ux/models/account_batch_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()