Skip to content

Guide to Uninstall cnf_cart_customizations Module

Purpose

This guide outlines the steps to uninstall the cnf_cart_customizations module from your Odoo environment. The module introduces minor visual changes to the shopping cart and has no impact on core e-commerce operations.


Module Overview

Description

The cnf_cart_customizations module includes:

  • A note below the promo code field: "Only one promo code can apply to a single order"
  • A custom placeholder in the promo code field: "Please enter code in ALL CAPS..."

Dependencies

The module depends on:

  • base
  • theme_clarico_vega
  • website
  • payment
  • website_sale
  • product

Reverse Dependencies

No other modules depend on cnf_cart_customizations.

⚠️ Note: If theme_clarico_vega has already been uninstalled, you'll need to update this module's manifest to remove that dependency before proceeding.


Uninstallation Steps

Option A: If theme_clarico_vega is Still Installed

  1. Backup the database (Optional)
docker exec -it cnf-postgres pg_dump -U odoo communitynaturalfoods-master-963663 > backup_before_cnf_cart.sql
  1. Uninstall from Odoo interface

  2. Go to Apps > Installed Modules

  3. Search for cnf_cart_customizations
  4. Click Uninstall and confirm

Option B: If theme_clarico_vega is Already Uninstalled

  1. Backup the database
docker exec -it cnf-postgres pg_dump -U odoo communitynaturalfoods-master-963663 > backup_before_cnf_cart.sql
  1. Edit the manifest to remove the dependency In custom_addons/cnf_cart_customizations/__manifest__.py, comment out:
'depends': [
    'base',
-    # 'theme_clarico_vega',
    'website',
    'payment',
    'website_sale',
    'product'
],
  1. Restart Odoo
make restart
# or for native environment:
make stop
make start-native
  1. Upgrade the module

  2. Go to Apps > Installed Modules

  3. Search for cnf_cart_customizations
  4. Click the three dots > Upgrade

  5. Uninstall the module

  6. After upgrading, click Uninstall


Post-Uninstallation Checks

  1. Verify Cart Behavior

  2. Visit the website and add items to the cart

  3. Ensure the custom promo code note is gone
  4. Ensure the promo code placeholder is back to default

  5. Check Installed Modules

  6. In Apps, search for cnf_cart_customizations

  7. It should show as Not Installed or not appear

  8. Check Logs

# Docker:
docker logs dev-odoo --tail 50
# Native:
# Check terminal output

Rollback Instructions (If Needed)

make stop

docker exec -i cnf-postgres psql -U odoo -c "DROP DATABASE \"communitynaturalfoods-master-963663\";"
docker exec -i cnf-postgres psql -U odoo -c "CREATE DATABASE \"communitynaturalfoods-master-963663\";"
docker exec -i cnf-postgres psql -U odoo communitynaturalfoods-master-963663 < backup_before_cnf_cart.sql

make start

Final Result

  • ✅ cnf_cart_customizations successfully uninstalled
  • ✅ Cart UI reverted to default appearance
  • ✅ No dependent modules were affected
  • ✅ Core cart and e-commerce functionality remains intact

Additional Notes

  • The module only makes minor changes to the user interface
  • It does not impact backend or transactional logic
  • Safe to uninstall in most environments