Releases: marcfargas/odoo-toolbox
@marcfargas/[email protected]
Patch Changes
-
d6ca4a8: Cache
startOdoo()database baselines as localpg_dumpsnapshots keyed by the requested Odoo version, modules, addon contents, database settings, and environment.The first start for a cache key still initializes Odoo and installs requested modules. Later starts restore the saved database snapshot into a fresh Postgres container and skip Odoo
--initplus module installation, which speeds up repeated integration test runs without requiring consumers to depend on project-specific seed images.The old seed database image path and CI seed image workflow were removed.
The
@marcfargas/odoo-clientdependency range remains compatible with both^0.5.1and^0.6.0.
@marcfargas/[email protected]
Patch Changes
-
8bbcfc3: Widen the
@marcfargas/odoo-clientdependency and peer-dependency ranges from^0.5.1to^0.5.1 || ^0.6.0so consumers can installodoo-testcontainersalongsideodoo-client0.6.x without a major version bump on this package.No code changes — purely a peer-dependency range update to track the additive
OAuthProxyClientrelease in@marcfargas/[email protected]. -
Updated dependencies [4f08bcb]
- @marcfargas/[email protected]
@marcfargas/[email protected]
Patch Changes
- Updated dependencies [4f08bcb]
- @marcfargas/[email protected]
- @marcfargas/[email protected]
@marcfargas/[email protected]
Patch Changes
- Updated dependencies [4f08bcb]
- @marcfargas/[email protected]
- @marcfargas/[email protected]
@marcfargas/[email protected]
Patch Changes
- Updated dependencies [4f08bcb]
- @marcfargas/[email protected]
@marcfargas/[email protected]
Minor Changes
-
4f08bcb: Add
OAuthProxyClient— a sibling client toOdooClientthat talks to an OAuth-fronted Odoo proxy (odoo-api-proxyv1.0) usingAuthorization: Bearer <token>per-request, never callscommon.login, and never sends session cookies.Surface (CRUD parity with
OdooClient):searchreadsearchReadcreatewriteunlinksearchCountcall
new OAuthProxyClient({ proxyBaseUrl, getAccessToken: () => Promise<string> });
The shared CRUD contract is captured by the new
OdooCrudClientinterface — bothOdooClientandOAuthProxyClientimplement it, so call sites can program against the abstraction and swap providers with only a constructor change.Also exports the new
BearerJsonRpcTransportfor advanced users who want to drive the proxy with a custom client. Service accessors (mail, modules, accounting, etc.) remain onOdooClientonly —OAuthProxyClientships with CRUD + rawcallin v1. ExistingOdooClientcallers are unaffected; this is a purely additive release.
@marcfargas/[email protected]
Patch Changes
- Updated dependencies [4f08bcb]
- @marcfargas/[email protected]
- @marcfargas/[email protected]
@marcfargas/[email protected]
Minor Changes
-
0b6a34b: Add a rich content pipeline and translated-field support to the plan/apply engine.
DSL marker functions —
md(),mdFile(),translated(),withCss(), andhtml()let you express content intent directly in resource definitions.Transform phase — a new pipeline stage converts markers to Odoo-ready values: Markdown is rendered to HTML via
marked, CSS is inlined withjuice, translated fields are extracted into per-language write operations, and sanitization heuristics emit warnings for fields that may strip markup.Translated fields —
plan()diffs each active language separately andapply()writes each language usingcontext: { lang }. Plan output shows per-language changes alongside sanitization warnings.Post-apply verification — after
apply()completes,plan()is re-run automatically to detect any drift between the declared state and what Odoo actually persisted.Instance language detection — the engine auto-detects active languages from the Odoo instance.
Many2many resolution —
lookup()references and inlineResourceRefvalues are now resolved inside many2many arrays.mdFile()frontmatter stripping — YAML frontmatter is stripped by default when rendering file-backed Markdown, preventing it from appearing in Odoo HTML output.
Patch Changes
- Updated dependencies [0b6a34b]
- @marcfargas/[email protected]
@marcfargas/[email protected]
Patch Changes
- Updated dependencies [0b6a34b]
- @marcfargas/[email protected]
@marcfargas/[email protected]
Minor Changes
- 0b6a34b: Add
getFieldAttributes()method to Introspector that callsfields_get()RPC and returns per-field sanitize/translate metadata. Extend theOdooFieldinterface withsanitizeandtranslateboolean attributes. Results are cached alongside existing field-cache entries.