diff options
| author | Denis Ledoux <dle@odoo.com> | 2015-02-10 11:48:41 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-02-10 11:54:55 +0100 |
| commit | c718661ba8ca6972f86fa21f427dd8b17b6dff80 (patch) | |
| tree | 32fb1387f9c1fa0206efd3fef92febe414407924 /addons/analytic_user_function/analytic_user_function_view.xml | |
| parent | 1d76586a1b0fff766581871cd277332bbfec030a (diff) | |
[FIX] hr_timesheet_sheet: default product in analytic lines
The module analytic_user_function allows to define a specific product
to use, when creating timesheet activities for a specific employee
with a specific contract
Nevertheless, the product was not set accordingly to this feature
for the first timesheet activity, because,
when initilialing the timesheet line,
the on_change_account_id, which returns
the product to use according to the user and contract, was called
without passing the user.
Besides, by default, on_change_account_id does not have a user_id parameter,
this parameter is added by the module analytic_user_function, overriding
this onchange, and adding a new user_id parameter (which is not a good pratice).
We therefore use multi_on_change_account_id, which allow to pass the user_id,
within the context
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions
