Sync Trial and Decommissioning Markers to Odoo in Admin Command and Disambiguate organizations with shared names in selector #567

Merged
tobru merged 3 commits from odoo-sync-trial-decommission-markers into main 2026-06-22 13:43:09 +00:00
Owner
No description provided.
The connection-credentials card polls every 10s and swaps innerHTML,
re-rendering all secrets in their masked default state and discarding
the client-side reveal. Track revealed credentials by name and re-apply
the reveal state after each HTMX swap so secrets stay visible.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add a Phase 4 to the sync_odoo command that checks each organization's own
Odoo sale order for the trial window (trial_start_date/trial_end_date) and
decommission_date marker, reporting drift and re-pushing it under --apply.
This closes a gap where Phase 2 recreating a missing sale order, or any
out-of-band drift, would leave these markers unset.

Align the live sync and the reconciler on a single code path: extract the
expected payloads as Organization.odoo_trial_window and
odoo_decommission_marker properties, and let push_trial_window_to_odoo and
_set_odoo_decommission_date take an injectable client so the command routes
its writes through the same model methods with its own OdooClient.

Honors the never-clear rule (no expected window -> no write) and skips orgs
on a shared origin sale order.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Disambiguate organizations with shared names in selector
All checks were successful
Tests / test (push) Successful in 56s
34f021fc75
When two or more organizations a user can access share the same display
name, append the organization ID to the label in the organization
selector (e.g. "Acme Org (ID: 42)") so they can be told apart. Uniquely
named organizations are unaffected.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
tobru changed title from Sync Trial and Decommissioning Markers to Odoo in Admin Command to Sync Trial and Decommissioning Markers to Odoo in Admin Command and Disambiguate organizations with shared names in selector 2026-06-22 13:43:03 +00:00
tobru merged commit 818c8ab8d3 into main 2026-06-22 13:43:09 +00:00
tobru deleted branch odoo-sync-trial-decommission-markers 2026-06-22 13:43:09 +00:00
Sign in to join this conversation.
No description provided.