Browse Source

[imp] imports and copyright

pull/7/merge
Lorenzo Battistini 12 years ago
parent
commit
ed5447b12d
  1. 7
      account_financial_report_horizontal/__openerp__.py
  2. 12
      account_financial_report_horizontal/wizard/account_report_balance_sheet.py
  3. 9
      account_financial_report_horizontal/wizard/account_report_common.py
  4. 9
      account_financial_report_horizontal/wizard/account_report_common_account.py
  5. 9
      account_financial_report_horizontal/wizard/account_report_profit_loss.py

7
account_financial_report_horizontal/__openerp__.py

@ -4,7 +4,7 @@
# OpenERP, Open Source Management Solution
# This module copyright (C) 2012 Therp BV (<http://therp.nl>).
# Copyright (C) 2013 Agile Business Group sagl
# (<http://www.agilebg.com>)
# (<http://www.agilebg.com>) (<lorenzo.battistini@agilebg.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@ -32,16 +32,15 @@ This is a port of the horizontal financial reports 'Balance sheet' and
""",
'website': 'http://therp.nl',
'images' : [],
'init_xml': [],
"depends" : ["account"],
'update_xml': [
'data': [
'menu.xml',
'account_report.xml',
'wizard/account_report_common_view.xml',
'wizard/account_report_balance_sheet_view.xml',
'wizard/account_report_profit_loss_view.xml',
],
'demo_xml': [],
'demo': [],
'test': [ ],
'installable': True,
'active': False,

12
account_financial_report_horizontal/wizard/account_report_balance_sheet.py

@ -3,6 +3,8 @@
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2013 Agile Business Group sagl
# (<http://www.agilebg.com>) (<lorenzo.battistini@agilebg.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@ -19,10 +21,10 @@
#
##############################################################################
from osv import osv, fields
from osv import orm, fields
from tools.translate import _
class account_bs_report(osv.osv_memory):
class account_bs_report(orm.TransientModel):
"""
This wizard will provide the account balance sheet report by periods, between any two dates.
"""
@ -50,7 +52,7 @@ class account_bs_report(osv.osv_memory):
context = {}
data['form'].update(self.read(cr, uid, ids, ['display_type','reserve_account_id'])[0])
if not data['form']['reserve_account_id']:
raise osv.except_osv(_('Warning'),_('Please define the Reserve and Profit/Loss account for current user company !'))
raise orm.except_orm(_('Warning'),_('Please define the Reserve and Profit/Loss account for current user company !'))
data = self.pre_print_report(cr, uid, ids, data, context=context)
if data['form']['display_type']:
return {
@ -64,7 +66,3 @@ class account_bs_report(osv.osv_memory):
'report_name': 'account.balancesheet',
'datas': data,
}
account_bs_report()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

9
account_financial_report_horizontal/wizard/account_report_common.py

@ -3,6 +3,8 @@
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2013 Agile Business Group sagl
# (<http://www.agilebg.com>) (<lorenzo.battistini@agilebg.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@ -22,10 +24,10 @@
import time
from lxml import etree
from osv import fields, osv
from osv import fields, orm
from tools.translate import _
class account_common_report(osv.osv_memory):
class account_common_report(orm.TransientModel):
_name = "account_financial_report_horizontal.common.report"
_description = "Account Common Report"
@ -139,6 +141,3 @@ class account_common_report(osv.osv_memory):
data['form']['used_context'] = used_context
return self._print_report(cr, uid, ids, data, context=context)
account_common_report()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

9
account_financial_report_horizontal/wizard/account_report_common_account.py

@ -3,6 +3,8 @@
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2013 Agile Business Group sagl
# (<http://www.agilebg.com>) (<lorenzo.battistini@agilebg.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@ -19,9 +21,9 @@
#
##############################################################################
from osv import osv, fields
from osv import orm, fields
class account_common_account_report(osv.osv_memory):
class account_common_account_report(orm.TransientModel):
_name = 'account_financial_report_horizontal.common.account.report'
_description = 'Account Common Account Report'
_inherit = "account_financial_report_horizontal.common.report"
@ -41,6 +43,3 @@ class account_common_account_report(osv.osv_memory):
data['form'].update(self.read(cr, uid, ids, ['display_account'], context=context)[0])
return data
account_common_account_report()
#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

9
account_financial_report_horizontal/wizard/account_report_profit_loss.py

@ -3,6 +3,8 @@
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2013 Agile Business Group sagl
# (<http://www.agilebg.com>) (<lorenzo.battistini@agilebg.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@ -19,9 +21,9 @@
#
##############################################################################
from osv import osv, fields
from osv import orm, fields
class account_pl_report(osv.osv_memory):
class account_pl_report(orm.TransientModel):
"""
This wizard will provide the account profit and loss report by periods, between any two dates.
"""
@ -56,6 +58,3 @@ class account_pl_report(osv.osv_memory):
'datas': data,
}
account_pl_report()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
Loading…
Cancel
Save