- <xpath expr="//field[@name='account_analytic_id']" position="attributes">
- <attribute name="required">1</attribute>
+ <xpath expr="//tree/field[@name='account_analytic_id']" position="replace">
+ <field name="account_analytic_id" domain="[('type', '=', 'normal'), ('company_id', '=', parent.company_id), ('code', '!=', 'False'), ('state', '=', 'open')]" required="1" />