Skip to Content

Odoo Website Update

The Odoo Website Page Update transform is a powerful specialized output operation that updates website page content in Odoo. It supports five different update modes, Replace Page Body, Prepend Content, Append Content, Full Content Replacement, and Search and Replace, allowing you to modify website pages in different ways. Configuration options vary depending on the selected update mode.

Usage

Core Configuration Parameters

These base settings are required for all update modes:

  • Transform Name: Unique identifier (e.g., "update-product-pages"). Used for logging.

  • Odoo Connection: The Odoo server connection. Dropdown shows available connections.

  • Website Page: Target website page to update. Dropdown shows all available pages.

  • Update Mode: Type of update: Replace Page Body, Prepend Content, Append Content, Full Content Replacement, or Search and Replace.

Update Modes and Configuration Options

The Odoo Website Page Update transform supports five different update modes. Configuration options change based on selected mode:

Mode 1: Replace Page Body

Replaces main body content while keeping page structure intact. Use when redesigning page content but keeping framework.

  1. Configuration Section: Page Body Settings

  • Content Field - Dropdown to select field with new page body content

  • Replace All Occurrences - Checkbox (default: checked)

  • Auto-publish changes - Checkbox (default: checked)

Mode 2: Prepend Content

Adds new content at the beginning (top) of the page. Use for adding notices, banners, or promotional sections above main content.

  1. Configuration Section: Content Settings

  • Content Field - Dropdown to select field with content to prepend

  • Wrap content in div - Checkbox to wrap content in div element (default: checked)

  • Wrapper CSS Class - Text field for CSS class name (e.g., "notice-banner")

  • Replace All Occurrences - Checkbox (default: checked)

  • Auto-publish changes - Checkbox (default: checked)

Mode 3: Append Content

Adds new content at the end (bottom) of the page. Use for adding closing statements, related links, or call-to-action sections.

  1. Configuration Section: Content Settings

  • Content Field - Dropdown to select field with content to append

  • Wrap content in div - Checkbox to wrap content in div element (default: checked)

  • Wrapper CSS Class - Text field for CSS class name (e.g., "footer-section")

  • Replace All Occurrences - Checkbox (default: checked)

  • Auto-publish changes - Checkbox (default: checked)

Mode 4: Full Content Replacement

Replaces entire page content (body, structure, metadata). Use for complete page redesign. ⚠️ WARNING: Removes all existing content.

  1. Configuration Section: Content Settings

  • Content Field - Dropdown to select field with complete replacement content

  • Wrap content in div - Checkbox to wrap replacement content in div (default: checked)

  • Wrapper CSS Class - Text field for CSS class name (optional)

  • Replace All Occurrences - Checkbox (default: checked)

  • Auto-publish changes - Checkbox (default: checked)

Mode 5: Search and Replace

Finds specific text in page content and replaces with new text. Most flexible mode for precise targeted updates. Supports regex patterns.

  1. Configuration Section: Search and Replace

  • Search Value - Select "Static Value" (fixed text) or "From Field" (from input data)

  • Replace Value - Select "Static Value" (fixed text) or "From Field" (from input data)

  • Use Regular Expressions - Checkbox to enable regex patterns in Search Value (default: unchecked)

  • Replace All Occurrences - Checkbox to replace all matches (default: checked)

  • Auto-publish changes - Checkbox (default: checked)

Connection configuration

Before using the transform, you must define an Odoo database connection. The fields required are:

Field

Required

Description

Odoo connection name

Yes

A descriptive name for the connection in Hop.

Base URL (domain)

Yes

Full URL of the Odoo instance, e.g., https://mycompany.odoo.com.

Username

Yes

Odoo username for authentication (or API user).

Password

Yes

Odoo password or API key, depending on authentication method.

Database

Yes

Name of the Odoo database to query.


Practical examples

Example 1: Replace Page Body

Scenario: Redesign product page content while keeping navigation structure.

  • Update Mode: Replace Page Body

  • Content Field: new_product_body

  • Auto-publish changes: Unchecked (review first)

Example 2: Prepend Content

Scenario: Add promotional banner at top of all product pages.

  • Update Mode: Prepend Content

  • Content Field: promotion_banner

  • Wrap content in div: Checked

  • Wrapper CSS Class: promotion-banner

  • Auto-publish changes: Checked

Example 3: Append Content

Scenario: Add related products section at bottom of pages.

  • Update Mode: Append Content

  • Content Field: related_products_html

  • Wrap content in div: Checked

  • Wrapper CSS Class: related-products

  • Auto-publish changes: Checked

Example 4: Full Content Replacement

Scenario: Completely redesign homepage with new layout and content.

  • Update Mode: Full Content Replacement

  • Content Field: new_homepage_html

  • Wrap content in div: Unchecked

  • Auto-publish changes: Unchecked (review first)

Example 5: Search and Replace

Scenario: Update all prices from "$19.99" to "$24.99".

  • Update Mode: Search and Replace

  • Search Value: $19.99 (Static Value)

  • Replace Value: $24.99 (Static Value)

  • Replace All Occurrences: Checked

  • Auto-publish changes: Checked