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

[BUG][16.0] document_page: Clicking inside page content creates new version (page history) #518

Open
diggy128 opened this issue Jan 14, 2025 · 0 comments
Labels

Comments

@diggy128
Copy link

diggy128 commented Jan 14, 2025

Module

document_page

Describe the bug

Since the record is auto-saved in Odoo v16 onward, clicking inside the HTML content field creates a new page history

To Reproduce

Affected versions: 16.0

Steps to reproduce the behavior:

  1. Open a document in knowledge
  2. Click inside the html field (don't click manual save button and navigate away)
  3. View page history (a new page history has been created. A data-last-history-steps attribute is added in the first p tag)

Expected behavior
No new version should be created unless explicitly requested

Additional context
I think the trigger comes from document_page.py#L144?

@diggy128 diggy128 added the bug label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant