[IMP]:improved view and code.
bzr revid: apa@tinyerp.com-20120529104451-24axuiq8m5s43tcj
This commit is contained in:
parent
590cdc3253
commit
cbb75342c0
|
@ -379,15 +379,15 @@ class account_analytic_account(osv.osv):
|
|||
'real_margin_rate': fields.function(_real_margin_rate_calc, type='float', string='Real Margin Rate (%)',
|
||||
help="Computes using the formula: (Real Margin / Total Costs) * 100.",
|
||||
digits_compute=dp.get_precision('Account')),
|
||||
'so_visible' : fields.boolean('sale order line visible'),
|
||||
'timsheet_visible' : fields.boolean("On timesheet"),
|
||||
'expense_visible' : fields.boolean('expense line visible'),
|
||||
'fix_price_invoices' : fields.boolean('Fix Price Invoices'),
|
||||
'invoice_on_timesheets' : fields.boolean("Invoice On Timesheets"),
|
||||
'charge_expenses' : fields.boolean('Charge Expenses'),
|
||||
'month_ids': fields.function(_analysis_all, multi='analytic_analysis', type='many2many', relation='account_analytic_analysis.summary.month', string='Month'),
|
||||
'user_ids': fields.function(_analysis_all, multi='analytic_analysis', type="many2many", relation='account_analytic_analysis.summary.user', string='User'),
|
||||
'template_id':fields.many2one('account.analytic.account', 'Template Of Contract'),
|
||||
'fix_exp_max' : fields.float('Max. amt'),
|
||||
'timesheet_max': fields.float('max_timesheet'),
|
||||
'expense_max': fields.float('expenses'),
|
||||
#'fix_exp_max' : fields.float('Max. amt'),
|
||||
#'timesheet_max': fields.float('max_timesheet'),
|
||||
#'expense_max': fields.float('expenses'),
|
||||
}
|
||||
def on_change_template(self, cr, uid, id, template_id):
|
||||
if not template_id:
|
||||
|
|
|
@ -45,8 +45,35 @@
|
|||
</group>
|
||||
</xpath>
|
||||
<xpath expr='//separator[@name="description"]' position='before'>
|
||||
<separator colspan="4" string="Invoicing" name="invoicing"/>
|
||||
<group colspan="4" name="contract_lines" class="oe_form_group_label_border">
|
||||
<separator colspan="4" string="Invoicing" name="invoicing"/>
|
||||
<group colspan="4">
|
||||
<group col="2" colspan="1" class="oe_form_group_label_border">
|
||||
<label string=" "/><label string=" "/>
|
||||
<field name="fix_price_invoices"/>
|
||||
<field name="invoice_on_timesheets"/>
|
||||
<field name="charge_expenses"/>
|
||||
</group>
|
||||
<group col="2" colspan="1">
|
||||
<label string="Est.Tot"/>
|
||||
<label string="Invoiced"/>
|
||||
<field name="amount_max" nolabel="1" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/>
|
||||
</group>
|
||||
<group col="2" colspan="1" class="oe_form_group_odd_border">
|
||||
<label string="Remaining"/>
|
||||
<label string="Ready To Invoice"/>
|
||||
<label string="TODO" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/>
|
||||
<label string="TODO" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/>
|
||||
</group>
|
||||
<group col="2" colspan="1">
|
||||
<label string=" "/><label string=" "/>
|
||||
<button name="%(sale.action_order_form)d" string="Sales" type="action" context="{'default_project_id': active_id,'search_default_project_id': active_id}" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/>
|
||||
<button 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': [('fix_price_invoices','=',0)]}"/>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
|
||||
|
||||
<!--<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>
|
||||
|
@ -93,7 +120,7 @@
|
|||
<td><div class="oe_totals" ></div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</group>
|
||||
</group>-->
|
||||
<group colspan="4" class="oe_form_group_label_border">
|
||||
<field name="pricelist_id" />
|
||||
<field name="to_invoice" widget="selection" />
|
||||
|
|
Loading…
Reference in New Issue