[FIX] analytic_contract, usability: display the reinvoicing info group when charge_expense is True

bzr revid: qdp-launchpad@openerp.com-20130313161950-lttkc7702pd69duq
This commit is contained in:
Quentin (OpenERP) 2013-03-13 17:19:50 +01:00
parent 46ed704e83
commit 19ddeb4b4b
1 changed files with 7 additions and 0 deletions

View File

@ -43,6 +43,13 @@
<xpath expr="//group[@name='invoice_on_timesheets']" position="attributes">
<attribute name="attrs">{'invisible': [('invoice_on_timesheets','=',False),('charge_expenses','=',False)]}</attribute>
</xpath>
<xpath expr="//field[@name='pricelist_id']" position="attributes">
<attribute name="attrs">{'required': ['|',('invoice_on_timesheets','=',True),('charge_expenses','=',True)]}</attribute>
</xpath>
<xpath expr="//field[@name='to_invoice']" position="attributes">
<attribute name="attrs">{'required': ['|',('invoice_on_timesheets','=',True),('charge_expenses','=',True)]}</attribute>
<attribute name="string">Expenses and Timesheet Invoicing Ratio</attribute>
</xpath>
</field>
</record>