diff options
| author | Ravi Gohil <rgo@tinyerp.com> | 2016-03-25 11:12:40 +0100 |
|---|---|---|
| committer | Jérome Maes <jem@openerp.com> | 2016-04-13 12:28:34 +0200 |
| commit | 44c62e1b7f02bb43ed75615076bcbbc7195f72d4 (patch) | |
| tree | 0ae1aa7c0b7444fc68a7b221d9966f5a5eef7239 /addons/hr/security | |
| parent | c232e3cbcbeb0f84a5bcec4d12557eacc1fbc65a (diff) | |
[MIGR] hr : migrate to new api
- Rewrite the code to new api without changes
business behavior
- Remove old v7 backward compatibility method
- Regroup view definitions in the same xml file
- Use read_group for computed fields
Diffstat (limited to 'addons/hr/security')
| -rw-r--r-- | addons/hr/security/hr_security.xml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/addons/hr/security/hr_security.xml b/addons/hr/security/hr_security.xml index 3a598bb4a70..320ca081325 100644 --- a/addons/hr/security/hr_security.xml +++ b/addons/hr/security/hr_security.xml @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<openerp> -<data noupdate="0"> +<odoo> - <record model="res.groups" id="base.group_user"> + <record id="base.group_user" model="res.groups"> <field name="comment">the user will be able to manage his own human resources stuff (leave request, timesheets, ...), if he is linked to an employee in the system.</field> </record> @@ -12,6 +11,7 @@ <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/> <field name="comment">the user will be able to approve document created by employees.</field> </record> + <record id="base.group_hr_manager" model="res.groups"> <field name="name">Manager</field> <field name="comment">the user will have an access to the human resources configuration as well as statistic reports.</field> @@ -19,7 +19,7 @@ <field name="implied_ids" eval="[(4, ref('base.group_hr_user'))]"/> <field name="users" eval="[(4, ref('base.user_root'))]"/> </record> - + <record id="base.default_user" model="res.users"> <field name="groups_id" eval="[(4,ref('base.group_hr_manager'))]"/> </record> @@ -29,21 +29,21 @@ <field name="category_id" ref="base.module_category_hidden"/> </record> -</data> <data noupdate="1"> <record id="hr_dept_comp_rule" model="ir.rule"> <field name="name">Department multi company rule</field> <field name="model_id" ref="model_hr_department"/> - <field eval="True" name="global"/> + <field name="global" eval="True"/> <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> </record> + <record id="hr_job_comp_rule" model="ir.rule"> <field name="name">Job multi company rule</field> <field name="model_id" ref="model_hr_job"/> - <field eval="True" name="global"/> + <field name="global" eval="True"/> <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> </record> </data> -</openerp> +</odoo> |
