- <group colspan="4" name="contract_lines" class="oe_form_group_label_border">
- <table name="contract_data">
- <tr name="title" >
- <th ><div class="oe_field_label" ></div></th>
- <td><div></div></td>
- <th ><div class="oe_float_field_view" >Total Cost</div></th>
- <th ><div class="oe_field_view" >Invoiced</div></th>
- <th ><div class="oe_field_view" >Remaining</div></th>
- <th ><div class="oe_float_field_view" >Ready to Invoice</div></th>
- </tr>
- <tr>
- <th><div class="oe_field_label">Fix price Invoices</div></th>
- <td><div><field name="so_visible" nolabel="1"/></div></td>
- <td><div class="oe_float_field_view"><field name="fix_exp_max" nolabel="1" attrs="{'invisible': [('so_visible','=',0)]}"/></div></td>
- <td><div class="oe_field_view"><field name="ca_invoiced" nolabel="1" attrs="{'invisible': [('so_visible','=',0)]}"/></div></td>
- <td><div class="oe_field_view"></div></td>
- <td><div class="oe_float_field_view"><field name="ca_to_invoice" nolabel="1" attrs="{'invisible': [('so_visible','=',0)]}"/></div></td>
- <td><button class="oe_title_button_right" name="%(sale.action_order_form)d" string="Sales" type="action" context="{'default_project_id': active_id,'search_default_project_id': active_id}" attrs="{'invisible': [('so_visible','=',0)]}"/></td>
- <td><button class="oe_title_button_left" name="%(sale.action_order_line_tree2)d" string="Lines To Invoice" type="action" context="{'default_project_id': active_id,'search_default_project_id': active_id}" attrs="{'invisible': [('so_visible','=',0)]}"/></td>
- </tr>
- <tr>
- <th><div class="oe_field_label">Invoice on timesheet</div></th>
- <td><div><field name="timsheet_visible" nolabel="1"/></div></td>
- <td><div class="oe_float_field_view" ><field name="timesheet_max" nolabel="1" attrs="{'invisible': [('timsheet_visible','=',0)]}"/></div></td>
- <td><div class="oe_field_view" ><field name="hours_qtt_invoiced" nolabel="1" attrs="{'invisible': [('timsheet_visible','=',0)]}"/></div></td>
- <td><div class="oe_field_view" ></div></td>
- <td><div class="oe_float_field_view" ><field name="hours_qtt_non_invoiced" nolabel="1" attrs="{'invisible': [('timsheet_visible','=',0)]}"/></div></td>
- <td><button class="oe_title_button_right" name="%(hr_timesheet_invoice.act_account_analytic_account_2_report_timehsheet_account)d" string="Timesheets" type="action" attrs="{'invisible': [('timsheet_visible','=',0)]}"/></td>
- <td><button class="oe_title_button_left" name="%(hr_timesheet_invoice.act_acc_analytic_acc_2_report_acc_analytic_line_to_invoice)d" string="Invoice Timesheets" type="action" attrs="{'invisible': [('timsheet_visible','=',0)]}"/></td>
- </tr>
- <tr>
- <th><div class="oe_field_label" >Charge Expenses</div></th>
- <td><div><field name="expense_visible" nolabel="1"/></div></td>
- <td><div class="oe_float_field_view" ><field name="expense_max" nolabel="1" attrs="{'invisible': [('expense_visible','=',0)]}"/></div></td>
- <td><div class="oe_field_view" ></div></td>
- <td><div class="oe_field_view" ></div></td>
- <td><div class="oe_float_field_view"></div></td>
- </tr>
- <!-- <tr name="total">
- <th><div class="oe_field_label" >Total</div></th>
- <td><div></div></td>
- <td><div class="oe_totals" ><field name="total_max" nolabel="1" /><field name="currency_symbol" nolabel="1" readonly="True"/></div></td>
- <td><div class="oe_totals_view" ><field name="total_invoiced" nolabel="1" /><field name="currency_symbol" nolabel="1" readonly="True"/></div></td>
- <td><div class="oe_totals_view" ><field name="total_remaining" nolabel="1" /></div></td>
- <td><div class="oe_totals" ><field name="total_toinvoice" nolabel="1" ></field></div></td>
- </tr> -->
- </table>
- </group>
- <group colspan="4" class="oe_form_group_label_border">
- <field name="pricelist_id" />
- <field name="to_invoice" widget="selection" />
- </group>
- </xpath>
- <!-- <notebook position="inside">
- <page string="Invoice Analysis">
- <separator colspan="4" string="Work Done Stats"/>
-
- <field name="total_cost"/>
- <field name="remaining_ca"/>
- <field name="ca_invoiced"/>
- <field name="ca_theorical"/>
- <newline/>
- <field name="hours_quantity"/>
- <field name="hours_qtt_invoiced"/>
- <field name="remaining_hours"/>
- <newline/>
- <separator colspan="4" string="Analysis Stats"/>
-
- <field name="revenue_per_hour"/>
- <field name="real_margin"/>
- <field name="real_margin_rate"/>
- <field name="theorical_margin"/>
- <separator colspan="4" string="Key Dates"/>
-
- <field name="last_invoice_date"/>
- <field name="last_worked_invoiced_date"/>
- <field name="last_worked_date"/>
- </page>
- <page string="Stats by month">
- <field colspan="4" name="month_ids" nolabel="1">
- <tree string="Month">
- <field name="month"/>
- <field name="unit_amount" widget="float_time"/>
- </tree>
- </field>
- </page>
- <page string="Stats by user">
- <field colspan="4" name="user_ids" nolabel="1">
- <tree string="Users">
- <field name="user"/>
- <field name="unit_amount" widget="float_time"/>
- </tree>
- </field>
- </page>
- </notebook> -->
-
+ <group colspan="4" col="6">
+ <!-- header -->
+ <div class="oe_field_label" colspan="2"/>
+ <group colspan="4" col="6">
+ <div class="oe_field_label_bold">Est.Tot</div>
+ <div class="oe_field_label_bold">Invoiced</div>
+ <div class="oe_field_label_bold">Remaining</div>
+ <div class="oe_field_label_bold">To Invoice</div>
+ <div class="oe_btn_width_small"/>
+ <div class="oe_btn_width"/>
+ </group>
+
+ <!-- center -->
+
+ <field class="oe_field_label" name="fix_price_invoices" />
+ <group colspan="4" col="6" attrs="{'invisible': [('fix_price_invoices','=',False)]}">
+ <field class="oe_float_field" name="amount_max" nolabel="1" />
+ <field class="oe_float_field" name="ca_invoiced" nolabel="1" />
+ <field class="oe_float_field" name="remaining_ca" nolabel="1" />
+ <field class="oe_float_field" name="ca_to_invoice" nolabel="1" />
+ <div><button class="oe_btn_width_small" icon="terp-check" name="%(action_sales_order_line)d" string="Sales" type="action" context="{'default_project_id': active_id,'search_default_project_id': active_id}"/></div>
+ <div><button class="oe_btn_width" icon="terp-dolar_ok!" name="%(sale.action_order_line_tree2)d" string="Lines To Invoice" type="action" context="{'default_project_id': active_id,'search_default_project_id': active_id}"/></div>
+ </group>
+
+ <field class="oe_field_label" name="invoice_on_timesheets"/>
+ <group colspan="4" col="6" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}">
+ <field class="oe_float_field" name="hours_qtt_est" nolabel="1" />
+ <field class="oe_float_field" name="hours_qtt_invoiced" nolabel="1"/>
+ <field class="oe_float_field" name="remaining_hours" nolabel="1" />
+ <field class="oe_float_field" name="hours_qtt_non_invoiced" nolabel="1" />
+ <div><button class="oe_btn_width_small" icon="terp-go-week" name="%(hr_timesheet.act_hr_timesheet_line_evry1_all_form)d" string="Timesheets" type="action" /></div>
+ <div><button class="oe_btn_width" icon="terp-dolar" name="%(hr_timesheet_invoice.act_acc_analytic_acc_2_report_acc_analytic_line_to_invoice)d" string="Invoice Timesheets" type="action"/></div>
+ </group>
+
+ <!-- footer -->
+
+ <div name="total" class="oe_field_label" style="max-width:200px;" colspan="2">Total </div>
+ <group colspan="4" col="6" >
+ <field name="est_total" nolabel="1" class="oe_float_field oe_border_top"/>
+ <field name="invoiced_total" nolabel="1" class="oe_float_field oe_border_top"/>
+ <field name="remaining_total" nolabel="1" class="oe_float_field oe_border_top"/>
+ <field name="toinvoice_total" nolabel="1" class="oe_float_field oe_border_top"/>
+ <div class="oe_btn_width_small"/>
+ <div class="oe_btn_width"/>
+ </group>
+ </group>
+ </xpath>