[MIG] document_page_project: Migration to 12.0

This commit is contained in:
mreficent 2019-03-19 18:16:50 +01:00 committed by Bhavesh Heliconia
parent 1768a4b13f
commit ce8286bf0c
8 changed files with 32 additions and 30 deletions

View File

@ -1,6 +1,6 @@
============
Project Wiki
============
=====================
Document Page Project
=====================
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
@ -14,13 +14,13 @@ Project Wiki
: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/11.0/document_page_project
:target: https://github.com/OCA/knowledge/tree/12.0/document_page_project
:alt: OCA/knowledge
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/knowledge-11-0/knowledge-11-0-document_page_project
:target: https://translation.odoo-community.org/projects/knowledge-12-0/knowledge-12-0-document_page_project
: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/11.0
:target: https://runbot.odoo-community.org/runbot/118/12.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@ -44,7 +44,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_project%0Aversion:%2011.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_project%0Aversion:%2012.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.
@ -54,7 +54,7 @@ Credits
Authors
~~~~~~~
* Efient
* Eficent
Contributors
~~~~~~~~~~~~
@ -76,6 +76,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/11.0/document_page_project>`_ project on GitHub.
This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/12.0/document_page_project>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -1 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import models

View File

@ -3,14 +3,14 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
'name': 'Project Wiki',
'name': 'Document Page Project',
'summary': 'This module links document pages to projects',
'version': '11.0.1.0.0',
'version': '12.0.1.0.0',
"development_status": "Beta",
'category': 'Project',
'author': 'Efient, '
'author': 'Eficent, '
'Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/project',
'website': 'https://github.com/OCA/knowledge',
'license': 'AGPL-3',
'depends': [
'project',

View File

@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
@ -14,12 +14,12 @@ msgstr ""
"Plural-Forms: \n"
#. module: document_page_project
#: model:ir.ui.view,arch_db:document_page_project.view_project_kanban
#: model_terms:ir.ui.view,arch_db:document_page_project.view_project_kanban
msgid "<span class=\"o_label\">Wiki Pages</span>"
msgstr ""
#. module: document_page_project
#: model:ir.actions.act_window,help:document_page_project.action_document_page_projects
#: model_terms:ir.actions.act_window,help:document_page_project.action_document_page_projects
msgid "Click to create a new web page."
msgstr ""
@ -29,13 +29,13 @@ msgid "Document Page"
msgstr ""
#. module: document_page_project
#: model:ir.model.fields,field_description:document_page_project.field_project_project_document_page_count
#: model:ir.model.fields,field_description:document_page_project.field_project_project__document_page_count
msgid "Document Page Count"
msgstr ""
#. module: document_page_project
#: model:ir.model,name:document_page_project.model_project_project
#: model:ir.model.fields,field_description:document_page_project.field_document_page_project_id
#: model:ir.model.fields,field_description:document_page_project.field_document_page__project_id
msgid "Project"
msgstr ""
@ -45,12 +45,12 @@ msgid "Project Wiki"
msgstr ""
#. module: document_page_project
#: model:ir.model.fields,field_description:document_page_project.field_project_project_document_page_ids
#: model:ir.model.fields,field_description:document_page_project.field_project_project__document_page_ids
msgid "Wiki"
msgstr ""
#. module: document_page_project
#: model:ir.ui.view,arch_db:document_page_project.edit_project
#: model_terms:ir.ui.view,arch_db:document_page_project.edit_project
msgid "Wiki Pages"
msgstr ""

View File

@ -1,2 +1,3 @@
from . import project_project
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import document_page
from . import project_project

View File

@ -11,7 +11,7 @@ class ProjectProject(models.Model):
document_page_ids = fields.One2many(
string='Wiki',
comodel_name='document.page',
inverse_name='project_id'
inverse_name='project_id',
)
document_page_count = fields.Integer(
compute='_compute_document_page_count',

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@ -3,8 +3,8 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" />
<title>Project Wiki</title>
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
<title>Document Page Project</title>
<style type="text/css">
/*
@ -360,14 +360,14 @@ ul.auto-toc {
</style>
</head>
<body>
<div class="document" id="project-wiki">
<h1 class="title">Project Wiki</h1>
<div class="document" id="document-page-project">
<h1 class="title">Document Page Project</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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/11.0/document_page_project"><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-11-0/knowledge-11-0-document_page_project"><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/11.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/12.0/document_page_project"><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-12-0/knowledge-12-0-document_page_project"><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/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module allow to link document pages to projects.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
@ -394,7 +394,7 @@ create new ones.</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 smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_project%0Aversion:%2011.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_project%0Aversion:%2012.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">
@ -402,7 +402,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<div class="section" id="authors">
<h2><a class="toc-backref" href="#id4">Authors</a></h2>
<ul class="simple">
<li>Efient</li>
<li>Eficent</li>
</ul>
</div>
<div class="section" id="contributors">
@ -421,7 +421,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/11.0/document_page_project">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/12.0/document_page_project">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>