mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-13 07:24:48 -06:00
[IMP] : pre-commit auto fixes
This commit is contained in:
parent
a3fd4fa7f8
commit
adbf5ac757
@ -17,13 +17,13 @@ Document Page
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/knowledge/tree/17.0/document_page
|
||||
:target: https://github.com/OCA/knowledge/tree/18.0/document_page
|
||||
:alt: OCA/knowledge
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/knowledge-17-0/knowledge-17-0-document_page
|
||||
:target: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
||||
:target: https://runboat.odoo-community.org/builds?repo=OCA/knowledge&target_branch=17.0
|
||||
:target: https://runboat.odoo-community.org/builds?repo=OCA/knowledge&target_branch=18.0
|
||||
:alt: Try me on Runboat
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
@ -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
|
||||
===========
|
||||
@ -63,7 +63,7 @@ Bug Tracker
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/knowledge/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 <https://github.com/OCA/knowledge/issues/new?body=module:%20document_page%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/knowledge/issues/new?body=module:%20document_page%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
@ -78,32 +78,32 @@ Authors
|
||||
Contributors
|
||||
------------
|
||||
|
||||
- Gervais Naoussi <gervaisnaoussi@gmail.com>
|
||||
- Maxime Chambreuil <mchambreuil@ursainfosystems.com>
|
||||
- Iván Todorovich <ivan.todorovich@gmail.com>
|
||||
- Jose Maria Alzaga <jose.alzaga@aselcis.com>
|
||||
- Lois Rilo <lois.rilo@forgeflow.com>
|
||||
- Simone Orsi <simone.orsi@camptocamp.com>
|
||||
- `Tecnativa <https://www.tecnativa.com>`__:
|
||||
- Gervais Naoussi <gervaisnaoussi@gmail.com>
|
||||
- Maxime Chambreuil <mchambreuil@ursainfosystems.com>
|
||||
- Iván Todorovich <ivan.todorovich@gmail.com>
|
||||
- Jose Maria Alzaga <jose.alzaga@aselcis.com>
|
||||
- Lois Rilo <lois.rilo@forgeflow.com>
|
||||
- Simone Orsi <simone.orsi@camptocamp.com>
|
||||
- `Tecnativa <https://www.tecnativa.com>`__:
|
||||
|
||||
- Ernesto Tejeda
|
||||
- Víctor Martínez
|
||||
- Ernesto Tejeda
|
||||
- Víctor Martínez
|
||||
|
||||
Trobz
|
||||
|
||||
- Dung Tran <dungtd@trobz.com>
|
||||
- `Sygel <https://www.sygel.es>`__:
|
||||
- Dung Tran <dungtd@trobz.com>
|
||||
- `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
|
||||
-----------
|
||||
@ -118,6 +118,6 @@ 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 <https://github.com/OCA/knowledge/tree/17.0/document_page>`_ project on GitHub.
|
||||
This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/18.0/document_page>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
{
|
||||
"name": "Document Page",
|
||||
"version": "17.0.1.1.0",
|
||||
"version": "18.0.1.0.0",
|
||||
"category": "Knowledge Management",
|
||||
"author": "OpenERP SA, Odoo Community Association (OCA)",
|
||||
"images": [
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo noupdate="1">
|
||||
|
||||
<record id="base.user_demo" model="res.users">
|
||||
<field
|
||||
eval="[(4, ref('document_knowledge.group_document_user'))]"
|
||||
@ -138,5 +137,4 @@ Think of it as an out-of-the-box solution to boost your business' productivity.<
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
@ -8,10 +8,11 @@
|
||||
|
||||
/*
|
||||
:Author: David Goodger (goodger@python.org)
|
||||
: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 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
||||
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.option {
|
||||
span.pre {
|
||||
white-space: pre }
|
||||
|
||||
span.problematic {
|
||||
span.problematic, pre.problematic {
|
||||
color: red }
|
||||
|
||||
span.section-subtitle {
|
||||
@ -368,7 +369,7 @@ ul.auto-toc {
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:2e45555d4116872b6ac3f1149a0c3fd28e8950e71d153b8fcfe0e3b7b524527f
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<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/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/knowledge/tree/17.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-17-0/knowledge-17-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&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<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/licence-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&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>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
@ -402,8 +403,8 @@ addons list.</p>
|
||||
<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">
|
||||
@ -411,7 +412,7 @@ use the template</li>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/knowledge/issues">GitHub Issues</a>.
|
||||
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
|
||||
<a class="reference external" href="https://github.com/OCA/knowledge/issues/new?body=module:%20document_page%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/knowledge/issues/new?body=module:%20document_page%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
@ -458,11 +459,13 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
||||
<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>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/knowledge/tree/17.0/document_page">OCA/knowledge</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/knowledge/tree/18.0/document_page">OCA/knowledge</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -45,9 +45,7 @@ class TestDocumentPage(common.TransactionCase):
|
||||
page.menu_id = menu
|
||||
self.assertEqual(
|
||||
page.backend_url,
|
||||
"/web#id={}&model=document.page&view_type=form&action={}".format(
|
||||
page.id, menu.action.id
|
||||
),
|
||||
f"/web#id={page.id}&model=document.page&view_type=form&action={menu.action.id}",
|
||||
)
|
||||
|
||||
def test_page_copy(self):
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" ?>
|
||||
<odoo>
|
||||
|
||||
<!-- History Tree view -->
|
||||
<record model="ir.ui.view" id="view_wiki_history_tree">
|
||||
<field name="name">document.page.history.tree</field>
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<template id="report_documentpage_doc">
|
||||
<t t-call="web.external_layout">
|
||||
<div class="page">
|
||||
@ -27,5 +26,4 @@
|
||||
<field name="binding_type">report</field>
|
||||
<field name="binding_model_id" ref="model_document_page" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
@ -15,11 +15,11 @@
|
||||
</group>
|
||||
<footer>
|
||||
<button
|
||||
name="document_page_menu_create"
|
||||
string="Create Menu"
|
||||
type="object"
|
||||
class="oe_highlight"
|
||||
/>
|
||||
name="document_page_menu_create"
|
||||
string="Create Menu"
|
||||
type="object"
|
||||
class="oe_highlight"
|
||||
/>
|
||||
or
|
||||
<button string="Cancel" class="oe_link" special="cancel" />
|
||||
</footer>
|
||||
@ -34,5 +34,4 @@
|
||||
<field name="target">new</field>
|
||||
<field name="binding_model_id" ref="document_page.model_document_page" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
@ -24,5 +24,4 @@
|
||||
ref="document_page.model_document_page_history"
|
||||
/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
Loading…
Reference in New Issue
Block a user