[FIX] sale: config, timesheet if module account_analytic_analysis
authorDenis Ledoux <dle@odoo.com>
Wed, 30 Jul 2014 13:26:43 +0000 (15:26 +0200)
committerDenis Ledoux <dle@odoo.com>
Wed, 30 Jul 2014 13:26:43 +0000 (15:26 +0200)
commit873dc0370d7a006156cbfeb2ee793ddd67437777
tree2beea645077e0be50a8ad052d274f58ad6093ae0
parentdd4d72d710ab9ffcc3143130a6b5feecf8ce7a5d
[FIX] sale: config, timesheet if module account_analytic_analysis

In Settings > Sales, the onchange_timesheet ensure that if you check timesheet, it checks module_account_analytic_analysis.

Therefore, if module_account_analytic_analysis is installed, timesheet should be checked by default
Until now, it worked "luckily", because the onchange_timesheet of the field module_account_analytic_analysis was triggered before the onchange_timesheet of the timesheet field. Nevertheless, we shouldn't trust the onchange calls order.
addons/sale/res_config.py