diff --git a/document_page_partner_id/README.rst b/document_page_partner_id/README.rst new file mode 100644 index 00000000..08ec1348 --- /dev/null +++ b/document_page_partner_id/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 +=================================== +Link to a partner in document pages +=================================== + +This module allows you to organize your knowledgebase by partner. + +Usage +===== + +To use this module, simply fill in a partner for some pages, then you can search by partner or group by partner. + +* go to ... +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas +:alt: Try me on Runbotknowl + :target: https://runbot.odoo-community.org/runbot/118/8.0 + +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 +`here `_. + +Credits +======= + +Contributors +------------ + +* Holger Brunn + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +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. + +To contribute to this module, please visit http://odoo-community.org. 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/__openerp__.py b/document_page_partner_id/__openerp__.py new file mode 100644 index 00000000..0864e2fd --- /dev/null +++ b/document_page_partner_id/__openerp__.py @@ -0,0 +1,34 @@ +# -*- 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 . +# +############################################################################## +{ + "name": "Link to a partner in document pages", + "version": "8.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/models/__init__.py b/document_page_partner_id/models/__init__.py new file mode 100644 index 00000000..c22dbddd --- /dev/null +++ b/document_page_partner_id/models/__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 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..6a61b031 --- /dev/null +++ b/document_page_partner_id/models/document_page.py @@ -0,0 +1,26 @@ +# -*- 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 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/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/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 + + + + + + + + + + + +