OdooWiki OCA HUB

Test Base Time Window

test_base_time_window folder_open OCA/server-tools open_in_new
Technical Settings License: AGPL-3

This module provides unittests for module base_time_window.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds a test model for time windows linked to contacts, so delivery time windows can be stored per contact and retrieved by weekday. It is a technical test module, not a business feature.

This is a technical test module built on top of the base time window functionality. It does not add a normal user-facing feature; it exists to verify that time windows work correctly when attached to contacts.

What it adds: - A new record type, test.partner.time.window, used to store a time window for a contact. Each record must be linked to a contact (res.partner). - A new field on contacts called Time windows (time_window_ids), which lists all the time windows attached to that contact. - A rule that prevents two time windows of the same contact from overlapping. The check runs automatically when the contact on a window is set or changed. - A helper method on contacts, get_delivery_windows, which, for a given weekday name, returns the delivery windows of the selected contacts grouped by contact.

Where it appears: - The time windows are visible on the contact form through the Time windows field. - Access rights are set so that all internal users can read these records, while contact managers can also create, edit and delete them.

Because it is a test module, it is mainly useful for developers and implementers checking that the underlying time window behaviour is correct. It does not add menus, reports, emails or scheduled actions.

Models and fields (2)
  • res.partner · extends an existing modeltime_window_ids (Time windows)
  • test.partner.time.window · new modelpartner_id

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/server-tools.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.