[FIX] account_analytic_account: onchange_template() fixed

bzr revid: qdp-launchpad@openerp.com-20120614142247-zhv1qoo6mw9bgcgi
This commit is contained in:
Quentin (OpenERP)
2012-06-14 16:22:47 +02:00
parent 2d2ee773ac
commit 33f33dc9ad
@@ -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