Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions document_page_project/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
=====================
Document Page Project
=====================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
: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/14.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-14-0/knowledge-14-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/14.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allow to link document pages to projects.

**Table of contents**

.. contents::
:local:

Usage
=====

* Go to to a project and click on "Wiki Pages" to see linked documents or to
create new ones.

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:%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.

Credits
=======

Authors
~~~~~~~

* ForgeFlow

Contributors
~~~~~~~~~~~~

* `Forgeflow <https://www.forgeflow.com>`_:

* Lois Rilo <lois.rilo@forgeflow.com>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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/14.0/document_page_project>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions document_page_project/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import models
15 changes: 15 additions & 0 deletions document_page_project/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2019 ForgeFlow S.L. (https://www.forgeflow.com) - Lois Rilo
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "Document Page Project",
"summary": "This module links document pages to projects",
"version": "15.0.1.0.0",
"category": "Project",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/knowledge",
"license": "AGPL-3",
"depends": ["project", "document_page"],
"data": ["views/document_page_views.xml", "views/project_project_views.xml"],
"installable": True,
}
73 changes: 73 additions & 0 deletions document_page_project/i18n/document_page_project.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * document_page_project
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: document_page_project
#: 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_terms:ir.actions.act_window,help:document_page_project.action_document_page_projects
msgid "Click to create a new web page."
msgstr ""

#. module: document_page_project
#: model:ir.model.fields,field_description:document_page_project.field_document_page__display_name
#: model:ir.model.fields,field_description:document_page_project.field_project_project__display_name
msgid "Display Name"
msgstr ""

#. module: document_page_project
#: model:ir.model,name:document_page_project.model_document_page
msgid "Document Page"
msgstr ""

#. module: document_page_project
#: 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.fields,field_description:document_page_project.field_document_page__id
#: model:ir.model.fields,field_description:document_page_project.field_project_project__id
msgid "ID"
msgstr ""

#. module: document_page_project
#: model:ir.model.fields,field_description:document_page_project.field_document_page____last_update
#: model:ir.model.fields,field_description:document_page_project.field_project_project____last_update
msgid "Last Modified on"
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
msgid "Project"
msgstr ""

#. module: document_page_project
#: model:ir.actions.act_window,name:document_page_project.action_document_page_projects
msgid "Project Wiki"
msgstr ""

#. module: document_page_project
#: model:ir.model.fields,field_description:document_page_project.field_project_project__document_page_ids
msgid "Wiki"
msgstr ""

#. module: document_page_project
#: model_terms:ir.ui.view,arch_db:document_page_project.edit_project
msgid "Wiki Pages"
msgstr ""
59 changes: 59 additions & 0 deletions document_page_project/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * document_page_project
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-03-16 11:46+0000\n"
"Last-Translator: Ana Suárez <ana.suarez@qubiq.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: document_page_project
#: model_terms:ir.ui.view,arch_db:document_page_project.view_project_kanban
msgid "<span class=\"o_label\">Wiki Pages</span>"
msgstr "<span class=\"o_label\">Páginas Wiki</span>"

#. module: document_page_project
#: model_terms:ir.actions.act_window,help:document_page_project.action_document_page_projects
msgid "Click to create a new web page."
msgstr "Click para crear una página web nueva."

#. module: document_page_project
#: model:ir.model,name:document_page_project.model_document_page
msgid "Document Page"
msgstr "Página Documento"

#. module: document_page_project
#: model:ir.model.fields,field_description:document_page_project.field_project_project__document_page_count
#, fuzzy
msgid "Document Page Count"
msgstr "Número Páginas Documento"

#. 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
msgid "Project"
msgstr "Proyecto"

#. module: document_page_project
#: model:ir.actions.act_window,name:document_page_project.action_document_page_projects
msgid "Project Wiki"
msgstr "Proyecto Wiki"

#. module: document_page_project
#: model:ir.model.fields,field_description:document_page_project.field_project_project__document_page_ids
msgid "Wiki"
msgstr "Wiki"

#. module: document_page_project
#: model_terms:ir.ui.view,arch_db:document_page_project.edit_project
msgid "Wiki Pages"
msgstr "Páginas Wiki"
60 changes: 60 additions & 0 deletions document_page_project/i18n/he_IL.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * document_page_project
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-10-19 08:08+0000\n"
"Last-Translator: Yves Goldberg <admin@ygol.com>\n"
"Language-Team: none\n"
"Language: he_IL\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=4; plural=(n == 1) ? 0 : ((n == 2) ? 1 : ((n > 10 && "
"n % 10 == 0) ? 2 : 3));\n"
"X-Generator: Weblate 3.10\n"

