From 8fd1cb017b91ad372924b97fdfcce4499780ac17 Mon Sep 17 00:00:00 2001 From: SIN Date: Thu, 11 Jan 2024 17:13:27 +0000 Subject: [PATCH] [17.0][MIG] document_page: Migration to 17.0 --- document_page/__manifest__.py | 2 +- document_page/demo/document_page.xml | 12 +- document_page/static/description/index.html | 897 +++++++++++------- .../tests/test_document_page_create_menu.py | 2 +- document_page/views/document_page.xml | 10 +- 5 files changed, 549 insertions(+), 374 deletions(-) diff --git a/document_page/__manifest__.py b/document_page/__manifest__.py index fe1d661d..7f3db61a 100644 --- a/document_page/__manifest__.py +++ b/document_page/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Document Page", - "version": "16.0.1.2.0", + "version": "17.0.1.0.0", "category": "Knowledge Management", "author": "OpenERP SA, Odoo Community Association (OCA)", "images": [ diff --git a/document_page/demo/document_page.xml b/document_page/demo/document_page.xml index 450f7575..660c3f39 100644 --- a/document_page/demo/document_page.xml +++ b/document_page/demo/document_page.xml @@ -24,7 +24,7 @@ Additional ressources - Odoo 15.0 Functional Demo + Odoo 17.0 Functional Demo 1.0 Init @@ -32,17 +32,17 @@ Additional ressources
-The news is out, Odoo's latest version 15.0 is here. It's more
+The news is out, Odoo's latest version 17.0 is here. It's more
user-friendly, even more business oriented and efficient to manage your company

-How to discover the latest version 15.0?
+How to discover the latest version 17.0?

Demo :
Online:
Download:

-We have also put together a functional demo that presents 15.0. Watch this video
-to learn directly from us what Odoo 15.0 can do for you. Share it in your
+We have also put together a functional demo that presents 17.0. Watch this video
+to learn directly from us what Odoo 17.0 can do for you. Share it in your
company, with your clients and implement it now for your business.

Watch on Youtube!


@@ -108,7 +108,7 @@ you change your mind there is a reset button to return to the default view.
-The Odoo touchscreen point of sale available with 15.0 allows you
+The Odoo touchscreen point of sale available with 17.0 allows you
to manage your shop sales very easily. It's fully web based so that you don't
have to install or deploy any software and all the sales shops can be easily
consolidated. It works in connected and disconnected modes so that you can
diff --git a/document_page/static/description/index.html b/document_page/static/description/index.html index ad87d1e1..893d825f 100644 --- a/document_page/static/description/index.html +++ b/document_page/static/description/index.html @@ -1,13 +1,13 @@ - - + - - - -Document Page - + table.docutils { + margin-top: 0.5em; + margin-bottom: 0.5em + } + + table.footnote { + border-left: solid 1px black; + margin-left: 1px + } + + table.docutils td, + table.docutils th, + table.docinfo td, + table.docinfo th { + padding-left: 0.5em; + padding-right: 0.5em; + vertical-align: top + } + + table.docutils th.field-name, + table.docinfo th.docinfo-name { + font-weight: bold; + text-align: left; + white-space: nowrap; + padding-left: 0 + } + + /* "booktabs" style (no vertical lines) */ + table.docutils.booktabs { + border: 0px; + border-top: 2px solid; + border-bottom: 2px solid; + border-collapse: collapse; + } + + table.docutils.booktabs * { + border: 0px; + } + + table.docutils.booktabs th { + border-bottom: thin solid; + text-align: left; + } + + h1 tt.docutils, + h2 tt.docutils, + h3 tt.docutils, + h4 tt.docutils, + h5 tt.docutils, + h6 tt.docutils { + font-size: 100% + } + + ul.auto-toc { + list-style-type: none + } + - -
-

Document Page

- -

Beta License: AGPL-3 OCA/knowledge Translate me on Weblate Try me on Runboat

-

This module allows you to write web pages for internal documentation.

-

Table of contents

- -
-

Installation

-

This module depends on module knowledge. So make sure to have it in your -addons list.

-
-
-

Configuration

-

No configuration required.

-
-
-

Usage

-

To use this module, you need to:

-
    -
  • Go to Knowledge menu
  • -
  • Click on Categories to create the document’s category you need with -the template
  • -
  • Click on Pages to create pages and select the previous category to -use the template
  • -
-
-
-

Bug Tracker

-

Bugs are tracked on GitHub Issues. -In case of trouble, please check there if your issue has already been reported. -If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

-

Do not contact contributors directly about support or help with technical issues.

-
-
-

Credits

-
-

Authors

-
    -
  • OpenERP SA
  • -
-
-
-

Contributors

- -

Trobz

- -
-
-

Other credits

-

The development of this module has been financially supported by:

- -
-
-

Maintainers

-

This module is maintained by the OCA.

-Odoo Community Association -

OCA, or the Odoo Community Association, is a nonprofit organization whose -mission is to support the collaborative development of Odoo features and -promote its widespread use.

-

This module is part of the OCA/knowledge project on GitHub.

-

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

-
-
-
+

Beta License: AGPL-3 OCA/knowledge + Translate me on Weblate Try me on Runboat

+

This module allows you to write web pages for internal documentation.

+

Table of contents

+ +
+

Installation

+

This module depends on module knowledge. So make sure to have it in your + addons list.

+
+
+

Configuration

+

No configuration required.

+
+
+

Usage

+

To use this module, you need to:

+
    +
  • Go to Knowledge menu
  • +
  • Click on Categories to create the document’s category you need with + the template
  • +
  • Click on Pages to create pages and select the previous category to + use the template
  • +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub + Issues. + In case of trouble, please check there if your issue has already been reported. + If you spotted it first, help us to smash it by providing a detailed and welcomed + feedback. +

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • OpenERP SA
  • +
+
+
+

Contributors

+ +

Trobz

+ +
+
+

Other credits

+

The development of this module has been financially supported by:

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose + mission is to support the collaborative development of Odoo features and + promote its widespread use.

+

This module is part of the OCA/knowledge project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+ - + + \ No newline at end of file diff --git a/document_page/tests/test_document_page_create_menu.py b/document_page/tests/test_document_page_create_menu.py index 54187e28..9fdf736c 100644 --- a/document_page/tests/test_document_page_create_menu.py +++ b/document_page/tests/test_document_page_create_menu.py @@ -26,7 +26,7 @@ class TestDocumentPageCreateMenu(common.TransactionCase): active_id=[self.ref("document_page.demo_page1")] ).default_get(fields_list) - self.assertEqual(res["menu_name"], "Odoo 15.0 Functional Demo") + self.assertEqual(res["menu_name"], "Odoo 17.0 Functional Demo") def test_page_menu_parent_id_context(self): """Test page menu parent_id context.""" diff --git a/document_page/views/document_page.xml b/document_page/views/document_page.xml index b4fc9041..ee75b4cd 100644 --- a/document_page/views/document_page.xml +++ b/document_page/views/document_page.xml @@ -4,7 +4,7 @@ document.page.tree document.page - child_ids + 100 @@ -42,7 +42,7 @@ name="web_ribbon" text="Archived" bg_color="bg-danger" - attrs="{'invisible': [('active', '=', True)]}" + invisible = "active" /> @@ -53,7 +53,7 @@ name="content" widget="html" placeholder="e.g. Once upon a time..." - required="1" + required="True" options="{'safe': True, 'codeview': True, 'collaborative': True}" /> @@ -74,8 +74,8 @@