diff --git a/account_asset_management/__init__.py b/account_asset_management/__init__.py index 6eb2d7ec0..09dc24a85 100644 --- a/account_asset_management/__init__.py +++ b/account_asset_management/__init__.py @@ -28,5 +28,6 @@ from . import account from . import account_move from . import wizard from . import report +from . import res_config # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/account_asset_management/__openerp__.py b/account_asset_management/__openerp__.py index 82566faae..9b2fc1b6a 100644 --- a/account_asset_management/__openerp__.py +++ b/account_asset_management/__openerp__.py @@ -73,6 +73,7 @@ Contributors 'account_view.xml', 'account_asset_invoice_view.xml', 'report/account_asset_report_view.xml', + 'res_config_view.xml', ], 'auto_install': False, 'installable': True, diff --git a/account_asset_management/res_config.py b/account_asset_management/res_config.py new file mode 100644 index 000000000..5360863b2 --- /dev/null +++ b/account_asset_management/res_config.py @@ -0,0 +1,37 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# +# Copyright (c) 2014 ACSONE SA/NV (http://acsone.eu). +# +# 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 . +# +############################################################################## + +from openerp.osv import orm, fields + + +class Config(orm.Model): + _inherit = 'account.config.settings' + + _columns = { + 'module_account_asset_management': fields.boolean( + 'Assets management (OCA)', + help="""This allows you to manage the assets owned by a company + or a person. It keeps track of the depreciation occurred + on those assets, and creates account move for those + depreciation lines. + This installs the module account_asset_management."""), + } diff --git a/account_asset_management/res_config_view.xml b/account_asset_management/res_config_view.xml new file mode 100644 index 000000000..deaf223ee --- /dev/null +++ b/account_asset_management/res_config_view.xml @@ -0,0 +1,20 @@ + + + + + + account.config.settings.inherit + + account.config.settings + + + + + + + + + + + \ No newline at end of file