#. module: document_page_project
#: model_terms:ir.ui.view,arch_db:document_page_project.view_project_kanban
msgid "<span class=\"o_label\">Wiki Pages</span>"
msgstr "<span class=\"o_label\">Wiki דפי</span>"

#. module: document_page_project
#: model_terms:ir.actions.act_window,help:document_page_project.action_document_page_projects
msgid "Click to create a new web page."
msgstr "לחץ ליצירת עמוד נחיתה."

#. module: document_page_project
#: model:ir.model,name:document_page_project.model_document_page
msgid "Document Page"
msgstr "עמוד המסמך"

#. module: document_page_project
#: 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
msgid "Project"
msgstr "פרוייקט"

#. module: document_page_project
#: model:ir.actions.act_window,name:document_page_project.action_document_page_projects
msgid "Project Wiki"
msgstr "תיקי Wiki"

#. module: document_page_project
#: model:ir.model.fields,field_description:document_page_project.field_project_project__document_page_ids
#, fuzzy
msgid "Wiki"
msgstr "Wiki"

#. module: document_page_project
#: model_terms:ir.ui.view,arch_db:document_page_project.edit_project
msgid "Wiki Pages"
msgstr "דפי Wiki"
59 changes: 59 additions & 0 deletions document_page_project/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * document_page_project
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-11-13 17:34+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>\n"
"Language-Team: none\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<="
"4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Generator: Weblate 3.8\n"

#. module: document_page_project
#: model_terms:ir.ui.view,arch_db:document_page_project.view_project_kanban
msgid "<span class=\"o_label\">Wiki Pages</span>"
msgstr "<span class=\"o_label\">Wiki Stranice</span>"

#. module: document_page_project
#: model_terms:ir.actions.act_window,help:document_page_project.action_document_page_projects
msgid "Click to create a new web page."
msgstr "Kliknite za kreiranje nove web stranice."

#. module: document_page_project
#: model:ir.model,name:document_page_project.model_document_page
msgid "Document Page"
msgstr "Dokumenti"

#. module: document_page_project
#: model:ir.model.fields,field_description:document_page_project.field_project_project__document_page_count
msgid "Document Page Count"
msgstr "Broj stranica sa dokumentima"

#. 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
msgid "Project"
msgstr "Projekt"

#. module: document_page_project
#: model:ir.actions.act_window,name:document_page_project.action_document_page_projects
msgid "Project Wiki"
msgstr "Wiki Projekta"

#. module: document_page_project
#: model:ir.model.fields,field_description:document_page_project.field_project_project__document_page_ids
msgid "Wiki"
msgstr "Wiki"

#. module: document_page_project
#: model_terms:ir.ui.view,arch_db:document_page_project.edit_project
msgid "Wiki Pages"
msgstr "Wiki stranice"
3 changes: 3 additions & 0 deletions document_page_project/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import document_page
from . import project_project
10 changes: 10 additions & 0 deletions document_page_project/models/document_page.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2019 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from odoo import fields, models


class DocumentPage(models.Model):
_inherit = "document.page"

project_id = fields.Many2one(string="Project", comodel_name="project.project")
17 changes: 17 additions & 0 deletions document_page_project/models/project_project.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2019 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from odoo import fields, models


class ProjectProject(models.Model):
_inherit = "project.project"

document_page_ids = fields.One2many(
string="Wiki", comodel_name="document.page", inverse_name="project_id"
)
document_page_count = fields.Integer(compute="_compute_document_page_count")

def _compute_document_page_count(self):
for rec in self:
rec.document_page_count = len(rec.document_page_ids)
3 changes: 3 additions & 0 deletions document_page_project/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* `Forgeflow <https://www.forgeflow.com>`_:

* Lois Rilo <lois.rilo@forgeflow.com>
1 change: 1 addition & 0 deletions document_page_project/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module allow to link document pages to projects.
2 changes: 2 additions & 0 deletions document_page_project/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Go to to a project and click on "Wiki Pages" to see linked documents or to
create new ones.
Binary file added document_page_project/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading