Files
Odoo-Modules/fusion_accounting_assets
gsinghpal 51d8ce494d fix(scss): remove forbidden @import "variables" lines breaking V19 asset bundle
Phases 1-3's SCSS files used '@import "variables";' to pull in tokens
from _variables.scss. V19's odoo.addons.base.models.assetsbundle
forbids cross-file SCSS imports for security ('Local import forbidden')
and the asset bundle warning was firing on every web request.

Phase 4 caught + fixed this for fusion_accounting_followup; Phases 1-3
were never updated. Today's deployment surfaced the CSS error reported
by the user.

Resolution:
- Removed @import lines from 7 SCSS files across bank_rec, reports, assets
- Variables come from _variables.scss via manifest concatenation order
  (bundle order is _variables.scss first, then dependent files)
- Replaced documentation comments to NOT contain the literal string
  '@import "variables"' \u2014 Odoo's check is regex-based and was
  matching even SCSS comments

Verified clean: bundle rebuilds with zero 'Local import forbidden'
warnings; all 534 fusion-module tests still pass.

Made-with: Cursor
2026-04-19 21:57:22 -04:00
..

fusion_accounting_assets

AI-augmented fixed asset management for Odoo 19 Community — a Fusion-native replacement for Enterprise's account_asset module.

What it does

  • Three depreciation methods: straight-line, declining balance, and units-of-production
  • Asset lifecycle state machine: draft → running → paused → disposed
  • Editable depreciation board with full schedule recompute
  • Disposal flow (sale, scrap, donation) plus partial-sale wizard
  • Daily cron for posting periodic depreciation
  • AI augmentation:
    • Anomaly detection — variance vs expected schedule, low utilization
    • Useful-life suggestion — LLM-driven from invoice context, with a keyword-based templated fallback so the feature still works offline
  • Coexists with Enterprise account_asset (Enterprise wins by default; the Fusion menu only appears when Enterprise is uninstalled)
  • Migration-aware: bootstrap step backfills fusion.asset from existing account.asset rows so the AI has memory from day 1

Quick start

# Install
odoo --addons-path=... -i fusion_accounting_assets

# Open the dashboard (when Enterprise's account_asset is NOT installed)
# Apps -> Asset Management -> Assets

# When Enterprise IS installed: use Enterprise's UI; the engine + AI tools
# are still available via the AI chat.

Configuration

  • Local LLM (LM Studio, Ollama):
    • fusion_accounting.openai_base_url = http://host.docker.internal:1234/v1
    • fusion_accounting.openai_model = your local model name
    • fusion_accounting.openai_api_key = lm-studio (anything non-empty)
    • fusion_accounting.provider.asset_useful_life = openai

Public API (engine)

fusion.asset.engine is the single write surface. See CLAUDE.md for the full 7-method signature list.

See also

  • CLAUDE.md — agent context
  • UPGRADE_NOTES.md — Odoo version anchoring