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
    • Artificial Intelligence
    • 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
    • Affiliate Program
    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. ylhc_dynamic_dependency v 19.0
  4. Sales Conditions FAQ

ylhc_dynamic_dependency

by YLHC Technology https://www.ylhctec.com , co. https://www.ylhctec.com , ltd. https://www.ylhctec.com
Odoo

$ 21.91

v 19.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
You bought this module and need support? Click here!
  • Description
  • Manifest
YLHC Dynamic Dependency — dependencies that resolve themselves

YLHC Dynamic Dependency is a lightweight, headless engine that keeps Odoo 19 from crashing at startup when a module inherits a model — or references one through a relational field — without declaring that module in its manifest. Undeclared dependencies are discovered while modules load, recorded, and injected into the module graph so the provider is always loaded first. No XML, no manifest editing, no restart dance: install it once and forget about it.

Why YLHC Dynamic Dependency?

No More Crashes

Say goodbye to TypeError: Model ... inherits from non-existing model ... on first boot.

Auto Discovery

Every undeclared _inherit / _inherits and every relational-field reference is detected at load time.

Guaranteed Order

Recorded edges are injected into the module graph, so the provider module always loads before its inheritors.

Clear Errors

When a provider is genuinely missing you get an explicit message, not a cryptic registry failure.

How It Works

  1. Detect — while each module loads, the engine resolves both inheritance providers and the modules behind relational fields (many2one / one2many / many2many comodels).
  2. Record — any dependency that was not declared in the manifest is persisted, so it is never lost between restarts.
  3. Load on the spot — if the provider is scheduled in the current pass but has not loaded yet, its models are loaded just in time, so even the very first startup succeeds.
  4. Inject — on every later restart the recorded edges are added to the module graph, guaranteeing the provider loads first; models carrying manual (state='manual') relational fields are sorted after their comodel providers too.

Key Features

  • ✓ Inheritance aware — auto-detects undeclared _inherit and _inherits targets.
  • ✓ Relation-field aware — follows comodel references to the module that provides them.
  • ✓ Just-in-time model loading — first-run startups complete without a second pass.
  • ✓ Restart-safe ordering — discovered dependencies persist and replay on every boot.
  • ✓ Manual-field handling — keeps runtime-generated relational fields loadable.
  • ✓ Explicit diagnostics — a missing provider is reported in plain terms.
  • ✓ Zero configuration — depends only on base, installs right after it, and needs nothing else.

Under the Hood

Dynamic modules kept loadable by the dependency engine

The engines this keeps running — visual builders and runtime-generated models create views and fields across module boundaries; this module quietly guarantees they all load in the right order, every restart.

Good to Know

  • Free and lightweight — released under LGPL-3, it is a headless helper with no end-user screens.
  • Install once — it registers immediately after base so its hooks are active before other modules load.
  • Auditable — administrators can review every recorded dependency under Settings → Technical → Dynamic Dependencies.
  • Make it permanent — to bake a discovered dependency in for good, add the provider to that module's manifest depends.
  • Designed to pair with ylhc_dynamic_fields, which creates relational fields at runtime that must load after their comodel providers.

Nothing to maintain. Declare what you want, inherit what you need — the load order takes care of itself.

Recommended YLHC Modules

ylhc_dynamic_fields

Generate real Odoo fields and views automatically from your data — the runtime companion this engine keeps loadable.

ylhc_studio

A visual design center for building models, views and fields without writing XML.

ylhc_list

Turn any list view into a configurable, spreadsheet-like workspace.

ylhc_report

Design print and PDF reports visually with drag-and-drop data binding.

Support

Contact us at www.ylhctec.com.

© YLHC Technology, co., ltd.

Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 367
Technical Name ylhc_dynamic_dependency
LicenseLGPL-3
Websitehttps://www.ylhctec.com

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