Skip to Content
Menu
This question has been flagged

I have extended hr.expense and created extra approval levels; I have added the relevant user groups and the buttons for approval level workflow.
However; As a normal user with no rights. This error appears when they perform any function like creating an expense or trying to view expense report; "External ID must be fully qualified" AssertionError: External ID must be fully qualified. But as admin, the error is not there.

Here are the groups:

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- create relevant groups -->
<!-- supervisor group -->
<record id="group_hr_expense_supervisor" model="res.groups">
<field name="name">Supervisor</field>
<field name="category_id" ref="base.module_category_hr_expense"/>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
</record>

<!-- operatations officer group -->
<record id="group_hr_expense_operations" model="res.groups">
<field name="name">Operations Officer</field>
<field name="category_id" ref="base.module_category_hr_expense"/>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
</record>
<!-- finance manager group -->
<record id="group_hr_expense_finance" model="res.groups">
<field name="name">Finance manager</field>
<field name="category_id" ref="base.module_category_hr_expense"/>
<field name="implied_ids" eval="[(4, ref('base.group_user')),(4, ref('account.group_account_user'))]"/>
</record>
<!-- ceo group -->
< record id = "group_hr_expense_ceo_manager" model = "res.groups" >
< field name = "name" > CEO Manager </ field >
< field name = "category_id" ref = "base.module_category_hr_expense" />
< field name = "implied_ids" eval = "[(4, ref ('hr_expense.group_hr_expense_user'))]" />
< field name = "users" eval = "[(4, ref ('base.user_root')), (4, ref ('base.user_admin'))]" />
</ record >

< record id = "base.default_user" model = "res.users" >
< field name = "groups_id" eval = "[(4, ref ('hr_expense.group_hr_expense_manager'))]" />
</ record >


</ odoo >



Avatar
Discard
Related Posts Replies Views Activity
0
Sep 19
9067
0
Sep 24
167
1
Jul 19
3099
0
Jul 22
3370
2
Oct 19
5836