* Analytic account is mandatory, and is filter (normal, with code and open only) in:
* expense form view;
* account invoice form view.
- * ...
+ * Description is available on normal analytic account;
+ * …
""",
'website': 'http://www.heureux-cyclage.org',
'images': [],
],
'update_xml': [
'view/account.xml',
+ 'view/analytic.xml',
'view/hr_expense.xml',
'view/purchase.xml',
'view/sale.xml',
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+ <data>
+ <record id="view_account_analytic_account_form" model="ir.ui.view">
+ <field name="name">account.analytic.account.form</field>
+ <field name="model">account.analytic.account</field>
+ <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="//notebook" position="inside">
+ <page string="Description" attrs="{'invisible':[('type','in',['contract', 'template'])]}">
+ <field name="description"/>
+ </page>
+ </xpath>
+ </field>
+ </record>
+ </data>
+</openerp>