-
-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] document_page: migration Browse Wiki Content to 17.0
- Loading branch information
Showing
9 changed files
with
76 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,11 +51,11 @@ 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 | ||
- 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 | ||
=========== | ||
|
@@ -78,32 +78,32 @@ Authors | |
Contributors | ||
------------ | ||
|
||
- Gervais Naoussi <[email protected]> | ||
- Maxime Chambreuil <[email protected]> | ||
- Iván Todorovich <[email protected]> | ||
- Jose Maria Alzaga <[email protected]> | ||
- Lois Rilo <[email protected]> | ||
- Simone Orsi <[email protected]> | ||
- `Tecnativa <https://www.tecnativa.com>`__: | ||
- Gervais Naoussi <[email protected]> | ||
- Maxime Chambreuil <[email protected]> | ||
- Iván Todorovich <[email protected]> | ||
- Jose Maria Alzaga <[email protected]> | ||
- Lois Rilo <[email protected]> | ||
- Simone Orsi <[email protected]> | ||
- `Tecnativa <https://www.tecnativa.com>`__: | ||
|
||
- Ernesto Tejeda | ||
- Víctor Martínez | ||
- Ernesto Tejeda | ||
- Víctor Martínez | ||
|
||
Trobz | ||
|
||
- Dung Tran <[email protected]> | ||
- `Sygel <https://www.sygel.es>`__: | ||
- Dung Tran <[email protected]> | ||
- `Sygel <https://www.sygel.es>`__: | ||
|
||
- Ángel García de la Chica Herrera | ||
- Ángel García de la Chica Herrera | ||
|
||
Other credits | ||
------------- | ||
|
||
The development of this module has been financially supported by: | ||
|
||
- Odoo SA <http://www.odoo.com> | ||
- Savoir-faire Linux <http://www.savoirfairelinux.com> | ||
- Camptocamp | ||
- Odoo SA <http://www.odoo.com> | ||
- Savoir-faire Linux <http://www.savoirfairelinux.com> | ||
- Camptocamp | ||
|
||
Maintainers | ||
----------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,11 @@ | |
|
||
/* | ||
:Author: David Goodger ([email protected]) | ||
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ | ||
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ | ||
:Copyright: This stylesheet has been placed in the public domain. | ||
|
||
Default cascading style sheet for the HTML output of Docutils. | ||
Despite the name, some widely supported CSS2 features are used. | ||
|
||
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to | ||
customize this style sheet. | ||
|
@@ -274,7 +275,7 @@ | |
margin-left: 2em ; | ||
margin-right: 2em } | ||
|
||
pre.code .ln { color: grey; } /* line numbers */ | ||
pre.code .ln { color: gray; } /* line numbers */ | ||
pre.code, code { background-color: #eeeeee } | ||
pre.code .comment, code .comment { color: #5C6576 } | ||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } | ||
|
@@ -300,7 +301,7 @@ | |
span.pre { | ||
white-space: pre } | ||
|
||
span.problematic { | ||
span.problematic, pre.problematic { | ||
color: red } | ||
|
||
span.section-subtitle { | ||
|
@@ -402,8 +403,8 @@ <h1><a class="toc-backref" href="#toc-entry-3">Usage</a></h1> | |
<li>Go to Knowledge menu</li> | ||
<li>Click on Categories to create the document’s category you need with | ||
the template</li> | ||
<li>Click on Pages to create pages and select the previous category to | ||
use the template</li> | ||
<li>Click on Pages to create pages and select the previous category to use | ||
the template</li> | ||
</ul> | ||
</div> | ||
<div class="section" id="bug-tracker"> | ||
|
@@ -458,7 +459,9 @@ <h2><a class="toc-backref" href="#toc-entry-8">Other credits</a></h2> | |
<div class="section" id="maintainers"> | ||
<h2><a class="toc-backref" href="#toc-entry-9">Maintainers</a></h2> | ||
<p>This module is maintained by the OCA.</p> | ||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> | ||
<a class="reference external image-reference" href="https://odoo-community.org"> | ||
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /> | ||
</a> | ||
<p>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.</p> | ||
|
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
document_page/static/src/js/document_page_kanban_controller.esm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** @odoo-module **/ | ||
import {KanbanController} from "@web/views/kanban/kanban_controller"; | ||
|
||
export class DocumentPageKanbanController extends KanbanController { | ||
/** | ||
* @param {Object} record | ||
*/ | ||
async openRecord(record) { | ||
const element = document.querySelector( | ||
`.o_kanban_record[data-id="${record.id}"] .o_document_page_kanban_boxes a` | ||
); | ||
|
||
if (this.props.resModel === "document.page" && element) { | ||
element.click(); | ||
} else { | ||
await super.openRecord(record); | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
document_page/static/src/js/document_page_kanban_view.esm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** @odoo-module **/ | ||
import {registry} from "@web/core/registry"; | ||
import {kanbanView} from "@web/views/kanban/kanban_view"; | ||
import {DocumentPageKanbanController} from "./document_page_kanban_controller.esm"; | ||
|
||
export const documentPageKanbanView = { | ||
...kanbanView, | ||
Controller: DocumentPageKanbanController, | ||
}; | ||
|
||
registry.category("views").add("document_page_kanban_view", documentPageKanbanView); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters