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

[FIX] account_payment_order: Check correctly for duplicated lines on … #3

Conversation

aritzolea
Copy link

…payment order constraint

Algoritmo con complejidad lineal para detectar si hay líneas duplicadas

Copy link

@ljsalvatierra-factorlibre ljsalvatierra-factorlibre left a comment

Choose a reason for hiding this comment

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

Como hemos comentado internamente, se puede añadir directamente al PR de la OCA.

for pay_line in order.payment_line_ids:
move_line = pay_line.move_line_id
if move_line in found_lines:
raise ValidationError(_("Duplicated lines found."))

Choose a reason for hiding this comment

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

Mostraría más información del error, indicando la orden de pago y las líneas implicadas.

@aritzolea aritzolea force-pushed the 16.0-imp-account_payment_order-constraint_fix branch from bd8fe66 to 0296ce9 Compare April 17, 2024 07:58
@aritzolea
Copy link
Author

Cierro PR, y llevo los cambios directamente al PR original al no afectar a nuestro common

@aritzolea aritzolea closed this Apr 17, 2024
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.

2 participants