<openerp>
    <data>
        <record id="timesheet_line_closed_project_task" model="ir.rule">
            <field name="name">Prevent to use a closed task or analytic account on timesheet line</field>
            <field name="model_id" ref="hr_timesheet.model_hr_analytic_timesheet"/>
            <field name="domain_force">['|', ('task_id', '=', False), ('task_id.stage_id.closed', '!=', True),('account_id.project_ids.state', 'not in', ('close', 'cancelled'))]</field>
            <field name="perm_read"   eval="0"/>
            <field name="perm_write"  eval="1"/>
            <field name="perm_create" eval="1"/>
            <field name="perm_unlink" eval="1"/>
        </record>
    </data>
</openerp>
<openerp>
    <data>
<!--         <record id="timesheet_line_closed_project_task" model="ir.rule">
            <field name="name">Prevent to use a closed task or analytic account on timesheet line</field>
            <field name="model_id" ref="hr_timesheet.model_hr_analytic_timesheet"/>
            <field name="domain_force">['|', ('task_id', '=', False), ('task_id.stage_id.closed', '!=', True),('account_id.project_ids.state', 'not in', ('close', 'cancelled'))]</field>
            <field name="perm_read"   eval="0"/>
            <field name="perm_write"  eval="1"/>
            <field name="perm_create" eval="1"/>
            <field name="perm_unlink" eval="1"/>
        </record> -->
    </data>
</openerp>
Comment the record rule which isn't realy compatible with the javascript widget
[CHG][hr_timesheet_no_closed_project_task] Comment the record rule which isn't realy compatible with the javascript widget
