[MIG] Migrate document_page_partner_id from 8.0 to 10.0

This commit is contained in:
George Daramouskas 2018-06-01 14:18:03 +02:00
parent 721b4fb990
commit 1eb1d357f4
No known key found for this signature in database
GPG Key ID: 5B4EF742F8CD859C
6 changed files with 52 additions and 106 deletions

View File

@ -1,5 +1,6 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
===================================
Link to a partner in document pages
===================================
@ -12,9 +13,11 @@ 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
:target: https://runbot.odoo-community.org/runbot/118/10.0
Bug Tracker
===========
@ -31,6 +34,7 @@ Contributors
------------
* Holger Brunn <hbrunn@therp.nl>
* George Daramouskas <gdaramouskas@therp.nl>
Maintainer
----------

View File

@ -1,20 +1,4 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# 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/>.
#
##############################################################################
# Copyright 2018 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models

View File

@ -1,25 +1,9 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# 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/>.
#
##############################################################################
# Copyright 2018 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Link to a partner in document pages",
"version": "8.0.1.0.0",
"version": "10.0.1.0.0",
"author": "Therp BV,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Knowledge Management",

View File

@ -1,20 +1,4 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# 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/>.
#
##############################################################################
# Copyright 2018 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import document_page

View File

@ -1,23 +1,7 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# 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 openerp import models, fields
# Copyright 2018 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models, fields
class DocumentPage(models.Model):

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<odoo>
<record id="view_wiki_form" model="ir.ui.view">
<field name="model">document.page</field>
<field name="inherit_id" ref="document_page.view_wiki_form" />
@ -10,6 +10,7 @@
</field>
</field>
</record>
<record id="view_wiki_tree" model="ir.ui.view">
<field name="model">document.page</field>
<field name="inherit_id" ref="document_page.view_wiki_tree" />
@ -19,6 +20,7 @@
</field>
</field>
</record>
<record id="view_wiki_filter" model="ir.ui.view">
<field name="model">document.page</field>
<field name="inherit_id" ref="document_page.view_wiki_filter" />
@ -27,9 +29,13 @@
<field name="partner_id" />
</field>
<xpath expr="//group//filter/ancestor::group">
<filter name="partner_id" string="Partner" domain="[]" context="{'group_by': 'partner_id'}" />
<filter
name="partner_id"
string="Partner"
domain="[]"
context="{'group_by': 'partner_id'}" />
</xpath>
</field>
</record>
</data>
</openerp>
</odoo>