diff options
| author | Christophe Monniez <moc@odoo.com> | 2017-11-24 10:47:40 +0100 |
|---|---|---|
| committer | Christophe Monniez <moc@odoo.com> | 2017-11-24 14:16:33 +0100 |
| commit | 72799e1f02282978a770473362bff2202961cf19 (patch) | |
| tree | 484065878655071f3dff70d779be0a5959a82085 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | eb6233ae44540ae498308552f3a559bd2b66413c (diff) | |
[FIX] project_timesheet_holidays: add default project and task on status
When using this module, the default behavior is to generate timesheet.
This timsheet is linked to a project and a task and there is a
constrain that verify that the task and project are set on model.
If another module (like l10n_fr_hr_payroll for example) tries to
create holidays.status without a project and task, it causes a
traceback.
This commit adds default values for these fields in order fullfill
the constrains.
Notice that the order of the imports in the __init__ is important
because the columns have to be created on the res.company before the
status is initialized.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
