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:
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
3248
Views
<?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 >
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Sep 19
|
9067 | ||
|
0
Sep 24
|
167 | ||
|
1
Jul 19
|
3099 | ||
|
0
Jul 22
|
3370 | ||
|
2
Oct 19
|
5836 |