mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] add departmeent on hours block and add hours block button on project form view
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user