Skip to content

Commit

Permalink
[FIX] allow install
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdiga committed Sep 26, 2016
1 parent d6c2624 commit 20e1d7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions c2c_project_timesheet/timesheet_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _update_project_id(self, cr, uid, ids, context=None):
'date_date': lambda *a: time.strftime('%Y-%m-%d')
}

def init(self, cr):
def no_init(self, cr):

res_user_obj = self.pool.get('res.users')
if res_user_obj._columns.get('context_tz'):
Expand All @@ -104,8 +104,9 @@ def init(self, cr):

work_ids = self.search(cr, 1, [])
for work in self.browse(cr, 1, work_ids):
if work.date_date:
d = work.date_date+' 12:00:00'
if d != work.date:
if d != work.date and not work.hr_analytic_timesheet_id.line_id.invoice_id :
self.write(cr, 1, [work.id], {'date': d})


Expand Down
2 changes: 1 addition & 1 deletion c2c_sequence_fy/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
, 'security/ir.model.access.csv'
]
, 'demo_xml' : []
, 'installable': False
, 'installable': True
, 'application' : False
, 'active' : False
}
Expand Down

0 comments on commit 20e1d7a

Please sign in to comment.