Compare commits
48 Commits
43d0d8526b
...
623f63d3bf
| Author | SHA1 | Date |
|---|---|---|
|
|
623f63d3bf | |
|
|
d74591ff58 | |
|
|
291a64d748 | |
|
|
f926c73776 | |
|
|
dcb2eb15e7 | |
|
|
25a929bb41 | |
|
|
91df8acb79 | |
|
|
182e8068f8 | |
|
|
ec471a356c | |
|
|
1bf17ff725 | |
|
|
064fef323a | |
|
|
e2c33eaf2a | |
|
|
b105ec91e0 | |
|
|
b8f860b8c9 | |
|
|
4a69391d8e | |
|
|
69fabf5a5f | |
|
|
6582f3dc90 | |
|
|
beaccbb238 | |
|
|
a04cf80495 | |
|
|
0c0b46f7a9 | |
|
|
6b05e02a34 | |
|
|
e5b9e7183c | |
|
|
11e9b7ed86 | |
|
|
39928d886b | |
|
|
1f66b6ed6b | |
|
|
eeb1db9380 | |
|
|
8bfc48b07c | |
|
|
7224c8a3d5 | |
|
|
b1e568de55 | |
|
|
fab22d9949 | |
|
|
1d6d3f5e0f | |
|
|
e5b94079ed | |
|
|
7b4b2bb6fc | |
|
|
9495d2580a | |
|
|
02bac1fe47 | |
|
|
b850615371 | |
|
|
4e199c4fd9 | |
|
|
f33bbee53a | |
|
|
c8567b353b | |
|
|
61ac808e56 | |
|
|
4dfc8067be | |
|
|
6b47e358b7 | |
|
|
b41457f43b | |
|
|
724f956044 | |
|
|
a47d0c16ca | |
|
|
9d51a83713 | |
|
|
b38d5f8baa | |
|
|
8a71219373 |
|
|
@ -148,7 +148,6 @@ class MaintenanceEquipment(models.Model):
|
||||||
location = fields.Char('Location')
|
location = fields.Char('Location')
|
||||||
model = fields.Char('Model')
|
model = fields.Char('Model')
|
||||||
serial_no = fields.Char('Serial Number', copy=False)
|
serial_no = fields.Char('Serial Number', copy=False)
|
||||||
mac_address = fields.Char('MAC address', copy=False)
|
|
||||||
assign_date = fields.Date('Assigned Date', tracking=True)
|
assign_date = fields.Date('Assigned Date', tracking=True)
|
||||||
cost = fields.Float('Cost')
|
cost = fields.Float('Cost')
|
||||||
note = fields.Html('Note')
|
note = fields.Html('Note')
|
||||||
|
|
|
||||||
|
|
@ -416,7 +416,6 @@
|
||||||
<field name="partner_ref"/>
|
<field name="partner_ref"/>
|
||||||
<field name="model"/>
|
<field name="model"/>
|
||||||
<field name="serial_no"/>
|
<field name="serial_no"/>
|
||||||
<field name="mac_address"/>
|
|
||||||
</group><group>
|
</group><group>
|
||||||
<field name="effective_date"/>
|
<field name="effective_date"/>
|
||||||
<field name="cost" groups="maintenance.group_equipment_manager"/>
|
<field name="cost" groups="maintenance.group_equipment_manager"/>
|
||||||
|
|
@ -495,13 +494,13 @@
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<list string="Assign To User" sample="1">
|
<list string="Assign To User" sample="1">
|
||||||
<field name="message_needaction" column_invisible="True"/>
|
<field name="message_needaction" column_invisible="True"/>
|
||||||
<field name="owner_user_id" string="Owner"/>
|
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
<field name="category_id"/>
|
|
||||||
<!-- <field name="active" invisible="1"/> -->
|
<!-- <field name="active" invisible="1"/> -->
|
||||||
|
<field name="owner_user_id" string="Owner"/>
|
||||||
<field name="assign_date" groups="base.group_no_one"/>
|
<field name="assign_date" groups="base.group_no_one"/>
|
||||||
<field name="serial_no"/>
|
<field name="serial_no"/>
|
||||||
<field name="technician_user_id"/>
|
<field name="technician_user_id"/>
|
||||||
|
<field name="category_id"/>
|
||||||
<field name="partner_id" column_invisible="True"/>
|
<field name="partner_id" column_invisible="True"/>
|
||||||
<field name="company_id" groups="base.group_multi_company"/>
|
<field name="company_id" groups="base.group_multi_company"/>
|
||||||
<field name="activity_exception_decoration" widget="activity_exception"/>
|
<field name="activity_exception_decoration" widget="activity_exception"/>
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ class EmployeeDashboard(http.Controller):
|
||||||
taken_leaves = request.env['hr.leave'].search([
|
taken_leaves = request.env['hr.leave'].search([
|
||||||
('employee_id', '=', employee.id),
|
('employee_id', '=', employee.id),
|
||||||
('holiday_status_id', '=', leave_type.id),
|
('holiday_status_id', '=', leave_type.id),
|
||||||
('state', 'in', ['validate','validate1','confirm']),
|
('state', '=', 'validate'),
|
||||||
])
|
])
|
||||||
|
|
||||||
total_allocated = sum(a.number_of_days for a in allocations)
|
total_allocated = sum(a.number_of_days for a in allocations)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue