Skip to content

[fork-CI] [20.0][MIG] document_page: Migration to 20.0 - #16

Closed
dnplkndll wants to merge 105 commits into
20.0from
20.0-mig-document_page
Closed

dnplkndll wants to merge 105 commits into
20.0from
20.0-mig-document_page

Conversation

@dnplkndll

@dnplkndll dnplkndll commented Sep 30, 2026 •

Copy link
Copy Markdown

Port of document_page from 19.0 to 20.0. Follows the OCA migration guide.

Depends on #15 (document_knowledge has no 20.0 wheel yet), so Detect unreleased dependencies is expected red.

AI-assisted (Claude Code); every change reviewed, tested, and owned by the author.


Superseded by upstream OCA/knowledge#647 — closing this fork mirror to avoid double-tracking. The branch 20.0-mig-document_page stays in place so the upstream PR can be force-pushed if it needs an update.

Maxime Chambreuil and others added 30 commits September 30, 2026 08:13
* Add dependency to knowledge
* Adding hack in document_page_history to allow calling method that don't exists
* document_page_history don't have _sql attribute
* Filter more fields
* Changed history widget to html.
* Improved views and added followers to pages.
* Updated document_page pot and es translations.
* document_page:^Cissing dependency.
* [MIG] Migration to version 10.0
* [FIX] Comments and CI errors
* [FIX] ValueError: External ID not found in the system: base.menu_base_partner
* [FIX] ValueError: Wrong value for ir.actions.act_window.target: 'inlineview'
* [FIX] Based on @lasley comments
* [FIX] External ID not found in the system: base.group_document_user
Currently translated at 51.9% (28 of 54 strings)

Translation: knowledge-11.0/knowledge-11.0-document_page
Translate-URL: https://translation.odoo-community.org/projects/knowledge-11-0/knowledge-11-0-document_page/fa/
Currently translated at 77.8% (42 of 54 strings)

Translation: knowledge-11.0/knowledge-11.0-document_page
Translate-URL: https://translation.odoo-community.org/projects/knowledge-11-0/knowledge-11-0-document_page/de/
Fixing `Page` parents.
…Add history name field, to name revisions. Modified views to allow setting this field.

[document_page] FIX BUG: UI hanging when editing content. This was due to the api.depends on _compute_diff. Removing it because it's not really necessary since the field is not stored.

[document_page] page_id should be readonly.

Improve active field

[document_page] Update version number

[UPD] Update document_page.pot

[MIG] document_page_multi_company (OCA#188)

* [MIG] document_page_multi_company

Added this feature from the old module directly in document_page
- fix references: report module is now web module

- display_* fields are removed in this version
 * move menus to a higher level.
 * fix categories search view.
 * fix create menu action not being accessible in any way.
 * reorder form view, focusing in the content, not in secondary fields.
Currently translated at 100.0% (92 of 92 strings)

Translation: knowledge-12.0/knowledge-12.0-document_page
Translate-URL: https://translation.odoo-community.org/projects/knowledge-12-0/knowledge-12-0-document_page/fr/
The document.page content for category is required as in 12.0 but in IHM in 12.0 we can create a category without fill this field.

It's only one fix to retrive the same behaviour but investigation in the field definition and computation will be great
Content field can't be required for first document version
_create_history is needed for dependencies
jdoutreloux and others added 24 commits September 30, 2026 08:13
Currently translated at 100.0% (99 of 99 strings)

Translation: knowledge-18.0/knowledge-18.0-document_page
Translate-URL: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page/it/
warning  Imports should be sorted alphabetically  sort-imports
Currently translated at 95.9% (95 of 99 strings)

Translation: knowledge-18.0/knowledge-18.0-document_page
Translate-URL: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page/pt_BR/
Currently translated at 100.0% (99 of 99 strings)

Translation: knowledge-18.0/knowledge-18.0-document_page
Translate-URL: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page/it/
Currently translated at 100.0% (101 of 101 strings)

Translation: knowledge-18.0/knowledge-18.0-document_page
Translate-URL: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page/it/
Currently translated at 100.0% (101 of 101 strings)

Translation: knowledge-18.0/knowledge-18.0-document_page
Translate-URL: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page/sv/
Currently translated at 94.0% (95 of 101 strings)

Translation: knowledge-18.0/knowledge-18.0-document_page
Translate-URL: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page/ja/
Currently translated at 100.0% (101 of 101 strings)

Translation: knowledge-18.0/knowledge-18.0-document_page
Translate-URL: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page/it/
Currently translated at 11.0% (11 of 100 strings)

Translation: knowledge-19.0/knowledge-19.0-document_page
Translate-URL: https://translation.odoo-community.org/projects/knowledge-19-0/knowledge-19-0-document_page/sl/
Currently translated at 100.0% (99 of 99 strings)

Translation: knowledge-19.0/knowledge-19.0-document_page
Translate-URL: https://translation.odoo-community.org/projects/knowledge-19-0/knowledge-19-0-document_page/sl/
Currently translated at 100.0% (99 of 99 strings)

Translation: knowledge-19.0/knowledge-19.0-document_page
Translate-URL: https://translation.odoo-community.org/projects/knowledge-19-0/knowledge-19-0-document_page/sl/
Make page_id wider in history form view

(cherry picked from commit 2f51090)
Signed-off-by: Don Kendall <dkendall@ledoweb.com>
Assisted-by: Claude Opus 5
* ir.model.access.csv + the two global ir.rule records -> security/ir.access.csv,
  by odoo upgrade_code --script 19.4-00-ir-access; global rules become rows with
  an empty group_id.
* Drop ir.actions.report.report_file, removed in 20.0; it duplicated report_name.
* .ruff.toml ignores RUF012: ruff 0.16.8 (pinned by the 20.0 skeleton) enables it
  by default and it rejects list _inherit, which core 20.0 itself uses.

Signed-off-by: Don Kendall <dkendall@ledoweb.com>
Assisted-by: Claude Opus 5
Signed-off-by: Don Kendall <dkendall@ledoweb.com>

Assisted-by: Claude Opus 5
@dnplkndll
dnplkndll force-pushed the 20.0-mig-document_page branch from 6237697 to e1b25d2 Compare October 2, 2026 01:19
@dnplkndll dnplkndll closed this Oct 2, 2026
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.