Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: AI OCA Bridge

Entity: ai.bridge.execution

Compute Method: _compute_payload_txt

Inputs Method Outputs
for record in self:
            if record.payload:
                try:
                    record.payload_txt = json.dumps(record.payload, indent=4)
                except (TypeError, ValueError):
                    record.payload_txt = str(record.payload)
            else:
                record.payload_txt = ""

Back to entity