Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Aggregator Metadata (Odoo)

The meta block in each aggregator can provide arbitrary information for the integration software.

The following details are demonstrated using Odoo ERP integration.

An example

options:
    # ... omitted ...

meta:
    # Controls which Odoo product.template is copied for this instance.
    template_product: KONFOO-TEMPLATE

    # When set to true the `sale.order.name` is prepended to the product's `name` value computed below. 
    # Default is true.
    use_parent_name_prefix: true

    # Delimiter string used when generating the configure product's name. Default is a single space.
    product_name_delimiter: "-"

    # Simple parameters like these are set on the new product.template instance.
    name: (expr) my_module::compute_product_name(root)
    description: <b>Product Description</b>

    # `parent.` prefix provides access to the containing `sale.order` data model.
    parent.origin: Made by Konfoo

    # `line.` prefix provides access to the `sale.order.line` data model that refers to the product above.
    line.name: (expr) my_module::generate_long_product_description(root)

rules:
    # ... omitted ...