Testing Your Rules

Updated 8 October 2026

Safely test validation rules against real records before they affect your team – nothing is saved.

Overview

The Test Rules wizard lets you run validation rules against any existing record in your database without actually saving anything. It is a “dry run” – you see which rules would pass, fail, or be skipped, but no changes are made and no logs are created.

Always test new rules before activating them for your whole team.

How It Works

You pick a model, select a real record, and choose which rules or profiles to test. Odoo runs each rule against that record and shows the result:

Step-by-Step Guide

Testing From a Profile

You can also test directly from a Validation Profile form by clicking the Test Profile button. This opens the test wizard pre-filled with the profile’s model and rules.

Test Wizard Fields

Field Explanations

Record

Pick a real record that represents a typical case. Test with both good data (should pass) and bad data (should fail) by choosing different records.

Skipped

A rule is skipped when its “Apply When” filter, user group, company, or trigger does not match the test context. This is normal – not all rules apply to every record.

Result – Message

Shows the exact error message users would see. Use this to verify your messages are clear and helpful before going live.

Tips

Common Mistakes