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: Fix sequence hole warning #144567

Conversation

JulienAlardot
Copy link
Contributor

Lacking a flush to database before the query used to compute the gap-in-sequence warning, the gap-in-sequence warning would stay active even when the all-users lock-date was set. Which is confusing for the user as they can't do anything about it.

This

  • adds the required flushes
  • adds a tooltip explaining the warning in more details as it was deemed confusing
  • Adds all the moves that took a sequence number in the query

Task-3613058

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@robodoo
Copy link
Contributor

robodoo commented Dec 1, 2023

Pull request status dashboard.

@C3POdoo C3POdoo added the RD research & development, internal work label Dec 1, 2023
@JulienAlardot JulienAlardot force-pushed the 16.0-fix-account_sequence-gap-warning-jual branch from fc5e991 to ce18abf Compare December 5, 2023 15:50
@FlorianGilbert FlorianGilbert self-requested a review December 7, 2023 08:25
Copy link
Contributor

@FlorianGilbert FlorianGilbert left a comment

Choose a reason for hiding this comment

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

LGTM, but could you please add a little test? 🤓

@JulienAlardot JulienAlardot force-pushed the 16.0-fix-account_sequence-gap-warning-jual branch 5 times, most recently from 2918bfd to d5c4cff Compare December 8, 2023 15:08
Lacking a flush to database before the query used to compute
the gap-in-sequence warning, the gap-in-sequence warning
would stay active even when the all-users lock-date was set.
Which is confusing for the user as they can't do anything about it.

This
 - adds the required flushes
 - adds a tooltip explaining the warning in more details
as it was deemed confusing
 - Adds all the moves that took a sequence number in the query

Task-3613058
@JulienAlardot JulienAlardot force-pushed the 16.0-fix-account_sequence-gap-warning-jual branch from d5c4cff to 5f39204 Compare December 11, 2023 14:05
Copy link
Contributor

@FlorianGilbert FlorianGilbert left a comment

Choose a reason for hiding this comment

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

robodoo pushed a commit that referenced this pull request Dec 12, 2023
Lacking a flush to database before the query used to compute
the gap-in-sequence warning, the gap-in-sequence warning
would stay active even when the all-users lock-date was set.
Which is confusing for the user as they can't do anything about it.

This
 - adds the required flushes
 - adds a tooltip explaining the warning in more details
as it was deemed confusing
 - Adds all the moves that took a sequence number in the query

Task-3613058

closes #144567

Signed-off-by: Florian Gilbert (flg) <[email protected]>
@robodoo robodoo closed this Dec 12, 2023
@fw-bot fw-bot deleted the 16.0-fix-account_sequence-gap-warning-jual branch December 26, 2023 08:46
luanjubica pushed a commit to luanjubica/odoo-code that referenced this pull request Feb 14, 2024
Lacking a flush to database before the query used to compute
the gap-in-sequence warning, the gap-in-sequence warning
would stay active even when the all-users lock-date was set.
Which is confusing for the user as they can't do anything about it.

This
 - adds the required flushes
 - adds a tooltip explaining the warning in more details
as it was deemed confusing
 - Adds all the moves that took a sequence number in the query

Task-3613058

closes odoo#144567

Signed-off-by: Florian Gilbert (flg) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants