Browse Source

2.1

pull/6/head
Mathias Markl 7 years ago
parent
commit
ed2b434115
  1. 2
      muk_fields_lobject/__manifest__.py
  2. 5
      muk_fields_lobject/doc/changelog.rst
  3. 2
      muk_fields_lobject/fields.py
  4. 1
      muk_fields_lobject/models/__init__.py
  5. 27
      muk_fields_lobject/models/ir_model_fields.py

2
muk_fields_lobject/__manifest__.py

@ -20,7 +20,7 @@
{ {
"name": "MuK Large Objects", "name": "MuK Large Objects",
"summary": """PGSQL Large Objects Support""", "summary": """PGSQL Large Objects Support""",
"version": '11.0.2.0.0',
"version": '11.0.2.1.0',
"category": 'Extra Tools', "category": 'Extra Tools',
"license": "AGPL-3", "license": "AGPL-3",
"website": "https://www.mukit.at", "website": "https://www.mukit.at",

5
muk_fields_lobject/doc/changelog.rst

@ -1,3 +1,8 @@
`2.1.0`
-------
- Added XML View Support
`2.0.0` `2.0.0`
------- -------

2
muk_fields_lobject/fields.py

@ -99,3 +99,5 @@ class LargeObject(fields.Field):
return lobject.read() return lobject.read()
return base64.b64encode(lobject.read()) return base64.b64encode(lobject.read())
return '' return ''
fields.LargeObject = LargeObject

1
muk_fields_lobject/models/__init__.py

@ -18,3 +18,4 @@
################################################################################### ###################################################################################
from . import ir_http from . import ir_http
from . import ir_model_fields

27
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 <http://www.gnu.org/licenses/>.
#
###################################################################################
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')])
Loading…
Cancel
Save