Skip to content

[FIX] account_background_post: avoid name collision on validate_move method#260

Closed
cav-adhoc wants to merge 1 commit intoingadhoc:18.0from
adhoc-dev:18.0-h-112244-cav
Closed

[FIX] account_background_post: avoid name collision on validate_move method#260
cav-adhoc wants to merge 1 commit intoingadhoc:18.0from
adhoc-dev:18.0-h-112244-cav

Conversation

@cav-adhoc
Copy link
Copy Markdown
Contributor

Rename the inserted Confirm button to validate_move_confirm and add a bridge method validate_move_confirm() that delegates to validate_move(). This removes the name="validate_move" collision so the background-post button cannot accidentally trigger the synchronous validate path.

Copilot AI review requested due to automatic review settings March 9, 2026 14:21
@roboadhoc
Copy link
Copy Markdown
Contributor

Pull request status dashboard

Copy link
Copy Markdown

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

Este PR evita una colisión de nombres en el wizard de validación de asientos/invoices de account_background_post, asegurando que el botón de “Confirm” no invoque accidentalmente la ruta síncrona asociada a validate_move.

Changes:

  • Renombra en la vista el botón “Confirm” para que llame a validate_move_confirm en lugar de validate_move.
  • Añade un método “puente” validate_move_confirm() en el wizard que delega en validate_move() para conservar el comportamiento.

Reviewed changes

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

File Description
account_background_post/wizards/validate_account_move_views.xml Renombra el name del botón “Confirm” para evitar colisión con validate_move.
account_background_post/wizards/validate_account_move.py Añade método validate_move_confirm() que delega en validate_move().

@rov-adhoc
Copy link
Copy Markdown
Contributor

@roboadhoc bump

…method

Rename the inserted Confirm button to validate_move_confirm and add a bridge
method validate_move_confirm() that delegates to validate_move(). This
removes the name="validate_move" collision so the background-post button
cannot accidentally trigger the synchronous validate path.
@rov-adhoc
Copy link
Copy Markdown
Contributor

@roboadhoc r+

roboadhoc pushed a commit that referenced this pull request Mar 11, 2026
…method

Rename the inserted Confirm button to validate_move_confirm and add a bridge
method validate_move_confirm() that delegates to validate_move(). This
removes the name="validate_move" collision so the background-post button
cannot accidentally trigger the synchronous validate path.

closes #260

Signed-off-by: rov-adhoc <rov@adhoc.com.ar>
roboadhoc added a commit that referenced this pull request Mar 11, 2026
@roboadhoc roboadhoc closed this Mar 11, 2026
@roboadhoc roboadhoc deleted the 18.0-h-112244-cav branch March 11, 2026 14:16
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