2012-06-07 12:36:41 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
<record id="account_analytic_account_form_expense_form" model="ir.ui.view">
|
|
|
|
<field name="name">account.analytic.account.form.expense.inherit</field>
|
|
|
|
<field name="model">account.analytic.account</field>
|
2012-06-18 14:57:20 +00:00
|
|
|
<field eval="60" name="priority"/>
|
2012-08-29 19:08:31 +00:00
|
|
|
<field name="inherit_id" ref="account_analytic_analysis.account_analytic_account_form_form"/>
|
2012-06-18 15:09:38 +00:00
|
|
|
<field name="arch" type="xml">
|
2012-06-18 12:29:30 +00:00
|
|
|
<xpath expr='//tr[@name="total"]' position='before'>
|
|
|
|
<tr>
|
2012-10-28 08:28:29 +00:00
|
|
|
<td class="oe_timesheet_grey">
|
2012-06-18 12:29:30 +00:00
|
|
|
<label for="charge_expenses"/>
|
2012-10-28 08:28:29 +00:00
|
|
|
</td><td class="oe_timesheet_grey">
|
2012-06-18 12:29:30 +00:00
|
|
|
<field name="charge_expenses"/>
|
|
|
|
</td><td>
|
|
|
|
<field class="oe_form_inline" name="est_expenses" attrs="{'invisible': [('charge_expenses','=',False)]}"/>
|
|
|
|
</td><td>
|
|
|
|
<field class="oe_form_inline" name="expense_invoiced" attrs="{'invisible': [('charge_expenses','=',False)]}"/>
|
|
|
|
</td><td>
|
|
|
|
<field class="oe_form_inline" name="remaining_expense" attrs="{'invisible': [('charge_expenses','=',False)]}"/>
|
|
|
|
</td><td>
|
|
|
|
<field class="oe_form_inline" name="expense_to_invoice" attrs="{'invisible': [('charge_expenses','=',False)]}"/>
|
2012-10-28 08:28:29 +00:00
|
|
|
</td><td attrs="{'invisible': [('charge_expenses','=',False)]}" class="oe_timesheet_action">
|
|
|
|
<span attrs="{'invisible': [('expense_to_invoice','=',0)]}" class="oe_grey">
|
|
|
|
<button
|
|
|
|
name="hr_to_invoice_expense"
|
|
|
|
class="oe_link"
|
|
|
|
string="⇒ Invoice" type="object"
|
|
|
|
/>
|
2012-10-28 16:49:09 +00:00
|
|
|
or view
|
2012-10-28 08:28:29 +00:00
|
|
|
</span>
|
|
|
|
<span attrs="{'invisible': [('expense_to_invoice','<>',0)]}" class="oe_grey">
|
2012-10-28 16:49:09 +00:00
|
|
|
Nothing to invoice, create
|
2012-10-28 08:28:29 +00:00
|
|
|
</span>
|
2012-08-29 19:08:31 +00:00
|
|
|
<button
|
|
|
|
name="open_hr_expense"
|
|
|
|
class="oe_link"
|
2012-10-28 16:49:09 +00:00
|
|
|
string="expenses" type="object"/>
|
2012-06-18 12:29:30 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2012-06-08 07:20:54 +00:00
|
|
|
</xpath>
|
2013-03-14 11:27:40 +00:00
|
|
|
<xpath expr="//p[@name='invoice_on_timesheets_label']" position="attributes">
|
2013-03-13 15:57:25 +00:00
|
|
|
<attribute name="attrs">{'invisible': [('invoice_on_timesheets','=',False),('charge_expenses','=',False)]}</attribute>
|
|
|
|
</xpath>
|
2013-03-13 16:19:50 +00:00
|
|
|
<xpath expr="//field[@name='pricelist_id']" position="attributes">
|
2013-03-14 11:27:40 +00:00
|
|
|
<attribute name="attrs">{'required': ['|',('invoice_on_timesheets','=',True),('charge_expenses','=',True)], 'invisible':[('invoice_on_timesheets','=',False), ('charge_expenses','=',False)]}</attribute>
|
2013-03-13 16:19:50 +00:00
|
|
|
</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>
|
2012-06-08 07:20:54 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2012-06-08 08:38:42 +00:00
|
|
|
<!--<record id="project_form_expense_form" model="ir.ui.view">
|
2012-06-08 07:20:54 +00:00
|
|
|
<field name="name">project.project.form.expense.inherit</field>
|
|
|
|
<field name="model">project.project</field>
|
|
|
|
<field name="inherit_id" ref="analytic_contract_project.project_account_analytic_account_form"/>
|
|
|
|
<field eval="20" name="priority"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr='//div[@name="end_of_tabl_hook"]' position='before'>
|
|
|
|
<tr>
|
|
|
|
<th class="oe_border_right">Charge Expenses</th>
|
|
|
|
<td><field name="charge_expenses" nolabel="1"/></td>
|
|
|
|
<td><field class="oe_th_110px" name="est_expenses" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
|
|
|
<td class="oe_th_110px"><field name="expense_invoiced" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
|
|
|
<td class="oe_th_110px oe_border_right"><field name="remaining_expense" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
|
|
|
<td class="oe_th_110px"><field name="expense_to_invoice" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
|
|
|
<td width="10px"></td>
|
|
|
|
<td><button icon="gtk-select-all" class= "oe_btn_width" name="open_hr_expense" string="Expenses" type="object" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
|
|
|
<td><button icon="terp-dolar" class= "oe_btn_width" name="hr_to_invoiced_expense" string="Invoice Expenses" type="object" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
|
2012-06-07 12:36:41 +00:00
|
|
|
</tr>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
2012-06-08 08:38:42 +00:00
|
|
|
</record>-->
|
2012-06-07 12:36:41 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|