diff --git a/muk_fields_lobject/__manifest__.py b/muk_fields_lobject/__manifest__.py index 0002af1..2dc06ff 100644 --- a/muk_fields_lobject/__manifest__.py +++ b/muk_fields_lobject/__manifest__.py @@ -20,7 +20,7 @@ { "name": "MuK Large Objects", "summary": """PGSQL Large Objects Support""", - "version": '11.0.2.0.0', + "version": '11.0.2.1.0', "category": 'Extra Tools', "license": "AGPL-3", "website": "https://www.mukit.at", diff --git a/muk_fields_lobject/doc/changelog.rst b/muk_fields_lobject/doc/changelog.rst index 3e74086..933b525 100644 --- a/muk_fields_lobject/doc/changelog.rst +++ b/muk_fields_lobject/doc/changelog.rst @@ -1,3 +1,8 @@ +`2.1.0` +------- + +- Added XML View Support + `2.0.0` ------- diff --git a/muk_fields_lobject/fields.py b/muk_fields_lobject/fields.py index e470b14..52ba082 100644 --- a/muk_fields_lobject/fields.py +++ b/muk_fields_lobject/fields.py @@ -98,4 +98,6 @@ class LargeObject(fields.Field): if record._context.get('export_raw_data'): return lobject.read() return base64.b64encode(lobject.read()) - return '' \ No newline at end of file + return '' + +fields.LargeObject = LargeObject \ No newline at end of file diff --git a/muk_fields_lobject/models/__init__.py b/muk_fields_lobject/models/__init__.py index 5313b03..961ed22 100644 --- a/muk_fields_lobject/models/__init__.py +++ b/muk_fields_lobject/models/__init__.py @@ -18,3 +18,4 @@ ################################################################################### from . import ir_http +from . import ir_model_fields diff --git a/muk_fields_lobject/models/ir_model_fields.py b/muk_fields_lobject/models/ir_model_fields.py new file mode 100644 index 0000000..eacd9be --- /dev/null +++ b/muk_fields_lobject/models/ir_model_fields.py @@ -0,0 +1,27 @@ +################################################################################### +# +# Copyright (C) 2018 MuK IT GmbH +# +# 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 odoo import _, api, models, fields +from odoo.exceptions import ValidationError + +class IrModelField(models.Model): + + _inherit = 'ir.model.fields' + + ttype = fields.Selection(selection_add=[('lobject', 'lobject')]) \ No newline at end of file