Losing $24K Annually? Configure Odoo 18 Field Cleaning Rules
By Braincuber Team
Published on December 22, 2025
Import customer list from old CRM. 2,847 contacts. Phone numbers: Some have spaces, some have dashes, some have parentheses, some have country codes, some don't. Example: "(555) 123-4567" vs "555.123.4567" vs "+1 5551234567" vs "5551234567". Marketing team can't run SMS campaign because phone format inconsistent.
Your database is a mess: Company names with extra spaces ("ABC Corp "), emails in mixed case ("John.DOE@Company.COM"), phone numbers in 14 different formats, HTML code pasted into text fields, product descriptions typed in ALL CAPS. Sales rep copies data, pastes incorrectly formatted info, it spreads.
Cost: Marketing campaign fails because 847 phone numbers rejected by SMS provider (wrong format) = $4,200 wasted on campaign. Support team can't find customer records (searching "ABC Corp" doesn't match "ABC Corp " with extra spaces) = 3.7 hours weekly wasted = $8,424/year. Data export to accounting software fails because of inconsistent formatting = manual cleanup 11 hours monthly = $11,220/year.
Odoo 18 Field Cleaning Rules fix this automatically: Standardize phone formats, trim extra spaces, fix text casing (all lowercase → Title Case), remove HTML tags. Set rules once, apply to thousands of records. Here's how to configure field cleaning so you stop losing $23,844/year to bad data formatting.
You're Losing Money If:
What Field Cleaning Rules Do
Automatically standardize data formats across your database. Set rules for specific fields, apply to all records. Four main actions:
Available Cleaning Actions:
- 1. Trim Spaces: Remove extra spaces ("ABC Corp " → "ABC Corp")
- 2. Format Phone: Standardize to international format ("+1 555-123-4567")
- 3. Set Type Case: Fix capitalization (all caps → Title Case)
- 4. Scrap HTML: Remove HTML tags, keep plain text only
Step 1: Access Field Cleaning Rules
- Open Data Cleaning app
- Go to Configuration → Field Cleaning
- See list of existing rules (if any)
Step 2: Create Field Cleaning Rule
Basic Setup
- Click New
- Enter rule name: "Contact Data Standardization"
- Select Model: Choose which data you're cleaning
- Contacts (res.partner)
- Companies (res.company)
- Products (product.product)
- Sales Orders (sale.order)
- CRM Leads (crm.lead)
- Choose Cleaning Mode:
- Automatic: Rules apply immediately to all records
- Manual: Review suggestions before applying
Recommendation: Start with Manual mode. Review suggestions on test data. Once confident rules work correctly, switch to Automatic.
Configure Notifications (Manual Mode Only)
If using Manual mode, specify who gets notified about cleaning tasks:
- Field appears: Notify Users
- Select users to notify
- Choose frequency: Daily, Weekly, Monthly
Step 3: Add Cleaning Rules
Now define specific rules for each field you want to clean.
Rule 1: Trim Extra Spaces from Company Names
- Under Rules section, click Add a line
- Field to Clean: Company Name
- Action: Trim Spaces
- Trim: Select option
- All Spaces: Removes ALL spaces (use for single-word fields)
- Superfluous Spaces: Keeps single spaces, removes extras (recommended)
- Click Save & New
Example: Superfluous Spaces
Before: "ABC Corp Inc "
After: "ABC Corp Inc"
Before: "Tech Solutions LLC"
After: "Tech Solutions LLC"
Rule 2: Standardize Phone Numbers
- Click Add a line
- Field to Clean: Mobile (or Phone)
- Action: Format Phone
- System auto-formats based on:
- Country code from contact's address
- International phone format standard
- Click Save & New
Example: Phone Formatting
Before: "(555) 123-4567"
Before: "555.123.4567"
Before: "5551234567"
Before: "+1 555 123 4567"
After: "+1 555-123-4567" (all standardized)
Rule 3: Fix Text Casing
- Click Add a line
- Field to Clean: Name (or any text field)
- Action: Set Type Case
- Case: Choose option
- All Lowercase: "john doe"
- First Letters Uppercase: "John Doe" (Title Case)
- All Uppercase: "JOHN DOE"
- Click Save & New
Example: Title Case for Names
Before: "JOHN SMITH"
Before: "jane doe"
Before: "MiXeD CaSe"
After: "John Smith" (all consistent)
Rule 4: Remove HTML Tags
- Click Add a line
- Field to Clean: Description (or any text field)
- Action: Scrap HTML
- Removes all HTML/XML tags, keeps plain text
- Click Save & Close
Example: HTML Removal
Before: "<p>Product description</p><br><strong>Features</strong>"
After: "Product description Features"
Step 4: Apply Rules to Records
Manual Mode: Review Suggestions
- From Field Cleaning Rule form, click Clean icon
- Or go to Data Cleaning → Field Cleaning tab
- See list of records needing cleaning
- Each row shows:
- Field name
- Record ID
- Current Value
- Suggested Value (after cleaning)
- Record Name
- Review suggestions
- Select records to clean
- Click Validate
Automatic Mode: No Action Needed
Rules apply automatically when records created or updated. No manual validation required.
Real-World Examples
Example 1: E-commerce Company Contact Cleanup
Problem:
- Imported 12,400 contacts from 3 old systems
- Phone numbers: 9 different formats
- Company names: Random casing, extra spaces
- Emails: Mixed case (affects email campaign matching)
Field Cleaning Rules Created:
- Phone field → Format Phone (standardize all to +1 format)
- Mobile field → Format Phone
- Company Name → Trim Spaces (superfluous)
- Company Name → Set Type Case (Title Case)
- Email → Set Type Case (All Lowercase)
- Name → Set Type Case (First Letters Uppercase)
Result:
12,400 records cleaned in 23 minutes. SMS campaign success rate: 94% (was 71%). Marketing saved $4,200 on failed sends.
Example 2: B2B SaaS Product Catalog Cleanup
Problem:
- Product descriptions copied from website (full of HTML tags)
- Product names in ALL CAPS (looks unprofessional)
- SKU fields have extra spaces (search fails)
Field Cleaning Rules Created:
- Product Name → Set Type Case (Title Case)
- Description → Scrap HTML
- SKU → Trim Spaces (All Spaces)
- Internal Reference → Trim Spaces (All Spaces)
Result:
847 products cleaned. Export to e-commerce platform no longer fails. Search accuracy improved 100%.
Example 3: Manufacturing Company Address Standardization
Problem:
- Shipping addresses: Inconsistent format
- City names: Mixed casing ("los angeles" vs "Los Angeles")
- ZIP codes: Extra spaces prevent validation
Field Cleaning Rules Created:
- Street field → Trim Spaces (superfluous)
- City → Set Type Case (Title Case)
- ZIP → Trim Spaces (All Spaces)
Result:
Shipping integration errors dropped from 47/week to 2/week. Saved 8.2 hours weekly on manual corrections.
Advanced Tips
1. Multiple Rules for Same Field
You can apply multiple cleaning actions to the same field:
Example: Company Name field
Rule 1: Trim Spaces (superfluous)
Rule 2: Set Type Case (Title Case)
Result:
" ABC corp INC "
→ "ABC corp INC" (spaces trimmed)
→ "Abc Corp Inc" (title case applied)
2. Test Before Going Automatic
- Create rule in Manual mode
- Apply to sample of 50-100 records
- Review suggested changes
- Verify accuracy (check edge cases)
- If 100% correct, switch to Automatic
- If issues found, adjust rules
3. Schedule Regular Cleaning
For Manual mode: Set notifications to Weekly or Monthly. Ensures team regularly reviews and validates cleaned data.
Common Mistakes
1. Using "All Spaces" on Multi-Word Fields
Applied "Trim Spaces: All Spaces" to company name. Result: "ABC Corp" became "ABCCorp".
Fix: Use "Superfluous Spaces" for fields with multiple words. Use "All Spaces" only for single-value fields like SKUs.
2. Going Automatic Without Testing
Set rule to Automatic immediately. Applied bad formatting to 2,400 records before noticing.
Fix: Always test in Manual mode first on small sample. Verify results. Then switch to Automatic.
3. Wrong Case Setting for Names
Applied "All Uppercase" to customer names. Now all contacts show as "JOHN SMITH" (looks like yelling).
Fix: Use "First Letters Uppercase" (Title Case) for names. Professional appearance.
4. Not Cleaning Existing Data
Created rules, but they only apply to new records. 12,000 existing messy records remain untouched.
Fix: After creating rule, click "Clean" button to apply to existing records. Or use Manual mode, validate all.
Real-World Impact Example
Scenario: Marketing Agency (18K Contact Database)
Before Field Cleaning Rules:
- Phone numbers: 14 different formats across database
- SMS campaign: 847 numbers rejected (wrong format) = $4,200 wasted
- Company names with extra spaces prevent search matches
- Support team wastes 3.7 hours weekly searching = $8,424/year
- Accounting export fails monthly due to formatting issues
- Manual cleanup: 11 hours monthly = $11,220/year
- Email addresses in mixed case cause duplicate detection failures
- Total cost: $23,844/year (campaigns + support time + manual cleanup)
After Implementing Field Cleaning Rules:
- Created 8 field cleaning rules (phone, email, name, company)
- All phones standardized to +1 format
- All emails lowercase (duplicate detection works)
- Company names: Spaces trimmed, Title Case applied
- Automatic mode: New records cleaned on creation
- Cleaned 18,000 existing records in 47 minutes
- SMS campaign success: 94% delivery (was 71%)
- Marketing waste: $0 (was $4,200/campaign)
- Support search time: 0.8 hours weekly (was 3.7 hours)
- Annual support savings: $6,534
- Manual cleanup eliminated: $11,220 saved
- Accounting exports: 100% success rate
- Total saved: $21,954/year + zero failed campaigns
Impact: $21,954 saved annually + better data quality + happier customers
Quick Implementation Checklist
- Audit your data: Identify fields with inconsistent formatting
- Prioritize impact: Clean fields that cause most problems (phone, email, names)
- Create cleaning rules: Start with Manual mode
- Test on sample: 50-100 records, review suggested changes
- Validate accuracy: Check edge cases, verify formatting correct
- Apply to existing records: Click "Clean" to fix current database
- Switch to Automatic: Once confident rules work correctly
- Set notifications: If staying Manual, weekly reminders to validate
- Monitor results: Check field quality monthly, adjust rules if needed
- Expand gradually: Add more rules as you find formatting issues
Pro Tip: Don't try to clean everything on day one. Start with the 3 fields causing the most pain (usually phone, email, company name). Get those working perfectly. Then expand to other fields.
Losing $24K Annually to Messy Data Formatting?
We configure Odoo Field Cleaning Rules to standardize phones, trim spaces, fix casing, remove HTML. Stop wasting money on failed campaigns and manual data cleanup.
