Expenses - Odoo 20 Community Book

Special Cases

Splitting an Expense

A bill sometimes holds several things, or must be shared between people or projects. Open a draft expense and click Split. We opened a gift basket of $64 for Emma Clarke.

odoo Development

The window Expense split starts with two lines of $32 each. Each line has a Product, an Employee, Reinvoice to, a Tax, an Analytic and a Total. Change the amounts, change the product, add a line (Add a line) or remove one with the trash icon. The totals at the bottom must still add up to the amount of the expense: Total Amount $64.00 and Taxes $8.34. Click Split.

Odoo opens the list Split Expenses with the new expenses, here two drafts of $32.00. Each of them has a smart button Related that shows the others.

odoo Development

Duplicates

Odoo warns you when an expense looks like another one. A yellow message at the top of the form says: An expense with the same category, date, amount, and employee already exists. The word expense is a link to the other one. A second message says: An expense with the same receipt already exists. Odoo compares the content of the attached files, so the same picture on two expenses is found even with another file name. In the picture the receipt of the first lunch is attached to a new expense. The messages show only while the expense can still be edited, so you do not see them on a paid expense.

odoo Development

The second message looks like this:

odoo Development

The approver sees the warning too. When he or she clicks Approve, a window opens, Validate Duplicate Expenses. It lists the similar expenses and asks to check that they are not duplicates. The buttons are Refuse (refuses the listed expenses with the reason Duplicate Expense), Approve (approves them) and Discard.

odoo Development

We made a second train ticket for Noah Bennett, the same as the first one. We refused the copy by hand with the reason Duplicate of the first request. Then we approved the first one, the window came, and we clicked Approve.

The Limit of a Job Position

In the product Meals we added a limit: the job position Maintenance Technician, $30.00 (the table Limits of section 2). Sam Carter is a maintenance technician. We made a second lunch of $48.50 for him, submitted it, and opened it as the approver. Two yellow messages show at the top. The second one says: This expense exceeds the limit of $30.00 defined for this job position. Under it a link, Cap Reimbursement to Policy.

odoo Development

We clicked the link. Odoo split the expense in two: $30.00 is Approved and $18.50 is Refused.

odoo Development

The employee sees a softer message on his or her own expense. We signed in as Sam Carter and opened a draft lunch of $55.00. A yellow message at the top says: Your job position has a limit of $30.00 for this expense. You may not be fully reimbursed! It does not stop him from submitting. Notice also that Sam does not see the fields Company, Existing Bill and Account.

odoo Development
WhatsApp