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

[DEL] account_payment_pro: Deprecate double-validation #544

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from

Conversation

feg-adhoc
Copy link
Contributor

No description provided.

@roboadhoc
Copy link
Contributor

@feg-adhoc feg-adhoc force-pushed the 17.0-t-42959-feg-rov-1 branch from 1a18898 to 8308c5d Compare October 16, 2024 19:17
Comment on lines 123 to 129
def _check_to_pay_lines_account(self):
""" TODO ver si esto tmb lo llevamos a la UI y lo mostramos como un warning.
tmb podemos dar mas info al usuario en el error """
for rec in self:
accounts = rec.to_pay_move_line_ids.mapped('account_id')
if len(accounts) > 1:
raise ValidationError(_('To Pay Lines must be of the same account!'))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@feg-adhoc Creo que este método debería quedar

@feg-adhoc feg-adhoc force-pushed the 17.0-t-42959-feg-rov-1 branch from 8308c5d to cd4c9f9 Compare October 17, 2024 12:46
@rov-adhoc
Copy link
Contributor

@roboadhoc r+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants