--- /dev/null
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Account analytic improved module for OpenERP, Improve some account
+# analytic module problem Copyright (C) 2015 L'Heureux Cyclage
+# (<http://www.heureux-cyclage.org>) Ludovic CHEVALIER
+#
+# This file is a part of Account analytic improved
+#
+# Account analytic improved is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Account analytic improved 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
--- /dev/null
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Account analytic improved module for OpenERP, Improve some account
+# analytic module problem Copyright (C) 2015 L'Heureux Cyclage
+# (<http://www.heureux-cyclage.org>) Ludovic CHEVALIER
+#
+# This file is a part of Account analytic improved
+#
+# Account analytic improved is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Account analytic improved 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+
+{
+ 'name': 'Account analytic module improvement',
+ 'author': 'L\'Heureux Cyclage',
+ 'version': '0.1',
+ 'category': 'Accounting & Finance',
+ 'description': """
+Account analytic module improvement
+===================================
+
+It installs the profile for bike co-ops to manage some features like:
+ * ...
+ """,
+ 'website': 'http://www.heureux-cyclage.org',
+ 'images': [],
+ 'depends': [
+ 'account',
+ 'hr_expense',
+ ],
+ 'init_xml': [
+ ],
+ 'update_xml': [
+ 'view/hr_expense.xml',
+ ],
+ 'installable': True,
+ 'auto_install': False,
+}
+
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+ <data>
+ <record id="view_expenses_form" model="ir.ui.view">
+ <field name="name">hr.expense.expense.form</field>
+ <field name="model">hr.expense.expense</field>
+ <field name="inherit_id" ref="hr_expense.view_expenses_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="/form/sheet/notebook/page/field/form/group/group/field[@name='analytic_account']" position="replace">
+ <field name="analytic_account" domain="['&', ('type','=', 'normal'), ('code', '!=', False), ('state', '=', 'open')]" required="1"/><field name="analytic_account" domain="['&', ('type','=', 'normal'), ('code', '!=', False), ('state', '=', 'open')]" required="1"/>
+ </xpath>
+ <xpath expr="/form/sheet/notebook/page/field/tree/field[@name='analytic_account']" position="replace">
+ <field name="analytic_account" domain="['&', ('type','=', 'normal'), ('code', '!=', False), ('state', '=', 'open')]" required="1"/>
+ </xpath>
+ </field>
+ </record>
+ </data>
+</openerp>