Skip to content

Commit 3b76982

Browse files
committed
[IMP] - migrate some modules to the v8.0
1 parent 1e38430 commit 3b76982

File tree

20 files changed

+112
-123
lines changed

20 files changed

+112
-123
lines changed

account_analytic_line_display_all/__init__.py

Lines changed: 3 additions & 3 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,6 +17,6 @@
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
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

account_analytic_line_display_all/__openerp__.py

Lines changed: 6 additions & 5 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,7 +17,7 @@
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": "Display all fields in Analytic lines",
@@ -27,8 +27,9 @@
2727
"description": """
2828
Analytic lines tree view display
2929
================================
30+
3031
This module adds a "Display all" filter to show/hide fields for the analytic lines tree view
31-
""",
32+
""",
3233
"author": "Julius Network Solutions",
3334
"website": "http://www.julius.fr",
3435
"depends": [
@@ -38,7 +39,7 @@
3839
"account_analytic_line_view.xml",
3940
],
4041
"demo": [],
41-
"installable": False,
42+
"installable": True,
4243
"active": False,
4344
}
4445

account_invoice_sequence_writeable/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#
2929
##############################################################################
3030

31-
import invoice
32-
import account
31+
from . import invoice
32+
from . import account
3333

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

account_invoice_sequence_writeable/__openerp__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,12 @@
4040
"depends" : [
4141
'account',
4242
],
43-
"init_xml" : [],
44-
"update_xml" : [
43+
"demo" : [],
44+
"data" : [
4545
'account_view.xml',
4646
],
47-
"demo_xml" : [],
4847
"active": False,
49-
"installable": False,
48+
"installable": True,
5049
}
5150

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

account_journal_show_only_code/__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 account_journal_show_code
22+
from . import account_journal_show_code
2323

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

account_journal_show_only_code/__openerp__.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,7 +17,7 @@
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': 'Account Journal Show Code Only',
@@ -33,7 +33,7 @@
3333
],
3434
'data': [],
3535
'demo': [],
36-
'installable': False,
36+
'installable': True,
3737
'active': False,
3838
}
3939

account_journal_show_only_code/account_journal_show_code.py

Lines changed: 10 additions & 23 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,32 +17,19 @@
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 osv, fields, orm
23-
from openerp.tools.translate import _
22+
from openerp import models, api
2423

25-
class account_journal(orm.Model):
26-
24+
class account_journal(models.Model):
2725
_inherit = 'account.journal'
28-
29-
def name_get(self, cr, user, ids, context=None):
30-
if not ids:
31-
return []
32-
if isinstance(ids, (int, long)):
33-
ids = [ids]
34-
result = self.browse(cr, user, ids, context=context)
26+
27+
@api.multi
28+
def name_get(self):
3529
res = []
36-
for rs in result:
37-
# currency = False
38-
# if rs.currency:
39-
# currency = rs.currency
40-
# else:
41-
# currency = rs.company_id.currency_id
30+
for rs in self:
4231
name = "%s" % (rs.code)
43-
# if currency:
44-
# name += " (%s)" % (currency.name,)
45-
res += [(rs.id, name)]
32+
res.append((rs.id, name))
4633
return res
4734

4835

account_move_line_allow_update/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
#
2020
#################################################################################
2121

22-
import account
22+
from . import account
2323

2424
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
Lines changed: 11 additions & 9 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,22 +17,24 @@
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
"name" : "Accounting constraint removal",
2323
"version" : "1.2",
2424
"author" : "Julius Network Solutions",
2525
"category": 'Accounting & Finance',
2626
"description": """
27-
This module removes a constraint which leads to the impossibility to modify some fields of account move lines
28-
""",
27+
Description:
28+
============
29+
30+
This module removes a constraint which leads to the impossibility to modify some fields of account move lines
31+
""",
2932
'website': 'http://www.julius.fr/',
30-
'init_xml': [],
3133
"depends" : ['account'],
32-
'update_xml': [],
33-
'demo_xml': [],
34+
'data': [],
35+
'demo': [],
3436
'test': [],
35-
'installable': False,
37+
'installable': True,
3638
'active': False,
3739
}
3840
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

account_tax_regeneration/__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 account
22+
from . import account
2323

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

0 commit comments

Comments
 (0)