mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-14 01:41:26 -06:00
[MIG] document_page: Migration to 14.0
This commit is contained in:
parent
2eeab62555
commit
3fd611939f
@ -14,13 +14,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/13.0/document_page
|
||||
:target: https://github.com/OCA/knowledge/tree/14.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-13-0/knowledge-13-0-document_page
|
||||
:target: https://translation.odoo-community.org/projects/knowledge-14-0/knowledge-14-0-document_page
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||
:target: https://runbot.odoo-community.org/runbot/118/13.0
|
||||
:target: https://runbot.odoo-community.org/runbot/118/14.0
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
@ -57,7 +57,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 smashing it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/knowledge/issues/new?body=module:%20document_page%0Aversion:%2013.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:%2014.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.
|
||||
|
||||
@ -83,6 +83,10 @@ Contributors
|
||||
* Ernesto Tejeda
|
||||
* Víctor Martínez
|
||||
|
||||
Trobz
|
||||
|
||||
* Dung Tran <dungtd@trobz.com>
|
||||
|
||||
Other credits
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
@ -90,6 +94,7 @@ The development of this module has been financially supported by:
|
||||
|
||||
* Odoo SA <http://www.odoo.com>
|
||||
* Savoir-faire Linux <http://www.savoirfairelinux.com>
|
||||
* Camptocamp
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
@ -104,6 +109,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/13.0/document_page>`_ project on GitHub.
|
||||
This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/14.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": "13.0.1.1.0",
|
||||
"version": "14.0.1.0.0",
|
||||
"category": "Knowledge Management",
|
||||
"author": "OpenERP SA, Odoo Community Association (OCA)",
|
||||
"images": [
|
||||
|
@ -1,8 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo noupdate="1">
|
||||
|
||||
<record id="base.user_demo" model="res.users">
|
||||
<field eval="[(4, ref('knowledge.group_document_user'))]" name="groups_id" />
|
||||
</record>
|
||||
|
||||
<record id="demo_category1" model="document.page">
|
||||
<field name="name">Odoo Features</field>
|
||||
<field name="type">category</field>
|
||||
@ -15,10 +17,11 @@ Conclusion
|
||||
|
||||
Additional ressources
|
||||
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="demo_page1" model="document.page">
|
||||
<field name="name">Odoo 13.0 Functional Demo</field>
|
||||
<field name="name">Odoo 14.0 Functional Demo</field>
|
||||
<field name="draft_name">1.0</field>
|
||||
<field name="draft_summary">Init</field>
|
||||
<field name="parent_id" ref="demo_category1" />
|
||||
@ -26,17 +29,17 @@ Additional ressources
|
||||
<![CDATA[
|
||||
<br>
|
||||
<br>
|
||||
The news is out, Odoo's latest version 13.0 is here. It's more<br>
|
||||
The news is out, Odoo's latest version 14.0 is here. It's more<br>
|
||||
user-friendly, even more business oriented and efficient to manage your company<br>
|
||||
<br>
|
||||
How to discover the latest version 13.0?<br>
|
||||
How to discover the latest version 14.0?<br>
|
||||
<br>
|
||||
Demo : <a target="https://demo.odoo.com" href="https://demo.odoo.com" style="background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFZJREFUeF59z4EJADEIQ1F36k7u5E7ZKXeUQPACJ3wK7UNokVxVk9kHnQH7bY9hbDyDhNXgjpRLqFlo4M2GgfyJHhjq8V4agfrgPQX3JtJQGbofmCHgA/nAKks+JAjFAAAAAElFTkSuQmCC") no-repeat scroll right center transparent;padding-right: 13px;"></a><br>
|
||||
Online: <a target="https://www.odoo.com/trial" href="https://www.odoo.com/trial" style="background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFZJREFUeF59z4EJADEIQ1F36k7u5E7ZKXeUQPACJ3wK7UNokVxVk9kHnQH7bY9hbDyDhNXgjpRLqFlo4M2GgfyJHhjq8V4agfrgPQX3JtJQGbofmCHgA/nAKks+JAjFAAAAAElFTkSuQmCC") no-repeat scroll right center transparent;padding-right: 13px;"></a><br>
|
||||
Download: <a target="https://www.odoo.com/page/download" href="https://www.odoo.com/page/download" style="background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFZJREFUeF59z4EJADEIQ1F36k7u5E7ZKXeUQPACJ3wK7UNokVxVk9kHnQH7bY9hbDyDhNXgjpRLqFlo4M2GgfyJHhjq8V4agfrgPQX3JtJQGbofmCHgA/nAKks+JAjFAAAAAElFTkSuQmCC") no-repeat scroll right center transparent;padding-right: 13px;"></a><br>
|
||||
<br>
|
||||
We have also put together a functional demo that presents 13.0. Watch this video<br>
|
||||
to learn directly from us what Odoo 13.0 can do for you. Share it in your<br>
|
||||
We have also put together a functional demo that presents 14.0. Watch this video<br>
|
||||
to learn directly from us what Odoo 14.0 can do for you. Share it in your<br>
|
||||
company, with your clients and implement it now for your business.<br>
|
||||
<br>
|
||||
<h3>Watch on Youtube!</h3><br>
|
||||
@ -45,8 +48,9 @@ company, with your clients and implement it now for your business.<br>
|
||||
<br>
|
||||
<br>
|
||||
]]>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="demo_page2" model="document.page">
|
||||
<field name="name">Personalise Dashboards</field>
|
||||
<field name="parent_id" ref="demo_category1" />
|
||||
@ -86,8 +90,9 @@ you change your mind there is a reset button to return to the default view.<br>
|
||||
<br>
|
||||
<br>
|
||||
]]>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="demo_page3" model="document.page">
|
||||
<field name="name">Touchscreen Point of Sale</field>
|
||||
<field name="parent_id" ref="demo_category1" />
|
||||
@ -96,7 +101,7 @@ you change your mind there is a reset button to return to the default view.<br>
|
||||
<field name="content">
|
||||
<![CDATA[
|
||||
<br>
|
||||
The Odoo touchscreen point of sale available with 13.0 allows you<br>
|
||||
The Odoo touchscreen point of sale available with 14.0 allows you<br>
|
||||
to manage your shop sales very easily. It's fully web based so that you don't<br>
|
||||
have to install or deploy any software and all the sales shops can be easily<br>
|
||||
consolidated. It works in connected and disconnected modes so that you can<br>
|
||||
@ -124,6 +129,7 @@ and user-friendly interface you don't need any training to learn how to use it.<
|
||||
Think of it as an out-of-the-box solution to boost your business' productivity.<br>
|
||||
<br>
|
||||
]]>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
@ -64,7 +64,6 @@ class DocumentPage(models.Model):
|
||||
"document.page.history",
|
||||
"page_id",
|
||||
"History",
|
||||
order="create_date DESC",
|
||||
readonly=True,
|
||||
)
|
||||
menu_id = fields.Many2one("ir.ui.menu", "Menu", readonly=True)
|
||||
|
@ -8,3 +8,7 @@
|
||||
|
||||
* Ernesto Tejeda
|
||||
* Víctor Martínez
|
||||
|
||||
Trobz
|
||||
|
||||
* Dung Tran <dungtd@trobz.com>
|
||||
|
@ -2,3 +2,4 @@ The development of this module has been financially supported by:
|
||||
|
||||
* Odoo SA <http://www.odoo.com>
|
||||
* Savoir-faire Linux <http://www.savoirfairelinux.com>
|
||||
* Camptocamp
|
||||
|
@ -5,3 +5,5 @@ document_page_editor,document.page editor,model_document_page,group_document_edi
|
||||
document_page_history_editor,document.page.history editor,model_document_page_history,group_document_editor,1,1,1,0
|
||||
document_page_manager,document.page manager,model_document_page,group_document_manager,1,1,1,1
|
||||
document_page_history_manager,document.page.history manager,model_document_page_history,group_document_manager,1,1,1,0
|
||||
document_page_create_menu_wizard,document.page.create.menu wizard,model_document_page_create_menu,knowledge.group_document_user,1,1,1,0
|
||||
document_page_history_show_diff_wizard,document.page.history.show_diff wizard,model_wizard_document_page_history_show_diff,knowledge.group_document_user,1,1,1,0
|
||||
|
|
@ -367,7 +367,7 @@ ul.auto-toc {
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" 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" 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" href="https://github.com/OCA/knowledge/tree/13.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" href="https://translation.odoo-community.org/projects/knowledge-13-0/knowledge-13-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" href="https://runbot.odoo-community.org/runbot/118/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p><a class="reference external" 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" 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" href="https://github.com/OCA/knowledge/tree/14.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" href="https://translation.odoo-community.org/projects/knowledge-14-0/knowledge-14-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" href="https://runbot.odoo-community.org/runbot/118/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-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">
|
||||
@ -407,7 +407,7 @@ ul.auto-toc {
|
||||
<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 smashing it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/knowledge/issues/new?body=module:%20document_page%0Aversion:%2013.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:%2014.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">
|
||||
@ -433,13 +433,16 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<p>Trobz</p>
|
||||
<ul class="simple">
|
||||
<li>Dung Tran <<a class="reference external" href="mailto:dungtd@trobz.com">dungtd@trobz.com</a>></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="other-credits">
|
||||
<h2><a class="toc-backref" href="#id8">Other credits</a></h2>
|
||||
<p>The development of this module has been financially supported by:</p>
|
||||
<ul class="simple">
|
||||
<li>Odoo SA <<a class="reference external" href="http://www.odoo.com">http://www.odoo.com</a>></li>
|
||||
<li>Savoir-faire Linux <<a class="reference external" href="http://www.savoirfairelinux.com">http://www.savoirfairelinux.com</a>></li>
|
||||
<li>Camptocamp</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
@ -449,7 +452,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
||||
<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/13.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/14.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>
|
||||
|
@ -26,4 +26,4 @@ class TestDocumentPageCreateMenu(common.TransactionCase):
|
||||
active_id=[self.ref("document_page.demo_page1")]
|
||||
).default_get(fields_list)
|
||||
|
||||
self.assertEqual(res["menu_name"], "Odoo 13.0 Functional Demo")
|
||||
self.assertEqual(res["menu_name"], "Odoo 14.0 Functional Demo")
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?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>
|
||||
@ -15,6 +16,7 @@
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- History Search view -->
|
||||
<record id="view_wiki_history_filter" model="ir.ui.view">
|
||||
<field name="name">document.page.history.search</field>
|
||||
@ -34,6 +36,7 @@
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- History Form view -->
|
||||
<record model="ir.ui.view" id="wiki_history_form">
|
||||
<field name="name">document.page.history.form</field>
|
||||
@ -75,12 +78,14 @@
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- History Action -->
|
||||
<record model="ir.actions.act_window" id="action_history">
|
||||
<field name="name">Page history</field>
|
||||
<field name="res_model">document.page.history</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
id="menu_page_history"
|
||||
parent="menu_wiki"
|
||||
@ -89,12 +94,15 @@
|
||||
sequence="30"
|
||||
groups="base.group_no_one"
|
||||
/>
|
||||
<act_window
|
||||
id="action_related_page_history"
|
||||
context="{'search_default_page_id': [active_id], 'default_page_id': active_id}"
|
||||
domain="[('page_id','=',active_id)]"
|
||||
name="Page History"
|
||||
res_model="document.page.history"
|
||||
binding_model="document.page"
|
||||
/>
|
||||
|
||||
<record id="action_related_page_history" model="ir.actions.act_window">
|
||||
<field name="name">Page History</field>
|
||||
<field name="res_model">document.page.history</field>
|
||||
<field name="domain">[('page_id','=',active_id)]</field>
|
||||
<field
|
||||
name="context"
|
||||
>{'search_default_page_id': [active_id], 'default_page_id': active_id}</field>
|
||||
<field name="binding_model_id" ref="document_page.model_document_page" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<template id="report_documentpage_doc">
|
||||
<t t-call="web.external_layout">
|
||||
<div class="page">
|
||||
@ -8,6 +9,7 @@
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
<template id="report_documentpage">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="doc">
|
||||
@ -15,12 +17,15 @@
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
<report
|
||||
id="report_document_page"
|
||||
string="Document Page"
|
||||
model="document.page"
|
||||
report_type="qweb-pdf"
|
||||
file="document_page.report_documentpage"
|
||||
name="document_page.report_documentpage"
|
||||
/>
|
||||
|
||||
<record id="report_document_page" model="ir.actions.report">
|
||||
<field name="name">Document Page</field>
|
||||
<field name="model">document.page</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">document_page.report_documentpage</field>
|
||||
<field name="report_file">document_page.report_documentpage</field>
|
||||
<field name="binding_type">report</field>
|
||||
<field name="binding_model_id" ref="model_document_page" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
@ -23,12 +23,13 @@
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<act_window
|
||||
id="action_related_page_create_menu"
|
||||
name="Create Menu"
|
||||
res_model="document.page.create.menu"
|
||||
target="new"
|
||||
view_mode="form"
|
||||
binding_model="document.page"
|
||||
/>
|
||||
|
||||
<record model="ir.actions.act_window" id="action_related_page_create_menu">
|
||||
<field name="name">Create Menu</field>
|
||||
<field name="res_model">document.page.create.menu</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
<field name="binding_model_id" ref="document_page.model_document_page" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
@ -12,7 +12,7 @@ class DocumentPageShowDiff(models.TransientModel):
|
||||
_description = "Document Page Show Diff"
|
||||
|
||||
def _get_diff(self):
|
||||
"""Return the Difference between two document."""
|
||||
"""Return the Difference between two documents"""
|
||||
history = self.env["document.page.history"]
|
||||
ids = self.env.context.get("active_ids", [])
|
||||
diff = False
|
||||
|
@ -5,7 +5,7 @@
|
||||
<field name="name">Show Difference</field>
|
||||
<field name="model">wizard.document.page.history.show_diff</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Difference" version="7.0">
|
||||
<form string="Difference">
|
||||
<field name="diff" widget="html" class="overflow-x: scroll" />
|
||||
<footer>
|
||||
<button string="Close" class="oe_link" special="cancel" />
|
||||
@ -13,13 +13,16 @@
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<!-- Create Index Action Window -->
|
||||
<act_window
|
||||
id="action_view_wiki_show_diff_values"
|
||||
name="Difference"
|
||||
res_model="wizard.document.page.history.show_diff"
|
||||
binding_model="document.page.history"
|
||||
view_mode="form"
|
||||
target="new"
|
||||
/>
|
||||
|
||||
<record model="ir.actions.act_window" id="action_view_wiki_show_diff_values">
|
||||
<field name="name">Difference</field>
|
||||
<field name="res_model">wizard.document.page.history.show_diff</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
<field
|
||||
name="binding_model_id"
|
||||
ref="document_page.model_document_page_history"
|
||||
/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
Loading…
Reference in New Issue
Block a user