Add custom Odoo theme CSS variables and a PowerShell script for Odoo export.

This commit is contained in:
Alaguraj0361 2026-01-07 16:53:20 +05:30
parent 4057fecf31
commit 57d6ee8784
2 changed files with 33 additions and 0 deletions

View File

@ -565,4 +565,17 @@ a:hover,
.dropdown-item:active {
background: var(--gradient-primary) !important;
color: #fff !important;
}
.o_main_navbar .o_menu_sections .o_nav_entry,
.o_main_navbar .o_menu_sections .dropdown-toggle {
background: var(--NavBar-entry-backgroundColor, var(--primary-color));
border: 1px solid transparent;
}
.list-group-item.active {
z-index: 2;
color: #fff;
background-color: #259a8f;
border-color: #259a8f;
}

20
export_odoo.ps1 Normal file
View File

@ -0,0 +1,20 @@
# Odoo Export Script for Windows (PowerShell)
# This script exports the addons folder and the PostgreSQL database from Docker.
$timestamp = Get-Date -Format "yyyyMMdd_HHmmss"
$exportDir = "export_$timestamp"
New-Item -ItemType Directory -Path $exportDir
Write-Host "--- Exporting Addons ---" -ForegroundColor Cyan
Compress-Archive -Path "addons\*" -DestinationPath "$exportDir\addons.zip"
Write-Host "--- Exporting Database ---" -ForegroundColor Cyan
# Replace 'postgres' with your actual database name if different
docker exec -t odoo_client1_db pg_dump -U odoo -d postgres > "$exportDir\database.sql"
Write-Host "--- Export Complete! ---" -ForegroundColor Green
Write-Host "Project exported to directory: $exportDir"
.\export_odoo.ps1