diff --git a/account_move_line_report_xls/__init__.py b/account_move_line_report_xls/__init__.py index 6ad98d0c..728de535 100644 --- a/account_move_line_report_xls/__init__.py +++ b/account_move_line_report_xls/__init__.py @@ -20,5 +20,5 @@ # ############################################################################## -import account_move_line -import report +from . import account_move_line +from . import report diff --git a/account_move_line_report_xls/account_move_line.py b/account_move_line_report_xls/account_move_line.py index 2d12f38a..230720b1 100644 --- a/account_move_line_report_xls/account_move_line.py +++ b/account_move_line_report_xls/account_move_line.py @@ -20,9 +20,9 @@ # ############################################################################## -from osv import osv, fields +from openerp.osv import fields, orm -class account_move_line(osv.osv): +class account_move_line(orm.Model): _inherit = 'account.move.line' # override list in custom module to add/drop columns or change order @@ -31,6 +31,3 @@ class account_move_line(osv.osv): 'move', 'name', 'date', 'period', 'partner', 'account', 'date_maturity', 'debit', 'credit', 'balance', 'reconcile', 'reconcile_partial', ] - - -account_move_line() diff --git a/account_move_line_report_xls/report/__init__.py b/account_move_line_report_xls/report/__init__.py index cb01ef04..b4754155 100644 --- a/account_move_line_report_xls/report/__init__.py +++ b/account_move_line_report_xls/report/__init__.py @@ -20,4 +20,4 @@ # ############################################################################## -import move_line_list_xls +from . import move_line_list_xls diff --git a/account_move_line_report_xls/report/move_line_list_xls.py b/account_move_line_report_xls/report/move_line_list_xls.py index 9bc5b06c..5cb1e36e 100644 --- a/account_move_line_report_xls/report/move_line_list_xls.py +++ b/account_move_line_report_xls/report/move_line_list_xls.py @@ -23,12 +23,11 @@ import xlwt import time from datetime import datetime -from report import report_sxw -from report_xls.report_xls import report_xls -from report_xls.utils import rowcol_to_cell, _render -from account_move_line_report.report.move_line_list_print import move_line_list_print -from tools.translate import _ -import pooler +from openerp.report import report_sxw +from openerp.addons.report_xls.report_xls import report_xls +from openerp.addons.report_xls.utils import rowcol_to_cell, _render +from openerp.tools.translate import _ +from openerp import pooler import logging _logger = logging.getLogger(__name__)