Skip to content

[18.0][IMP] purchase_exception: Use hook to popup exception after rollback - #3012

Open
grindtildeath wants to merge 4 commits into
OCA:18.0from
camptocamp:18.0-imp-purchase_exception_rollback_popup
Open

[18.0][IMP] purchase_exception: Use hook to popup exception after rollback#3012
grindtildeath wants to merge 4 commits into
OCA:18.0from
camptocamp:18.0-imp-purchase_exception_rollback_popup

Conversation

@grindtildeath

Copy link
Copy Markdown
Contributor

With OCA/server-tools#3590 changing the way exceptions are detected, the error raising doesn't allow to call _popup_exception as we used to, but we can use the new hook to have the popup displayed smoothly.

Depends on:

@grindtildeath grindtildeath changed the title [18.0][IMP] sale_exception: Use hook to popup exception after rollback [18.0][IMP] purchase_exception: Use hook to popup exception after rollback Apr 29, 2026
@OCA-git-bot OCA-git-bot added series:18.0 mod:purchase_exception Module purchase_exception mod:purchase_request_exception Module purchase_request_exception labels Apr 29, 2026
@grindtildeath
grindtildeath force-pushed the 18.0-imp-purchase_exception_rollback_popup branch from d4cb26e to 79f0c6d Compare May 27, 2026 20:34
@OCA-git-bot OCA-git-bot added the mod:purchase_order_approval_block Module purchase_order_approval_block label May 27, 2026
@grindtildeath
grindtildeath force-pushed the 18.0-imp-purchase_exception_rollback_popup branch from c2b5c30 to e3815f5 Compare May 27, 2026 21:06

@divad1196 divad1196 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Except for button_to_approve where it looks like a function is missing, the rest looks good. Good work

Comment thread purchase_exception/tests/test_purchase_exception.py
Comment thread purchase_exception/tests/test_purchase_exception.py
Comment thread purchase_request_exception/models/purchase_request.py Outdated
With OCA/server-tools#3590 changing the way exceptions are detected,
the error raising doesn't allow to call _popup_exception as we used to,
but we can use the new hook to have the popup displayed smoothly.
…ollback

With OCA/server-tools#3590 changing the way exceptions are detected,
the error raising doesn't allow to call _popup_exception as we used to,
but we can use the new hook to have the popup displayed smoothly.
With OCA/server-tools#3590 changing the way exceptions are detected
and rollbacked, tests need to be adapted accordingly.
@grindtildeath
grindtildeath force-pushed the 18.0-imp-purchase_exception_rollback_popup branch from f7dfbba to 8f6e3f2 Compare September 3, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved mod:purchase_exception Module purchase_exception mod:purchase_order_approval_block Module purchase_order_approval_block mod:purchase_request_exception Module purchase_request_exception series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants