[FIX] hr_timesheet_sheet: domain was wrong in js widget

This commit is contained in:
Damien Bouvy
2015-08-28 10:45:15 +02:00
parent 29896805ca
commit 0f05b49185
@@ -249,13 +249,8 @@ var WeeklyTimesheet = form_common.FormWidget.extend(form_common.ReinitializeWidg
name: "account",
type: "many2one",
domain: [
['type','in',['normal', 'contract']],
['state', '<>', 'close'],
['id', 'not in', _.pluck(self.accounts, "account")],
],
context: {
default_type: "contract",
},
modifiers: '{"required": true}',
},
});