[IMP] add departmeent on hours block and add hours block button on project form view

This commit is contained in:
Vincent Renaville
2013-10-30 17:01:10 +01:00
parent 3b31d34476
commit 8009603769
7 changed files with 70 additions and 1 deletions

View File

@@ -294,6 +294,14 @@ class AccountHoursBlock(orm.Model):
string="Total",
store=True,
readonly=True),
'department_id': fields.related(
'invoice_id', 'department_id',
type='many2one',
relation='hr.department',
string='Department',
store=True,
readonly=True),
'state': fields.related(
'invoice_id', 'state',
type='selection',