[FIX] account_analytic_account: onchange_template() fixed
bzr revid: qdp-launchpad@openerp.com-20120614142247-zhv1qoo6mw9bgcgi
This commit is contained in:
@@ -443,13 +443,10 @@ class account_analytic_account(osv.osv):
|
||||
return {}
|
||||
res = {'value':{}}
|
||||
template = self.browse(cr, uid, template_id, context=context)
|
||||
if template.date_start:
|
||||
res['value']['date_start'] = str(template.date_start)
|
||||
if template.date:
|
||||
res['value']['date'] = str(template.date)
|
||||
res['value']['fix_price_invoices'] = template.fix_price_invoices
|
||||
res['value']['invoice_on_timesheets'] = template.invoice_on_timesheets
|
||||
res['value']['quantity_max'] = template.quantity_max
|
||||
res['value']['hours_qtt_est'] = template.hours_qtt_est
|
||||
res['value']['amount_max'] = template.amount_max
|
||||
res['value']['to_invoice'] = template.to_invoice.id
|
||||
res['value']['pricelist_id'] = template.pricelist_id.id
|
||||
|
||||
Reference in New Issue
Block a user