Skip to content

Conversation

@JacoBinaural
Copy link
Contributor

Problema:
-Al intentar registrar un pago de cliente, muestra un error.

Solución:
-Se refactoriza la función action_confirm para que pueda acceder correctamente a los valores de order, y recorra la respectiva lógica. Tarea (Link):
https://binaural.odoo.com/web#id=59281&cids=2&menu_id=975&action=341&model=project.task&view_type=form Tarea de proyecto [x]
Ticket de soporte []

Problema:
-Al intentar registrar un pago de cliente, muestra un error.

Solución:
-Se refactoriza la función action_confirm para que pueda acceder correctamente a los valores de order, y recorra la respectiva lógica.
Tarea (Link):
https://binaural.odoo.com/web#id=59281&cids=2&menu_id=975&action=341&model=project.task&view_type=form
Tarea de proyecto [x]
Ticket de soporte []
Copilot AI review requested due to automatic review settings November 1, 2025 20:37
@JacoBinaural JacoBinaural self-assigned this Nov 1, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in the action_confirm method where customer payment registration was failing. The fix reorganizes the validation logic by moving the product line validation and the not-allowed products validation inside the order iteration loop, ensuring proper access to order values.

Key Changes:

  • Refactored action_confirm method to correctly iterate over orders before performing validations
  • Updated module version from 1.0 to 1.2

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
l10n_ve_sale/models/sale_order.py Restructured validation logic in action_confirm to access order context properly
l10n_ve_sale/manifest.py Bumped version number to reflect the bug fix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JacoBinaural JacoBinaural added bug Something isn't working 19.0 🔄 En validación Etiqueta de estado de revisión: En revisión por el consultor funcional. labels Nov 1, 2025
@mergify
Copy link

mergify bot commented Nov 1, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🔴 Require a review from approvers team

This rule is failing.

This rule requires someone from the approver's team to approve the PR

  • approved-reviews-by = @probadores

@JacoBinaural JacoBinaural added ✅ Validado Etiqueta de estado de revisión: Aprobado por consultoría funcional. and removed 🔄 En validación Etiqueta de estado de revisión: En revisión por el consultor funcional. labels Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

19.0 bug Something isn't working ✅ Validado Etiqueta de estado de revisión: Aprobado por consultoría funcional.

Development

Successfully merging this pull request may close these issues.

2 participants