change leaves_balancee_action
This commit is contained in:
parent
fbd9157114
commit
1979098602
|
|
@ -105,12 +105,10 @@ class HrOfficialMission(models.Model):
|
|||
|
||||
|
||||
@api.depends('hour_duration', 'date_duration')
|
||||
|
||||
def compute_number_of_hours(self):
|
||||
for item in self:
|
||||
if item.hour_duration and item.date_duration:
|
||||
|
||||
item.total_hours = item.hour_duration * item.date_duration
|
||||
# if item.hour_duration and item.date_duration:
|
||||
item.total_hours = item.hour_duration * item.date_duration
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -36,20 +36,15 @@
|
|||
<!-- </field>-->
|
||||
<!-- </record>-->
|
||||
|
||||
<!-- <record model="ir.actions.act_window" id="leaves_balancee_action">-->
|
||||
<!-- <field name="name">Leaves Balance</field>-->
|
||||
<!-- <field name="res_model">hr.holidays</field>-->
|
||||
<!-- <field name="view_mode">tree,form</field>-->
|
||||
<!-- <field name="view_ids" eval="[-->
|
||||
<!-- (5, 0, 0),-->
|
||||
<!-- (0, 0, {'view_mode': 'tree', 'view_id': ref('view_hr_holidays_tree_no_delete')}),-->
|
||||
<!-- (0, 0, {'view_mode': 'form', 'view_id': ref('hr_holidays_public.leaves_balance_form_view')})-->
|
||||
<!-- ]"/>-->
|
||||
<!-- <field name="domain">[('type','=','add'),('check_allocation_view','=','balance')]</field>-->
|
||||
<!-- <field name="context">{'search_default_employee_id': [active_id], 'default_employee_id': active_id, 'search_default_group_type': 1,-->
|
||||
<!-- 'search_default_year': 1}</field>-->
|
||||
<!-- <field name="search_view_id" ref="hr_holidays_community.view_hr_holidays_filter"/>-->
|
||||
<!-- </record>-->
|
||||
<record model="ir.actions.act_window" id="leaves_balancee_action">
|
||||
<field name="name">Leaves Balance</field>
|
||||
<field name="res_model">hr.holidays</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="domain">[('type','=','add'),('check_allocation_view','=','balance')]</field>
|
||||
<field name="context">{'default_type':'add', 'default_check_allocation_view': 'balance'}</field>
|
||||
<field name="search_view_id" ref="hr_holidays_community.view_hr_holidays_filter"/>
|
||||
|
||||
</record>
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue