diff --git a/.travis.yml b/.travis.yml index 6503e665..a656fbe2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ sudo: false cache: pip addons: + postgresql: "9.6" apt: packages: - expect-dev # provides unbuffer utility @@ -15,14 +16,11 @@ python: env: global: - - VERSION="10.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" - - TRANSIFEX_USER='transbot@odoo-community.org' - - secure: "k8/ebCIiOPGEIcL4Pzji2tanrjAzP5bqY0dSOmZwdNVNfncCrQREYbQgPhuTJHKuEX5E76kCuJJE70x0PEFhtaJt6K8KLvIF3B7/FJNUdXy6cjOKgBNfJuBSJRmkRM8mfxS2K+mqi4R3OEy4R2v4X/syK6F7vKxNhcRmindDfY8=" + - VERSION="10.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0" matrix: - LINT_CHECK="1" - - TRANSIFEX="1" - - TESTS="1" ODOO_REPO="odoo/odoo" + - TESTS="1" ODOO_REPO="odoo/odoo" MAKEPOT="1" - TESTS="1" ODOO_REPO="OCA/OCB" virtualenv: diff --git a/README.md b/README.md index f8eaa3b8..726358df 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ addon | version | summary [attachment_attach_non_editable](attachment_attach_non_editable/) | 10.0.1.0.0 | Force enable attachments [document_page](document_page/) | 10.0.2.1.0 | Document Page [document_page_approval](document_page_approval/) | 10.0.2.1.0 | Document Page Approval +[document_page_partner_id](document_page_partner_id/) | 10.0.1.0.0 | Allows to link doucment pages to a partner [document_page_tags](document_page_tags/) | 10.0.1.0.0 | Allows you to assign tags or keywords to pages and search for them afterwards [knowledge](knowledge/) | 10.0.1.0.0 | Knowledge Management System diff --git a/attachment_attach_non_editable/static/description/icon.png b/attachment_attach_non_editable/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/attachment_attach_non_editable/static/description/icon.png differ diff --git a/document_page/wizard/document_page_create_menu.py b/document_page/wizard/document_page_create_menu.py index ebc2649a..7e4fbe98 100644 --- a/document_page/wizard/document_page_create_menu.py +++ b/document_page/wizard/document_page_create_menu.py @@ -65,7 +65,6 @@ class DocumentPageCreateMenu(models.TransientModel): menu_id = obj_menu.sudo().create({ 'name': data.menu_name, 'parent_id': data.menu_parent_id.id, - 'icon': 'STOCK_DIALOG_QUESTION', 'action': 'ir.actions.act_window,' + str(action_id.id), }) page.write({'menu_id': menu_id.id}) diff --git a/document_page_approval/static/description/icon.png b/document_page_approval/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/document_page_approval/static/description/icon.png differ diff --git a/document_page_partner_id/README.rst b/document_page_partner_id/README.rst new file mode 100644 index 00000000..56b64551 --- /dev/null +++ b/document_page_partner_id/README.rst @@ -0,0 +1,78 @@ +=================================== +Link to a partner in document pages +=================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/10.0/document_page_partner_id + :alt: OCA/knowledge +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/knowledge-10-0/knowledge-10-0-document_page_partner_id + :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/10.0 + :alt: Try me on Runbot + +|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 `_. +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Therp BV + +Contributors +~~~~~~~~~~~~ + +* Holger Brunn + +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 `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/document_page_partner_id/__init__.py b/document_page_partner_id/__init__.py new file mode 100644 index 00000000..cdb7d736 --- /dev/null +++ b/document_page_partner_id/__init__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# This module copyright (C) 2015 Therp BV . +# +# 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 . +# +############################################################################## +from . import models diff --git a/document_page_partner_id/__manifest__.py b/document_page_partner_id/__manifest__.py new file mode 100644 index 00000000..35e9fcb5 --- /dev/null +++ b/document_page_partner_id/__manifest__.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# Copyright 2015-18 Therp BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + "name": "Link to a partner in document pages", + "version": "10.0.1.0.0", + "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, +} diff --git a/document_page_partner_id/i18n/document_page_partner_id.pot b/document_page_partner_id/i18n/document_page_partner_id.pot new file mode 100644 index 00000000..890a5c3f --- /dev/null +++ b/document_page_partner_id/i18n/document_page_partner_id.pot @@ -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 "" + diff --git a/document_page_partner_id/models/__init__.py b/document_page_partner_id/models/__init__.py new file mode 100644 index 00000000..5c90bd22 --- /dev/null +++ b/document_page_partner_id/models/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Copyright 2015-18 Therp BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +from . import document_page diff --git a/document_page_partner_id/models/document_page.py b/document_page_partner_id/models/document_page.py new file mode 100644 index 00000000..b612808c --- /dev/null +++ b/document_page_partner_id/models/document_page.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright 2015-18 Therp BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +from openerp import models, fields + + +class DocumentPage(models.Model): + _inherit = 'document.page' + + partner_id = fields.Many2one('res.partner', 'Partner', index=True) diff --git a/document_page_partner_id/readme/CONTRIBUTORS.rst b/document_page_partner_id/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..b120a956 --- /dev/null +++ b/document_page_partner_id/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Holger Brunn diff --git a/document_page_partner_id/readme/DESCRIPTION.rst b/document_page_partner_id/readme/DESCRIPTION.rst new file mode 100644 index 00000000..98ec1212 --- /dev/null +++ b/document_page_partner_id/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module allows you to organize your knowledgebase by partner. diff --git a/document_page_partner_id/readme/USAGE.rst b/document_page_partner_id/readme/USAGE.rst new file mode 100644 index 00000000..d958ad25 --- /dev/null +++ b/document_page_partner_id/readme/USAGE.rst @@ -0,0 +1 @@ +To use this module, simply fill in a partner for some pages, then you can search by partner or group by partner. diff --git a/document_page_partner_id/static/description/icon.png b/document_page_partner_id/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/document_page_partner_id/static/description/icon.png differ diff --git a/document_page_partner_id/static/description/index.html b/document_page_partner_id/static/description/index.html new file mode 100644 index 00000000..c128ee4f --- /dev/null +++ b/document_page_partner_id/static/description/index.html @@ -0,0 +1,424 @@ + + + + + + +Link to a partner in document pages + + + + + + diff --git a/document_page_partner_id/views/document_page.xml b/document_page_partner_id/views/document_page.xml new file mode 100644 index 00000000..c3a3c4af --- /dev/null +++ b/document_page_partner_id/views/document_page.xml @@ -0,0 +1,35 @@ + + + + + document.page + + + + + + + + + document.page + + + + + + + + + document.page + + + + + + + + + + + + diff --git a/setup/_metapackage/VERSION.txt b/setup/_metapackage/VERSION.txt index 40d78a00..0345ab8a 100644 --- a/setup/_metapackage/VERSION.txt +++ b/setup/_metapackage/VERSION.txt @@ -1 +1 @@ -10.0.20180915.0 \ No newline at end of file +10.0.20190605.0 \ No newline at end of file diff --git a/setup/_metapackage/setup.py b/setup/_metapackage/setup.py index 6e73847a..d0178913 100644 --- a/setup/_metapackage/setup.py +++ b/setup/_metapackage/setup.py @@ -11,6 +11,7 @@ setuptools.setup( 'odoo10-addon-attachment_attach_non_editable', 'odoo10-addon-document_page', 'odoo10-addon-document_page_approval', + 'odoo10-addon-document_page_partner_id', 'odoo10-addon-document_page_tags', 'odoo10-addon-knowledge', ], diff --git a/setup/document_page_partner_id/odoo/__init__.py b/setup/document_page_partner_id/odoo/__init__.py new file mode 100644 index 00000000..de40ea7c --- /dev/null +++ b/setup/document_page_partner_id/odoo/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/setup/document_page_partner_id/odoo/addons/__init__.py b/setup/document_page_partner_id/odoo/addons/__init__.py new file mode 100644 index 00000000..de40ea7c --- /dev/null +++ b/setup/document_page_partner_id/odoo/addons/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/setup/document_page_partner_id/odoo/addons/document_page_partner_id b/setup/document_page_partner_id/odoo/addons/document_page_partner_id new file mode 120000 index 00000000..d1228c30 --- /dev/null +++ b/setup/document_page_partner_id/odoo/addons/document_page_partner_id @@ -0,0 +1 @@ +../../../../document_page_partner_id \ No newline at end of file diff --git a/setup/document_page_partner_id/setup.py b/setup/document_page_partner_id/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/document_page_partner_id/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)