Skip to content

Conversation

@SirPyTech
Copy link

@SirPyTech SirPyTech commented Dec 1, 2025

Supersede #1147 to resolve #1147 (review).

How to reproduce the issue:

  1. Create a CRON with code "env.cr.execute('SELECT not_a_field FROM res_users')"
  2. Manually Execute the CRON

Expected behavior:
The Exception is shown in the UI

Actual behavior:
The "Disconnected" notification is briefly shown, and right after a "Connected" notification is shown

@SirPyTech SirPyTech force-pushed the 14.0-fix-website_require_login-failed_transaction branch 2 times, most recently from 8ff4632 to 2e3deb4 Compare December 1, 2025 15:29
How to reproduce the issue:

1. Create a CRON with code "env.cr.execute('SELECT not_a_field FROM res_users')"
2. Manually Execute the CRON

Expected behavior:
The Exception is shown in the UI

Actual behavior:
The "Disconnected" notification is briefly shown, and right after a "Connected" notification is shown
Copy link

@GSLabIt GSLabIt left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@aleuffre aleuffre left a comment

Choose a reason for hiding this comment

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

Code review: LGTM

@francesco-ooops
Copy link
Contributor

@OCA/website-maintainers can this be merged please? thanks!

# raised and the cursor is currently closed
try:
user = website.user_id
except OperationalError:
Copy link
Member

Choose a reason for hiding this comment

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

Should OperationalError still be catched?

Copy link
Member

Choose a reason for hiding this comment

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

Oh nevermind I understand

@tarteo
Copy link
Member

tarteo commented Dec 4, 2025

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 14.0-ocabot-merge-pr-1149-by-tarteo-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit cfc9b26 into OCA:14.0 Dec 4, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at c12e358. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants