• 31 Macquarie St, Parramatta NSW 2150
  • contact@arsalanyasin.com.au
+61 420 928 664
Logo
  • About Me
  • My Services
    • Odoo Consultation
    • Odoo Implementation
    • Odoo Customization
    • Odoo Deployment
    • Odoo Support & Training
  • Pricing
  • Collaboration
  • Odoo Vanguard
    • Testimonials
    • Blogs
    • Tutorials
    • Savings Calculator
  • Contact Me
  • Book a Call
Logo

Extending Odoo 18 Reports: Adding Weekly Date Filters

Extending Odoo 18 Account Reports Implementing Weekly Date Filters
  • Arsalan YasinArsalan Yasin
  • January 15, 2026
  • Odoo Technical
  • No Comments

Introduction

Recently, I encountered an interesting challenge in Odoo 18 Enterprise. Our finance team needed weekly reporting granularity, but the account_reports module only supported monthly, quarterly, and yearly filters. This limitation prompted me to find a solution that would integrate seamlessly with the existing Odoo structure.

The Solution: Custom Module with Week Filters

Rather than modifying the core files of Odoo, which would risk breaking future updates, I opted to build a custom module. This module provided a way to extend the AccountReportFilters component and allow weekly date filters in the reports. Here’s how I approached it:

  • JavaScript patches: Used to extend the AccountReportFilters component and inject the week filter functionality.

  • Python inheritance: Leveraged to override the _init_options_date() method for calculating week boundaries, ensuring the system accurately represents the start and end of each week.

  • Conditional controls: Introduced a checkbox field to give users control over whether or not they want the week filter displayed in their reports.

Technical Highlights

JavaScript Patches

I utilized the patch() decorator from Owl to cleanly extend the AccountReportFilters component. This approach preserved the core functionality of the original component, while adding the necessary enhancements for weekly date ranges.

Implementing ISO Week Standard

I used the ISO week standard (Monday-Sunday) for calculating and displaying weekly periods. This ensures that the reports are consistent with international standards for week-based reporting.

Navigation Support

To make it easy to navigate through the weeks, I added previous/next week navigation buttons. This allows users to quickly jump to the previous or upcoming week in their reports.

Zero Modifications to Core Odoo Files

The entire solution was implemented within a custom module without modifying any core files of Odoo. This ensures that future updates to Odoo won’t conflict with the customizations, preserving an upgrade-friendly environment.

User Interface: How It Looks

In the Odoo interface, the weekly filter now appears as an option when generating reports. Here’s a look at how it works:

User Interface How It Looks

The user can select the week filter, and the report will show data for the selected week, based on the Monday-Sunday ISO week standard.

Key Takeaway: Flexible, Upgrade-Friendly Customization

When extending enterprise modules like Odoo, inheritance and patches offer a powerful and maintainable way to add custom functionality. The approach I took ensured the feature could be implemented without disrupting the existing system and without making modifications to core Odoo files.

Preventing Feature Bloat

By using a conditional checkbox, only reports that benefit from weekly analysis are given the option to display the week filter. This keeps the UI clean and user-friendly without introducing unnecessary features that could clutter the interface.

Conclusion: Ready for Production

The module is now production-ready and fully compatible with Odoo’s standard reporting architecture. The custom weekly reporting feature integrates seamlessly with Odoo’s existing functionality while providing the flexibility the finance team needed.

If you’re looking to extend your Odoo 18 reports with custom filters and need expert assistance, book a consultation to discuss your customization needs.

For more tips on customizing Odoo 18 and enhancing report functionality, check out my blog for practical solutions and expert advice on extending Odoo’s capabilities.

Post Tags :
  • Account Reports
  • Accounting Automation
  • Custom Module
  • Data Filters
  • ERP Customization
  • Financial Reporting
  • ISO Week Standard
  • JavaScript
  • Odoo 18
  • Odoo Customization
  • Odoo Development
  • Odoo Enterprise
  • Odoo Enterprise Solutions
  • Odoo Inheritance
  • Odoo Patches
  • Python
  • Reporting Enhancements
  • Software Development
  • Week-Based Reporting
  • Weekly Filters
Social Share :
cropped cropped LOGOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO 05 1

Search Posts

Recent Posts

  • Extending Odoo 18 Reports: Adding Weekly Date Filters January 15, 2026
  • Building Dynamic Sitemaps in Odoo 19 January 13, 2026
  • License-Free Real-World Maintenance Flow in Odoo 19 January 7, 2026
  • Data Cleanup in Odoo 19: Archiving, Deduplication & Hygiene December 30, 2025
  • Year-End ERP Review: Measuring Odoo 19 ROI & 2026 Plans December 24, 2025
  • Warehouse Optimization in Odoo 19 with Routes & Barcode December 22, 2025
  • HR Automation in Odoo 19: Payroll, Recruitment & Appraisals December 17, 2025
  • Odoo 19 Integrations: Payment, WhatsApp & SMS December 15, 2025
  • Odoo 19 User Onboarding: Templates & Walkthroughs December 11, 2025
  • Optimizing User Roles and Permissions in Odoo 19 December 8, 2025

Information

  • 31 Macquarie St, Parramatta NSW 2150
  • +61 420 928 664
  • Mon – Sat: 11 am – 10 pm,
    Sunday: CLOSED

Services

  • Odoo Consultation
  • Odoo Implementation
  • Odoo Customization
  • Odoo Deployment
  • Odoo Support & Training

Quick Links

  • About Me
  • Pricing
  • Collaboration
  • Tutorials
  • My Services
  • Blog
  • Contact

Find Us

Copyright © Arsalan Yasin 2025 | All Rights Reserved

Chat with us

Stay Updated With Our Latest Insights

Subscribe and get early access to our newest content, special offers, and must-know tech updates.


✔️ Thanks for subscribing!