[IMP] hr_hourly_cost: remove security group

Remove the security group introduced in odoo/odoo#97988 as it's
redundant with the group_hr_user.

task-2929518

closes odoo/odoo#100127

Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
Kevin Baptiste
2022-09-14 16:18:20 +02:00
parent ad2701d216
commit 277d71d56c
4 changed files with 3 additions and 16 deletions
-1
View File
@@ -12,7 +12,6 @@ This module assigns an hourly wage to employees to be used by other modules.
""",
'depends': ['hr'],
'data': [
'security/hr_hourly_cost_security.xml',
'views/hr_employee_views.xml',
],
'demo': [
@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="1">
<record id="group_hourly_cost_manager" model="res.groups">
<field name="name">Administrator</field>
<field name="category_id" ref="base.module_category_services_employee_hourly_cost"/>
<field name="implied_ids" eval="[(4, ref('hr.group_hr_user'))]"/>
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>
</data>
</odoo>
@@ -10,8 +10,8 @@
<attribute name="string">Application Settings</attribute>
</group>
<group name="application_group" position="inside">
<label for="hourly_cost" groups="hr_hourly_cost.group_hourly_cost_manager"/>
<div name="hourly_cost" groups="hr_hourly_cost.group_hourly_cost_manager">
<label for="hourly_cost"/>
<div name="hourly_cost">
<field name="hourly_cost" class="oe_inline"/> per hour
<field name="currency_id" invisible="1"/>
</div>
@@ -22,8 +22,7 @@
<record id="group_timesheet_manager" model="res.groups">
<field name="name">Administrator</field>
<field name="category_id" ref="base.module_category_services_timesheets"/>
<field name="implied_ids" eval="[(4, ref('hr_timesheet.group_hr_timesheet_approver')), (4, ref('hr.group_hr_user')),
(4, ref('hr_hourly_cost.group_hourly_cost_manager'))]"/>
<field name="implied_ids" eval="[(4, ref('hr_timesheet.group_hr_timesheet_approver')), (4, ref('hr.group_hr_user'))]"/>
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>