[VIEW] ~only real analytic account available in hr expense form
[burette/lhc.git] / view / hr_expense.xml
index afe1615..199ad7a 100644 (file)
@@ -6,8 +6,8 @@
             <field name="model">hr.expense.expense</field>
             <field name="inherit_id" ref="hr_expense.view_expenses_form"/>
             <field name="arch" type="xml">
-                <xpath expr="//field[@name='analytic_account']" position="attributes">
-                    <attribute name="required">1</attribute>
+                <xpath expr="//field[@name='analytic_account']" position="replace">
+                    <field name="analytic_account" domain="['&amp;', ('type','=', 'normal'), ('code', '!=', False)]" required="1"/>
                 </xpath>
             </field>
         </record>