Skip to content

Commit

Permalink
Merge PR #515 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by etobella
  • Loading branch information
OCA-git-bot committed Jan 24, 2025
2 parents 4c08cb8 + 077e26f commit f5a00a8
Show file tree
Hide file tree
Showing 18 changed files with 743 additions and 2 deletions.
82 changes: 82 additions & 0 deletions document_page_partner/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
===================================
Link to a partner in document pages
===================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:551f3befa9a02d00f51e8256594e83f031d0f482ccdeae01bb56ff8b901760d9
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |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/17.0/document_page_partner
: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_partner
: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
:alt: Try me on Runboat

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

This module allows you to organize your knowledgebase by partner.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, simply fill in a partner for some pages, then you
can search by partner or group by partner.

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_partner%0Aversion:%2017.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
-------

* Therp BV

Contributors
------------

- Holger Brunn <[email protected]>

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/17.0/document_page_partner>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
19 changes: 19 additions & 0 deletions document_page_partner/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
##############################################################################
#
# This module copyright (C) 2015 Therp BV <http://therp.nl>.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from . import models
18 changes: 18 additions & 0 deletions document_page_partner/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2015-24 Therp BV <https://therp.nl>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Link to a partner in document pages",
"version": "17.0.1.0.0",
"website": "https://github.com/OCA/knowledge",
"author": "Therp BV,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Knowledge Management",
"summary": "Allows to link doucment pages to a partner",
"depends": [
"document_page",
],
"data": [
"views/document_page.xml",
],
"installable": True,
}
25 changes: 25 additions & 0 deletions document_page_partner/i18n/document_page_partner.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * document_page_partner
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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_partner
#: model:ir.model,name:document_page_partner.model_document_page
msgid "Document Page"
msgstr ""

#. module: document_page_partner
#: model:ir.model.fields,field_description:document_page_partner.field_document_page__partner_id
#: model_terms:ir.ui.view,arch_db:document_page_partner.view_wiki_filter
msgid "Partner"
msgstr ""
26 changes: 26 additions & 0 deletions document_page_partner/i18n/document_page_partner_id.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * document_page_partner_id
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.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_partner_id
#: model:ir.model,name:document_page_partner_id.model_document_page
msgid "Document Page"
msgstr ""

#. module: document_page_partner_id
#: model:ir.model.fields,field_description:document_page_partner_id.field_document_page_partner_id
#: model:ir.ui.view,arch_db:document_page_partner_id.view_wiki_filter
msgid "Partner"
msgstr ""

28 changes: 28 additions & 0 deletions document_page_partner/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * document_page_partner
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-05-15 21:34+0000\n"
"Last-Translator: Sergio Ariel Ameghino <[email protected]>\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.17\n"

#. module: document_page_partner
#: model:ir.model,name:document_page_partner.model_document_page
msgid "Document Page"
msgstr "Página del documento"

#. module: document_page_partner
#: model:ir.model.fields,field_description:document_page_partner.field_document_page__partner_id
#: model_terms:ir.ui.view,arch_db:document_page_partner.view_wiki_filter
msgid "Partner"
msgstr "Empresa"
28 changes: 28 additions & 0 deletions document_page_partner/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * document_page_partner
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-04-02 11:04+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\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.17\n"

#. module: document_page_partner
#: model:ir.model,name:document_page_partner.model_document_page
msgid "Document Page"
msgstr "Pagina documento"

#. module: document_page_partner
#: model:ir.model.fields,field_description:document_page_partner.field_document_page__partner_id
#: model_terms:ir.ui.view,arch_db:document_page_partner.view_wiki_filter
msgid "Partner"
msgstr "Partner"
28 changes: 28 additions & 0 deletions document_page_partner/i18n/pt.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * document_page_partner
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-07-27 04:58+0000\n"
"Last-Translator: Peter Romão <[email protected]>\n"
"Language-Team: none\n"
"Language: pt\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 5.6.2\n"

#. module: document_page_partner
#: model:ir.model,name:document_page_partner.model_document_page
msgid "Document Page"
msgstr "Página do documento"

#. module: document_page_partner
#: model:ir.model.fields,field_description:document_page_partner.field_document_page__partner_id
#: model_terms:ir.ui.view,arch_db:document_page_partner.view_wiki_filter
msgid "Partner"
msgstr "Parceiro"
3 changes: 3 additions & 0 deletions document_page_partner/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright 2015-24 Therp BV <https://therp.nl>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import document_page
9 changes: 9 additions & 0 deletions document_page_partner/models/document_page.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright 2015-24 Therp BV <https://therp.nl>
# 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"

partner_id = fields.Many2one("res.partner", "Partner", index=True)
3 changes: 3 additions & 0 deletions document_page_partner/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions document_page_partner/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Holger Brunn \<<[email protected]>\>
1 change: 1 addition & 0 deletions document_page_partner/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module allows you to organize your knowledgebase by partner.
2 changes: 2 additions & 0 deletions document_page_partner/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
To use this module, simply fill in a partner for some pages, then you
can search by partner or group by partner.
Binary file added document_page_partner/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

0 comments on commit f5a00a8

Please sign in to comment.