Access Rights: What Each User Can Do
The access rights of Expenses come from the groups and the access rules of the module hr_expense. This part tells what each kind of user can do.
The app has three levels, all under the privilege Expenses:
Team Approver. For managers. It can approve the expenses of the team (see below). It includes the basic internal user.
All Approver. Includes the Team Approver. It can approve the expenses of everybody.
Administrator. Includes the All Approver. It also manages the configuration: the products and the activity types.
In addition, a user with the accounting level Accountant, or with the right to see invoices, works with the journal entries and the payments of the expenses.
The Basic User
The basic user is a user who has the basic internal level and no Expenses level.
The menu bar has My Expenses and Reporting. In developer mode a Configuration menu also shows, with one entry, Activity Types. The Settings and the Expense Products are not there.
The basic user sees only his or her own expenses. Reading the expense of another employee is not allowed.
He or she can create an expense for himself or herself, but cannot create one for another employee (refused).
He or she can submit his or her own expense. After the submit the expense is read only: a change is refused.
He or she cannot approve his or her own expense. Odoo answers: You cannot approve: You are neither a Manager nor a HR Officer.
He or she can reset his or her own submitted expense back to draft, and delete his or her own draft.
He or she can read the expense products, but cannot create one (refused).
On the form the basic user does not see the fields Company, Existing Bill and Account, and the buttons Journal Entry and Payment.
The Approvers
A user with the level Team Approver is the approver of the employees who name him or her in the field Expense of their cards. A user with the level All Approver can approve the expenses of everybody.
Team Approver. Sees the expenses of the employees whose approver he or she is, and his or her own expenses, and no others. He or she can approve these expenses, and Odoo makes the draft purchase receipt. The expense of another employee cannot be read, so it cannot be approved or refused. He or she cannot approve his or her own expense: Odoo says, It is your own expense. In developer mode the menu Configuration has Activity Types only, and a product cannot be created.
All Approver. Sees the expenses of every employee. Can approve the expense of any employee, also of other approvers, and the button Refuse opens the refuse window. The screen Expenses to Process opens with the submitted expenses of everybody. In developer mode the menu Configuration shows only Activity Types. Cannot create a product and cannot post the journal entry of an approved expense (Odoo says, You do not have the access rights to post an invoice), because posting needs an accounting level. Cannot open the Odoo settings.
Administrator. Also sees the menu entry Expense Products. The Settings entry shows only to users who have the Administrator right of the Odoo settings.
A person who is not allowed to act on an expense gets the answer: You are neither a Manager nor a HR Officer, or It is not from your department.
Only HR officers, accountants and the employee himself or herself can reset an expense to draft. An expense that is linked to a posted journal entry cannot be reset.
Rules for Everybody
A multi-company rule hides the expenses of the companies that the user is not allowed to see.
A user needs accounting rights to see the buttons Journal Entry and Payment on the expense and the fields Account and Existing Bill.