mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-14 09:51:27 -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
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||||
:alt: License: AGPL-3
|
:alt: License: AGPL-3
|
||||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github
|
.. |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
|
:alt: OCA/knowledge
|
||||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
.. |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
|
:alt: Translate me on Weblate
|
||||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
.. |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
|
:alt: Try me on Runbot
|
||||||
|
|
||||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||||
@ -57,7 +57,7 @@ Bug Tracker
|
|||||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/knowledge/issues>`_.
|
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.
|
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
|
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.
|
Do not contact contributors directly about support or help with technical issues.
|
||||||
|
|
||||||
@ -83,6 +83,10 @@ Contributors
|
|||||||
* Ernesto Tejeda
|
* Ernesto Tejeda
|
||||||
* Víctor Martínez
|
* Víctor Martínez
|
||||||
|
|
||||||
|
Trobz
|
||||||
|
|
||||||
|
* Dung Tran <dungtd@trobz.com>
|
||||||
|
|
||||||
Other credits
|
Other credits
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
@ -90,6 +94,7 @@ The development of this module has been financially supported by:
|
|||||||
|
|
||||||
* Odoo SA <http://www.odoo.com>
|
* Odoo SA <http://www.odoo.com>
|
||||||
* Savoir-faire Linux <http://www.savoirfairelinux.com>
|
* Savoir-faire Linux <http://www.savoirfairelinux.com>
|
||||||
|
* Camptocamp
|
||||||
|
|
||||||
Maintainers
|
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
|
mission is to support the collaborative development of Odoo features and
|
||||||
promote its widespread use.
|
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.
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "Document Page",
|
"name": "Document Page",
|
||||||
"version": "13.0.1.1.0",
|
"version": "14.0.1.0.0",
|
||||||
"category": "Knowledge Management",
|
"category": "Knowledge Management",
|
||||||
"author": "OpenERP SA, Odoo Community Association (OCA)",
|
"author": "OpenERP SA, Odoo Community Association (OCA)",
|
||||||
"images": [
|
"images": [
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<odoo noupdate="1">
|
<odoo noupdate="1">
|
||||||
|
|
||||||
<record id="base.user_demo" model="res.users">
|
<record id="base.user_demo" model="res.users">
|
||||||
<field eval="[(4, ref('knowledge.group_document_user'))]" name="groups_id" />
|
<field eval="[(4, ref('knowledge.group_document_user'))]" name="groups_id" />
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="demo_category1" model="document.page">
|
<record id="demo_category1" model="document.page">
|
||||||
<field name="name">Odoo Features</field>
|
<field name="name">Odoo Features</field>
|
||||||
<field name="type">category</field>
|
<field name="type">category</field>
|
||||||
@ -17,8 +19,9 @@ Additional ressources
|
|||||||
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="demo_page1" model="document.page">
|
<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_name">1.0</field>
|
||||||
<field name="draft_summary">Init</field>
|
<field name="draft_summary">Init</field>
|
||||||
<field name="parent_id" ref="demo_category1" />
|
<field name="parent_id" ref="demo_category1" />
|
||||||
@ -26,17 +29,17 @@ Additional ressources
|
|||||||
<![CDATA[
|
<![CDATA[
|
||||||
<br>
|
<br>
|
||||||
<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>
|
user-friendly, even more business oriented and efficient to manage your company<br>
|
||||||
<br>
|
<br>
|
||||||
How to discover the latest version 13.0?<br>
|
How to discover the latest version 14.0?<br>
|
||||||
<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>
|
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>
|
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>
|
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>
|
<br>
|
||||||
We have also put together a functional demo that presents 13.0. Watch this video<br>
|
We have also put together a functional demo that presents 14.0. Watch this video<br>
|
||||||
to learn directly from us what Odoo 13.0 can do for you. Share it in your<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>
|
company, with your clients and implement it now for your business.<br>
|
||||||
<br>
|
<br>
|
||||||
<h3>Watch on Youtube!</h3><br>
|
<h3>Watch on Youtube!</h3><br>
|
||||||
@ -47,6 +50,7 @@ company, with your clients and implement it now for your business.<br>
|
|||||||
]]>
|
]]>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="demo_page2" model="document.page">
|
<record id="demo_page2" model="document.page">
|
||||||
<field name="name">Personalise Dashboards</field>
|
<field name="name">Personalise Dashboards</field>
|
||||||
<field name="parent_id" ref="demo_category1" />
|
<field name="parent_id" ref="demo_category1" />
|
||||||
@ -88,6 +92,7 @@ you change your mind there is a reset button to return to the default view.<br>
|
|||||||
]]>
|
]]>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="demo_page3" model="document.page">
|
<record id="demo_page3" model="document.page">
|
||||||
<field name="name">Touchscreen Point of Sale</field>
|
<field name="name">Touchscreen Point of Sale</field>
|
||||||
<field name="parent_id" ref="demo_category1" />
|
<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">
|
<field name="content">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
<br>
|
<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>
|
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>
|
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>
|
consolidated. It works in connected and disconnected modes so that you can<br>
|
||||||
@ -126,4 +131,5 @@ Think of it as an out-of-the-box solution to boost your business' productivity.<
|
|||||||
]]>
|
]]>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
@ -64,7 +64,6 @@ class DocumentPage(models.Model):
|
|||||||
"document.page.history",
|
"document.page.history",
|
||||||
"page_id",
|
"page_id",
|
||||||
"History",
|
"History",
|
||||||
order="create_date DESC",
|
|
||||||
readonly=True,
|
readonly=True,
|
||||||
)
|
)
|
||||||
menu_id = fields.Many2one("ir.ui.menu", "Menu", readonly=True)
|
menu_id = fields.Many2one("ir.ui.menu", "Menu", readonly=True)
|
||||||
|
@ -8,3 +8,7 @@
|
|||||||
|
|
||||||
* Ernesto Tejeda
|
* Ernesto Tejeda
|
||||||
* Víctor Martínez
|
* 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>
|
* Odoo SA <http://www.odoo.com>
|
||||||
* Savoir-faire Linux <http://www.savoirfairelinux.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_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_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_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 !!
|
!! This file is generated by oca-gen-addon-readme !!
|
||||||
!! changes will be overwritten. !!
|
!! 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>This module allows you to write web pages for internal documentation.</p>
|
||||||
<p><strong>Table of contents</strong></p>
|
<p><strong>Table of contents</strong></p>
|
||||||
<div class="contents local topic" id="contents">
|
<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>.
|
<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.
|
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
|
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>
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="credits">
|
<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>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</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>
|
||||||
<div class="section" id="other-credits">
|
<div class="section" id="other-credits">
|
||||||
<h2><a class="toc-backref" href="#id8">Other credits</a></h2>
|
<h2><a class="toc-backref" href="#id8">Other credits</a></h2>
|
||||||
<p>The development of this module has been financially supported by:</p>
|
<p>The development of this module has been financially supported by:</p>
|
||||||
<ul class="simple">
|
<ul class="simple">
|
||||||
<li>Odoo SA <<a class="reference external" href="http://www.odoo.com">http://www.odoo.com</a>></li>
|
<li>Camptocamp</li>
|
||||||
<li>Savoir-faire Linux <<a class="reference external" href="http://www.savoirfairelinux.com">http://www.savoirfairelinux.com</a>></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="maintainers">
|
<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
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||||
mission is to support the collaborative development of Odoo features and
|
mission is to support the collaborative development of Odoo features and
|
||||||
promote its widespread use.</p>
|
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>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
@ -26,4 +26,4 @@ class TestDocumentPageCreateMenu(common.TransactionCase):
|
|||||||
active_id=[self.ref("document_page.demo_page1")]
|
active_id=[self.ref("document_page.demo_page1")]
|
||||||
).default_get(fields_list)
|
).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" ?>
|
<?xml version="1.0" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<!-- History Tree view -->
|
<!-- History Tree view -->
|
||||||
<record model="ir.ui.view" id="view_wiki_history_tree">
|
<record model="ir.ui.view" id="view_wiki_history_tree">
|
||||||
<field name="name">document.page.history.tree</field>
|
<field name="name">document.page.history.tree</field>
|
||||||
@ -15,6 +16,7 @@
|
|||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<!-- History Search view -->
|
<!-- History Search view -->
|
||||||
<record id="view_wiki_history_filter" model="ir.ui.view">
|
<record id="view_wiki_history_filter" model="ir.ui.view">
|
||||||
<field name="name">document.page.history.search</field>
|
<field name="name">document.page.history.search</field>
|
||||||
@ -34,6 +36,7 @@
|
|||||||
</search>
|
</search>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<!-- History Form view -->
|
<!-- History Form view -->
|
||||||
<record model="ir.ui.view" id="wiki_history_form">
|
<record model="ir.ui.view" id="wiki_history_form">
|
||||||
<field name="name">document.page.history.form</field>
|
<field name="name">document.page.history.form</field>
|
||||||
@ -75,12 +78,14 @@
|
|||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<!-- History Action -->
|
<!-- History Action -->
|
||||||
<record model="ir.actions.act_window" id="action_history">
|
<record model="ir.actions.act_window" id="action_history">
|
||||||
<field name="name">Page history</field>
|
<field name="name">Page history</field>
|
||||||
<field name="res_model">document.page.history</field>
|
<field name="res_model">document.page.history</field>
|
||||||
<field name="view_mode">tree,form</field>
|
<field name="view_mode">tree,form</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<menuitem
|
<menuitem
|
||||||
id="menu_page_history"
|
id="menu_page_history"
|
||||||
parent="menu_wiki"
|
parent="menu_wiki"
|
||||||
@ -89,12 +94,15 @@
|
|||||||
sequence="30"
|
sequence="30"
|
||||||
groups="base.group_no_one"
|
groups="base.group_no_one"
|
||||||
/>
|
/>
|
||||||
<act_window
|
|
||||||
id="action_related_page_history"
|
<record id="action_related_page_history" model="ir.actions.act_window">
|
||||||
context="{'search_default_page_id': [active_id], 'default_page_id': active_id}"
|
<field name="name">Page History</field>
|
||||||
domain="[('page_id','=',active_id)]"
|
<field name="res_model">document.page.history</field>
|
||||||
name="Page History"
|
<field name="domain">[('page_id','=',active_id)]</field>
|
||||||
res_model="document.page.history"
|
<field
|
||||||
binding_model="document.page"
|
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>
|
</odoo>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<template id="report_documentpage_doc">
|
<template id="report_documentpage_doc">
|
||||||
<t t-call="web.external_layout">
|
<t t-call="web.external_layout">
|
||||||
<div class="page">
|
<div class="page">
|
||||||
@ -8,6 +9,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template id="report_documentpage">
|
<template id="report_documentpage">
|
||||||
<t t-call="web.html_container">
|
<t t-call="web.html_container">
|
||||||
<t t-foreach="docs" t-as="doc">
|
<t t-foreach="docs" t-as="doc">
|
||||||
@ -15,12 +17,15 @@
|
|||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
</template>
|
</template>
|
||||||
<report
|
|
||||||
id="report_document_page"
|
<record id="report_document_page" model="ir.actions.report">
|
||||||
string="Document Page"
|
<field name="name">Document Page</field>
|
||||||
model="document.page"
|
<field name="model">document.page</field>
|
||||||
report_type="qweb-pdf"
|
<field name="report_type">qweb-pdf</field>
|
||||||
file="document_page.report_documentpage"
|
<field name="report_name">document_page.report_documentpage</field>
|
||||||
name="document_page.report_documentpage"
|
<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>
|
</odoo>
|
||||||
|
@ -23,12 +23,13 @@
|
|||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
<act_window
|
|
||||||
id="action_related_page_create_menu"
|
<record model="ir.actions.act_window" id="action_related_page_create_menu">
|
||||||
name="Create Menu"
|
<field name="name">Create Menu</field>
|
||||||
res_model="document.page.create.menu"
|
<field name="res_model">document.page.create.menu</field>
|
||||||
target="new"
|
<field name="view_mode">form</field>
|
||||||
view_mode="form"
|
<field name="target">new</field>
|
||||||
binding_model="document.page"
|
<field name="binding_model_id" ref="document_page.model_document_page" />
|
||||||
/>
|
</record>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
@ -12,7 +12,7 @@ class DocumentPageShowDiff(models.TransientModel):
|
|||||||
_description = "Document Page Show Diff"
|
_description = "Document Page Show Diff"
|
||||||
|
|
||||||
def _get_diff(self):
|
def _get_diff(self):
|
||||||
"""Return the Difference between two document."""
|
"""Return the Difference between two documents"""
|
||||||
history = self.env["document.page.history"]
|
history = self.env["document.page.history"]
|
||||||
ids = self.env.context.get("active_ids", [])
|
ids = self.env.context.get("active_ids", [])
|
||||||
diff = False
|
diff = False
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<field name="name">Show Difference</field>
|
<field name="name">Show Difference</field>
|
||||||
<field name="model">wizard.document.page.history.show_diff</field>
|
<field name="model">wizard.document.page.history.show_diff</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="Difference" version="7.0">
|
<form string="Difference">
|
||||||
<field name="diff" widget="html" class="overflow-x: scroll" />
|
<field name="diff" widget="html" class="overflow-x: scroll" />
|
||||||
<footer>
|
<footer>
|
||||||
<button string="Close" class="oe_link" special="cancel" />
|
<button string="Close" class="oe_link" special="cancel" />
|
||||||
@ -13,13 +13,16 @@
|
|||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
<!-- Create Index Action Window -->
|
|
||||||
<act_window
|
<record model="ir.actions.act_window" id="action_view_wiki_show_diff_values">
|
||||||
id="action_view_wiki_show_diff_values"
|
<field name="name">Difference</field>
|
||||||
name="Difference"
|
<field name="res_model">wizard.document.page.history.show_diff</field>
|
||||||
res_model="wizard.document.page.history.show_diff"
|
<field name="view_mode">form</field>
|
||||||
binding_model="document.page.history"
|
<field name="target">new</field>
|
||||||
view_mode="form"
|
<field
|
||||||
target="new"
|
name="binding_model_id"
|
||||||
|
ref="document_page.model_document_page_history"
|
||||||
/>
|
/>
|
||||||
|
</record>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
Loading…
Reference in New Issue
Block a user