Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Technical
  3. Smart Field Default Engine v 19.0
  4. Sales Conditions FAQ

Smart Field Default Engine

by Majorbird https://www.majorbird.com
Odoo

$ 15.00

In-App Purchases
v 19.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 308
Technical Name mjb_field_default_rule
LicenseOPL-1
Websitehttps://www.majorbird.com
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 308
Technical Name mjb_field_default_rule
LicenseOPL-1
Websitehttps://www.majorbird.com
  • Description
  • License

Smart Field Default Engine

A configurable, no-code rule engine that auto-sets default values on any field of any Odoo model at record creation — without writing a single line of Python.

$49 — One-time purchase   Odoo 19.0

by Majorbird — Odoo Silver Partner

⚠ The Problem

Setting a default value on a field in Odoo — such as a default responsible user, a default internal category, or a pre-filled boolean flag — normally requires a developer to write a default= lambda, an @api.onchange method, or override create(). For functional consultants and power users, this means raising a ticket, waiting for development, and paying for customization that breaks on every upgrade. There is no built-in way to define field defaults dynamically from the Odoo UI without code.

What the Engine Does

Feature Description
Target any model and field Pick any installed Odoo model and any compatible field — the engine wires the default injection automatically at record creation.
Fixed Value mode Set a literal string, integer, boolean, or Many2one ID as the default. No Python required — just type the value in the form.
Expression mode Write a Python expression evaluated at create-time (e.g. env.user.company_id.id) for dynamic defaults that depend on context or related records.
Domain filter Restrict which records receive the default using a standard Odoo domain — apply only to records matching specific conditions.
No-overwrite guard The engine only stamps the field if it is empty at create-time. Existing values set by the user are always respected.
Multiple rules per model Define as many default rules as needed for the same model — each rule targets a different field independently.
Enable / disable toggle Rules can be paused and reactivated without losing configuration. The underlying automated action is cleanly deactivated, not deleted.

Key Features

⚙

No-Code Configuration

Create and manage field default rules entirely from the Odoo Settings menu. No developer, no Python files, no upgrade risk.

⇆

Fixed or Dynamic Defaults

Choose between a fixed literal value or a Python expression evaluated live at create-time — full flexibility without code.

🔒

No-Overwrite Guard

The engine never stamps a field that already has a value. User-entered data is always preserved — safe to enable on existing databases.

🎯

Domain-Scoped Rules

Restrict each rule to a subset of records using a standard Odoo domain filter — apply different defaults to different record types on the same model.

🔌

Satellite-Ready

The engine is designed as a platform. Companion satellite modules can ship pre-configured rule packs for common use cases, installable in one click.

🔒

Role-Based Access

Two security groups: User (read-only) and Manager (full CRUD). Settings administrators receive Manager access automatically.

Getting Started

1

Go to Settings → Technical → Field Default Rules

After installation, the menu is available to users with the Field Default Rule Manager group.

2

Click New — select your model and target field

Choose any installed Odoo model from the dropdown, then pick the field that should receive the default value on record creation. Optionally add a domain filter to scope the rule.

3

Choose Fixed Value or Expression mode

Fixed Value: type a literal string, number, boolean, or Many2one ID to apply as the default.
Expression: write a Python expression evaluated at create-time, e.g. env.user.company_id.id or env.ref('base.main_company').id.

4

Toggle Enable — the rule is live

Flip the Enabled switch. From this point forward, every new record created on the target model will receive the configured default value — only if the field is empty at create-time.

ℹ Scope & Limitations

This module does NOT:

  • Backfill existing records — only new record creation is affected
  • Support Many2many or One2many fields as default targets
  • Provide an onchange or UI widget — defaults are applied silently at create
  • Override a field value the user has explicitly filled in
  • Replace Odoo's native default= attributes on built-in models
  • Execute on write or update — only on record creation

🆕 Version 19.0.1.0.1 — Feedback Welcome

This is the first stable release of the Smart Field Default Engine on Odoo 19. All core features are fully tested and functional. If you encounter any issue or have a feature request, we welcome your feedback via the Odoo Apps support system. Your input shapes the next version.

Majorbird

About Majorbird

Odoo Silver Partner — Manufacturing, Inventory & Accounting Automation

Offices in Vietnam, China, Mexico, and the Middle East.

www.majorbird.com
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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with