dépôts
/
burette
/
lhc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
239a1a6
)
[VIEW] ~only real analytic account available in hr expense form
author
Ludovic CHEVALIER
<tenshi20@no-log.org>
Tue, 3 Dec 2013 15:33:41 +0000
(16:33 +0100)
committer
Ludovic CHEVALIER
<tenshi20@no-log.org>
Tue, 3 Dec 2013 15:33:41 +0000
(16:33 +0100)
view/hr_expense.xml
patch
|
blob
|
history
diff --git
a/view/hr_expense.xml
b/view/hr_expense.xml
index
afe1615
..
199ad7a
100644
(file)
--- a/
view/hr_expense.xml
+++ b/
view/hr_expense.xml
@@
-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">
<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="['&', ('type','=', 'normal'), ('code', '!=', False)]" required="1"/
>
</xpath>
</field>
</record>
</xpath>
</field>
</record>