Code review comment for lp:~camptocamp/openobject-addons/7.0-fix-1190259

Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

An other option would be to use the boolean field 'use_timehseets'

There is a bigger cleaning to do about it in hr_timesheet and hr_timesheet_sheet modules

Complete domain might be
[('type','in',['normal', 'contract']), ('state', '<>', 'close'),('use_timesheets','=',1)]

gtAnd complete context should be:
context="{'default_use_timesheets': 1, 'default_type': 'contract'}"

« Back to merge proposal