| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Website (website) • Invoicing (account) • Discuss (mail) |
| Lines of code | 592 |
| Technical Name |
website_sale_module_dependency |
| License | OPL-1 |
| Website | https://www.ganemo.co |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Website (website) • Invoicing (account) • Discuss (mail) |
| Lines of code | 592 |
| Technical Name |
website_sale_module_dependency |
| License | OPL-1 |
| Website | https://www.ganemo.co |
Module Dependency
Auto-Add Dependencies to Your eCommerce Cart
Replicate the Odoo App Store experience. When a customer adds a module to their cart, all required dependencies are automatically included as separate, removable lines. Show total prices with dependencies on your catalog and product pages.
What We're Solving
----------------
Recursive Dependency Resolution
If Module A depends on B, and B depends on C, adding A to the cart automatically adds both B and C. The system resolves the entire dependency tree, no matter how deep, with built-in cycle protection to prevent infinite loops.
Smart Cart Management
Dependencies are added as independent cart lines, each with its own price. Customers can freely remove dependencies they already own. If a dependency is already in the cart, no duplicates are created.
Total Price on Catalog
On the /shop catalog page, modules with dependencies display a "Total with dependencies" price below the regular price. Customers see the full investment upfront before clicking.
Dependency Breakdown on Product Page
Each module's product page shows a clear breakdown: every dependency with its individual price, followed by a highlighted total price (module + all dependencies). Full transparency for buyers.
Unpublished Dependency Protection
Dependencies not yet published on the website are displayed with a lock icon and a "Not available" label, but their price is still visible and counted in the total. Customers see the full investment upfront. Unpublished deps are never auto-added to the cart.
Auto-Cleanup on Removal
When a module is removed from the cart, its orphan dependencies are automatically removed too — unless another module in the cart still requires them. Shared dependencies are intelligently preserved, keeping the cart accurate at all times.
Backend: Add Dependencies Button
Salespeople creating quotations manually can one-click "🧩 Add Dependencies" to auto-fill all missing module dependencies. Variant-aware, recursive, and with a notification summary of what was added — including warnings for unpublished items.
"Required by" Traceability
Each dependency line on a quotation shows a "Required by (Module)" column, making it clear which parent module demands each dependency. Salespeople instantly understand the composition of complex orders.
Setup & User Manual
Step-by-Step implementation
1. Configuration Guide
Set up your module products in 3 simple steps:
- Go to Sales > Products > Products.
- Select a product and check "Is Odoo Module".
- Go to the Module Dependencies tab.
- Add dependency products using the tags widget. Only products marked as "Is Odoo Module" appear.
2. How It Works (Customer View)
Here's what your customers experience:
Catalog View (/shop)
Modules with dependencies display a subtle "Total with dependencies: $X.XX" label below the regular price. Customers see the full cost at a glance.
Product Page
A detailed dependency block lists every required module with its individual price, followed by the highlighted total. Full transparency before clicking "Add to cart".
Auto-Add to Cart
Clicking "Add to cart" adds the module AND all its dependencies as separate lines. Each line has its own price and can be removed independently.
Zero Impact on Normal Products
Products not marked as "Is Odoo Module" are completely unaffected. The module is transparent to your regular eCommerce store.
Unpublished Deps: Visible but Safe
Unpublished dependencies show a 🔒 lock icon and "Not available" label with their price still displayed. They are not auto-added to the customer's cart.
Smart Removal
When a customer removes a module from the cart, its orphan dependencies are automatically cleaned up. Shared dependencies needed by other modules stay in the cart.
3. Backend: Add Dependencies to Quotations
Salespeople can add all missing module dependencies with one click:
One-Click Button
Open any quotation (draft or sent), add your module products, then click "🧩 Add Dependencies" below the order lines. All missing recursive dependencies are added instantly.
Smart Notifications
After clicking, a toast notification shows exactly which dependencies were added. If any are unpublished on the website, a ⚠ warning is included. If everything is already satisfied, you get a ✓ confirmation.
Variant-Aware
If your module has version variants (e.g., 17.0, 18.0), the button matches the correct dependency variant automatically based on the parent module's attributes.
Full Control
Unlike the frontend, the backend button adds all dependencies — including unpublished ones. The salesperson has full visibility and control over the quotation.
"Required by" Column
After adding dependencies, each line shows a "Required by" label identifying which parent module demands it. This gives salespeople clear traceability on complex orders.
Safe on Locked Orders
The "Add Dependencies" button is automatically disabled on confirmed/locked and cancelled orders, preventing accidental modifications to finalized quotations.
Global Ready | Multi-Language Support
This module is fully translated into English and Spanish (en_US, es_ES, es_PE, es_MX), ensuring a professional experience for international organizations.
Why Choose Ganemo?
----------------
Ganemo is the world's leading Odoo App developer and a multi-award-winning Gold Partner. For over 5 years, we have been recognized as the #1 seller of high-quality apps on the Odoo App Store. Trusted as the "Best Partner" in USA, Mexico, Chile, Spain, Colombia, Ecuador, and Peru, we deliver robust, secure, and localization-compliant solutions for global businesses.
Get a Quote & Resolve Commercial Doubts
Join thousands of satisfied clients on Odoo. Contact our sales team directly.
Official WhatsApp
Fastest response time.
LINK
+1 (828) 672-6150
Book a Demo
Let's explore your needs.
LINK
Schedule Meeting
Need More? We Do It All
Professional Odoo Services
ERP Implementation
Transform your business with a full Odoo implementation. We analyze, configure, and train your team to maximize productivity. From Accounting to Inventory, we handle the complexity so you can focus on growth.
Module Dev & Migration
Need a custom feature? Or stuck on an older version? We develop high-performance custom modules and migrate your existing code to Odoo 18 with zero data loss. Expert developers at your service.
QA / User Testing Scenarios
Enterprise Validation Plan
Scenario 1: Setup Dependencies
- Create 3 service products: "Module A" ($100), "Module B" ($50), "Module C" ($25).
- Check "Is Odoo Module" on all three.
- Set Module A's dependencies to B. Set Module B's dependencies to C.
- Verify: Module A's "Total Price with Dependencies" shows $175 (100+50+25).
- Verify: Module A's "Dependency Count" shows 2.
Scenario 2: Cart Auto-Add
- Publish Module A, B, and C on the website.
- Navigate to /shop and find Module A.
- Click "Add to Cart".
- Verify: Cart contains 3 lines: Module A, Module B, Module C.
- Verify: Each line has its own individual price.
Scenario 3: No Duplicate Dependencies
- First, add Module B to the cart (should add B + C = 2 lines).
- Then, add Module A to the cart.
- Verify: Cart has exactly 3 lines (A + B + C), NOT 5.
- Verify: B and C were not duplicated.
Scenario 4: Regular Products Unaffected
- Create a regular product "Laptop" ($999), leave "Is Odoo Module" unchecked.
- Add "Laptop" to the cart.
- Verify: Cart has exactly 1 line with the Laptop.
- Verify: No dependency logic was triggered.
Scenario 5: Unpublished Dependency Display
- Create Module D ($60) and mark as "Is Odoo Module". Do NOT publish it on the website.
- Set Module A's dependencies to include Module D.
- Navigate to Module A's product page on /shop.
- Verify: Module D appears in the dependency list with a 🔒 lock icon and "Not available" label.
- Verify: Module D's price is still visible and included in the total.
- Add Module A to cart.
- Verify: Module D is NOT added to the cart (only published dependencies are auto-added).
Scenario 6: Backend Add Dependencies Button
- Go to Sales > Orders > Quotations and create a new quotation.
- Add Module A as an order line.
- Click the "🧩 Add Dependencies" button below the order lines.
- Verify: Module B and Module C are added as new order lines.
- Verify: A notification toast lists the added dependencies.
- Click the button again.
- Verify: The notification says "All dependencies are already satisfied. ✓".
Scenario 7: Orphan Dependency Auto-Cleanup
- Add Module A to the cart (should add A + B + C = 3 lines).
- Remove Module A from the cart.
- Verify: Module B and Module C are also removed automatically.
- Now add Module A AND Module D (where D also depends on C).
- Remove Module A from the cart.
- Verify: Module C stays in the cart (still needed by Module D), but Module B is removed.
Scenario 8: "Required by" Traceability on Quotations
- Create a quotation and add Module A as an order line.
- Click "🧩 Add Dependencies".
- Verify: Module B's order line shows "Required by: Module A" in the "Required by" column.
- Verify: Module C's order line shows "Required by: Module B" (or Module A, since A depends on C transitively).
FAQ & Troubleshooting
Common Resolutions
Dependencies not appearing in the cart?
Reason: The product might not be marked as "Is Odoo Module" or has no dependencies set.
Fix: Check the product form. Enable "Is Odoo Module" and add dependencies in the "Module Dependencies" tab.
Total price not showing on /shop?
Reason: The product must have at least one dependency for the total price to display.
Fix: Ensure dependency_ids is populated and the dependency products also have "Is Odoo Module" checked.
Can I create circular dependencies?
Answer: Technically yes, but the system handles it safely.
Detail: The dependency resolution algorithm uses cycle detection. It will resolve A→B→C even if C→A creates a cycle, without infinite loops.
Does this affect non-module products?
Answer: No!
Detail: All logic is gated behind the "Is Odoo Module" boolean. Normal products flow through the standard cart logic without any modification.
What happens with unpublished dependencies?
Answer: They are shown in the dependency list with a 🔒 lock icon and "Not available" label.
Detail: Their price is still visible and counted in the total, so the customer sees the full investment. However, they are NOT auto-added to the cart. In the backend, salespeople CAN add them via the "Add Dependencies" button.
Can I add dependencies from the backend?
Answer: Yes! Use the "🧩 Add Dependencies" button on any draft/sent quotation.
Detail: The button scans all module lines, resolves recursive dependencies, matches the correct variant, and adds missing ones as new order lines. It shows a summary notification of what was added.
What happens when I remove a module from the cart?
Answer: Its orphan dependencies are automatically removed too.
Detail: If another module in the cart still needs a shared dependency, it is preserved. Only truly orphan lines (not needed by any remaining module) are cleaned up.
What does the "Required by" column show?
Answer: It shows which parent module requires each dependency line on a quotation.
Detail: This computed field scans other order lines to find the first module that lists this product as a dependency. It helps salespeople understand why each line was added.
Commercial & Sales
For inquiries about licenses, demos, or partnerships.
Official WhatsApp
Fastest response time.
LINK
+1 (828) 672-6150
Book a Demo
Let's explore your needs.
LINK
Technical Support
Existing customers regarding module functionality.
© 2026 Ganemo. All rights reserved. visit ganemo.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