feat: add Cost and Margin % columns with inline editing

Cost column shows Odoo standard_price (editable). Margin % is calculated
from cost and sale price. Editing margin auto-calculates the sale price
using: price = cost / (1 - margin/100). All cells are inline-editable.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-04-01 11:38:37 -04:00
parent c5b519f8f4
commit b3fb2ef40c
4 changed files with 81 additions and 0 deletions

View File

@@ -626,6 +626,11 @@ html[style*="color-scheme: dark"] {
.woo-editable-cell:hover {
background: var(--woo-bg-hover) !important;
}
.woo-margin-cell {
font-weight: 600;
color: var(--woo-success);
}
.woo-edit-input {
width: 90px;
padding: 2px 6px;