Merge pull request #7 from acsone/7.0-account_asset_management-config-sbi

[IMP] account_asset_management: replace official config option.
This commit is contained in:
luc-demeyer
2015-01-03 20:13:05 +01:00
4 changed files with 59 additions and 0 deletions

View File

@@ -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:

View File

@@ -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,

View File

@@ -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 <http://www.gnu.org/licenses/>.
#
##############################################################################
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."""),
}

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="view_account_config_settings">
<field name="name">account.config.settings.inherit</field>
<field name="inherit_id" ref="account.view_account_config_settings"/>
<field name="model">account.config.settings</field>
<field name="arch" type="xml">
<field name="module_account_asset" position="replace">
<field name="module_account_asset_management" class="oe_inline"/>
</field>
<xpath expr="//label[@for='module_account_asset']" position="replace">
<label for="module_account_asset_management"/>
</xpath>
</field>
</record>
</data>
</openerp>