Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ addon | version | maintainers | summary
[attachment_preview](attachment_preview/) | 18.0.1.0.0 | | Preview attachments supported by Viewer.js
[attachment_zipped_download](attachment_zipped_download/) | 18.0.1.0.0 | | Attachment Zipped Download
[document_knowledge](document_knowledge/) | 18.0.1.0.2 | | Documents Knowledge
[document_page](document_page/) | 18.0.2.1.0 | | Document Page
[document_page](document_page/) | 18.0.2.1.1 | | Document Page
[document_page_access_group](document_page_access_group/) | 18.0.1.0.1 | | Choose groups to access document pages
[document_page_access_group_user_role](document_page_access_group_user_role/) | 18.0.1.0.0 | <a href='https://github.com/victoralmau'><img src='https://github.com/victoralmau.png' width='32' height='32' style='border-radius:50%;' alt='victoralmau'/></a> | Document Page Access Group User Role
[document_page_approval](document_page_approval/) | 18.0.1.1.1 | | Document Page Approval
Expand Down
2 changes: 1 addition & 1 deletion document_page/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Document Page
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:b60bfb3b024d1105726437cb152a6355d2f7a0c1cd3c8f2e8a1bdfb6aedf7b40
!! source digest: sha256:98a799e3629850c2eeba7be0a3ad000746bc10955ef4a5836a6d86f67c116549
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion document_page/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Document Page",
"version": "18.0.2.1.0",
"version": "18.0.2.1.1",
"category": "Knowledge Management",
"author": "OpenERP SA, Odoo Community Association (OCA)",
"images": [
Expand Down
5 changes: 4 additions & 1 deletion document_page/models/document_page_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,7 @@ def _get_diff(self, v1, v2):
@api.depends("page_id")
def _compute_display_name(self):
for rec in self:
rec.display_name = rec.id, "%s #%i" % (rec.page_id.name, rec.id)
if isinstance(rec.id, models.NewId):
rec.display_name = rec.page_id.name or ""
else:
rec.display_name = "%s #%i" % (rec.page_id.name, rec.id)
2 changes: 1 addition & 1 deletion document_page/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ <h1>Document Page</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:b60bfb3b024d1105726437cb152a6355d2f7a0c1cd3c8f2e8a1bdfb6aedf7b40
!! source digest: sha256:98a799e3629850c2eeba7be0a3ad000746bc10955ef4a5836a6d86f67c116549
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/knowledge/tree/18.0/document_page"><img alt="OCA/knowledge" src="https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/knowledge&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows you to write web pages for internal documentation.</p>
Expand Down
Loading