| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Expenses (hr_expense)
• Employees (hr) • Invoicing (account) • Discuss (mail) |
| Lines of code | 53 |
| Technical Name |
obs_hr_expense_limit |
| License | OPL-1 |
| Website | https://www.aryasolutions.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Expenses (hr_expense)
• Employees (hr) • Invoicing (account) • Discuss (mail) |
| Lines of code | 53 |
| Technical Name |
obs_hr_expense_limit |
| License | OPL-1 |
| Website | https://www.aryasolutions.com |
HR Expense Limit Verification
Enforce Corporate Expense Policies Automatically
Creates a hard rule: Any employee expense over $500 MUST contain an attached receipt file. If not, the submission is blocked.
Key Features
Seamless Validation
Runs a background check exactly when the user clicks 'Submit to Manager'.
Attachment Awareness
Detects if a PDF or image has been attached anywhere in the chatter thread.
Clear User Feedback
Stops the action and throws a highly visible error dialog, training employees to follow policy.
Real Screenshots of Working
Employees often "forget" to upload receipts for large purchases. With this module, when an employee clicks 'Submit to Manager' on any expense report exceeding $500 without a linked attachment, Odoo instantly blocks the action and displays a clear 'Invalid Operation' warning to the user.
A hard stop is generated, forcing the employee to attach a receipt before proceeding.
Enforce Accountability Automatically
Policy Compliance
Ensure your company's expense policies are followed to the letter without manual supervision.
Reduced Fraud Risk
By requiring physical proof for high-value items, you significantly lower the risk of inaccurate reporting.
Validation Logic
| Expense Amount | Attachment Status | Action Taken |
|---|---|---|
| Below $500 | Any | Allow Submission |
| $500 or More | Empty | BLOCK & ALERT |
| $500 or More | File Attached | Allow Submission |
Frequently Asked Questions
Can I change the $500 threshold?
The module is set to $500 as a standard baseline. This can be customized by our team or via a simple modification to the verification routine in the Python code.
Does it check the content of the PDF?
The module verifies that a file is present in the record's attachments. It does not perform OCR on the receipt content itself.
Does this block the Manager from approving?
No. The lock applies specifically to the initial 'Submit to Manager' step to ensure the data is complete before it reaches the approval phase.
Technical Specifications
17.0, 16.0 (Enterprise & CE)
Python-level @api.constrains
Multilingual Error Messages
Essential for HR Teams
Stop chasing down missing receipts at the end of every month.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module