Skip to content

Commit b442511

Browse files
committed
[IMP] - make possible to install this module on v8
1 parent 52af3aa commit b442511

File tree

4 files changed

+17
-20
lines changed

4 files changed

+17
-20
lines changed

document_images_on_partner/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
2-
#################################################################################
2+
###############################################################################
33
#
44
# OpenERP, Open Source Management Solution
5-
# Copyright (C) 2013 Julius Network Solutions SARL <[email protected]>
5+
# Copyright (C) 2013-Today Julius Network Solutions SARL <[email protected]>
66
#
77
# This program is free software: you can redistribute it and/or modify
88
# it under the terms of the GNU General Public License as published by
@@ -17,8 +17,8 @@
1717
# You should have received a copy of the GNU General Public License
1818
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1919
#
20-
#################################################################################
20+
###############################################################################
2121

22-
import partner
22+
from . import partner
2323

2424
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
2-
#################################################################################
2+
###############################################################################
33
#
44
# OpenERP, Open Source Management Solution
5-
# Copyright (C) 2013 Julius Network Solutions SARL <[email protected]>
5+
# Copyright (C) 2013-Today Julius Network Solutions SARL <[email protected]>
66
#
77
# This program is free software: you can redistribute it and/or modify
88
# it under the terms of the GNU General Public License as published by
@@ -17,29 +17,27 @@
1717
# You should have received a copy of the GNU General Public License
1818
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1919
#
20-
#################################################################################
20+
###############################################################################
2121

2222
{
2323
'name': 'Document Images on partners',
24-
'version': '0.1',
24+
'version': '0.2',
2525
'category': 'Base',
2626
'description': """
27-
Get a gallery of images with the attached documents on a partner
28-
""",
27+
Get a gallery of images with the attached documents on a partner
28+
""",
2929
'author': 'Julius Network Solutions',
3030
'website': 'http://www.julius.fr/',
31-
'images': [
32-
],
31+
'images': [],
3332
'depends': [
3433
'document_images',
3534
],
3635
'data': [
3736
'partner_view.xml',
3837
],
3938
'demo': [],
40-
'installable': False,
39+
'installable': True,
4140
'active': False,
42-
'license': 'AGPL-3',
4341
}
4442

4543
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

document_images_on_partner/partner.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
2-
#################################################################################
2+
###############################################################################
33
#
44
# OpenERP, Open Source Management Solution
5-
# Copyright (C) 2013 Julius Network Solutions SARL <[email protected]>
5+
# Copyright (C) 2013-Today Julius Network Solutions SARL <[email protected]>
66
#
77
# This program is free software: you can redistribute it and/or modify
88
# it under the terms of the GNU General Public License as published by
@@ -17,12 +17,11 @@
1717
# You should have received a copy of the GNU General Public License
1818
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1919
#
20-
#################################################################################
20+
###############################################################################
2121

22-
from openerp.osv import orm, fields
23-
from openerp.tools.translate import _
22+
from openerp import models
2423

25-
class res_partner(orm.Model):
24+
class res_partner(models.Model):
2625
_name = 'res.partner'
2726
_inherit = ['res.partner', 'document.images']
2827

0 commit comments

Comments
 (0)