Skip to content

Releases: marcfargas/odoo-toolbox

@marcfargas/[email protected]

05 May 15:46

Choose a tag to compare

Patch Changes

  • d6ca4a8: Cache startOdoo() database baselines as local pg_dump snapshots 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 --init plus 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-client dependency range remains compatible with both ^0.5.1 and ^0.6.0.

@marcfargas/[email protected]

03 May 08:35
02ab5bb

Choose a tag to compare

Patch Changes

  • 8bbcfc3: Widen the @marcfargas/odoo-client dependency and peer-dependency ranges from ^0.5.1 to ^0.5.1 || ^0.6.0 so consumers can install odoo-testcontainers alongside odoo-client 0.6.x without a major version bump on this package.

    No code changes — purely a peer-dependency range update to track the additive OAuthProxyClient release in @marcfargas/[email protected].

  • Updated dependencies [4f08bcb]

@marcfargas/[email protected]

03 May 08:35
02ab5bb

Choose a tag to compare

Patch Changes

@marcfargas/[email protected]

03 May 08:35
02ab5bb

Choose a tag to compare

Patch Changes

@marcfargas/[email protected]

03 May 08:35
02ab5bb

Choose a tag to compare

Patch Changes

@marcfargas/[email protected]

03 May 08:35
02ab5bb

Choose a tag to compare

Minor Changes

  • 4f08bcb: Add OAuthProxyClient — a sibling client to OdooClient that talks to an OAuth-fronted Odoo proxy (odoo-api-proxy v1.0) using Authorization: Bearer <token> per-request, never calls common.login, and never sends session cookies.

    Surface (CRUD parity with OdooClient):

    • search
    • read
    • searchRead
    • create
    • write
    • unlink
    • searchCount
    • call
    new OAuthProxyClient({ proxyBaseUrl, getAccessToken: () => Promise<string> });

    The shared CRUD contract is captured by the new OdooCrudClient interface — both OdooClient and OAuthProxyClient implement it, so call sites can program against the abstraction and swap providers with only a constructor change.

    Also exports the new BearerJsonRpcTransport for advanced users who want to drive the proxy with a custom client. Service accessors (mail, modules, accounting, etc.) remain on OdooClient only — OAuthProxyClient ships with CRUD + raw call in v1. Existing OdooClient callers are unaffected; this is a purely additive release.

@marcfargas/[email protected]

03 May 08:35
02ab5bb

Choose a tag to compare

Patch Changes

@marcfargas/[email protected]

26 Mar 19:26
ec3e164

Choose a tag to compare

Minor Changes

  • 0b6a34b: Add a rich content pipeline and translated-field support to the plan/apply engine.

    DSL marker functionsmd(), mdFile(), translated(), withCss(), and html() 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 with juice, translated fields are extracted into per-language write operations, and sanitization heuristics emit warnings for fields that may strip markup.

    Translated fieldsplan() diffs each active language separately and apply() writes each language using context: { 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 resolutionlookup() references and inline ResourceRef values 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

@marcfargas/[email protected]

26 Mar 19:26
ec3e164

Choose a tag to compare

Patch Changes

@marcfargas/[email protected]

26 Mar 19:26
ec3e164

Choose a tag to compare

Minor Changes

  • 0b6a34b: Add getFieldAttributes() method to Introspector that calls fields_get() RPC and returns per-field sanitize/translate metadata. Extend the OdooField interface with sanitize and translate boolean attributes. Results are cached alongside existing field-cache entries.