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

Module: EDI

Entity: edi.exchange.record

Compute Method: _compute_record

Inputs Method Outputs
  • id
"""
        Main related record is computed as the first related record created
        for the exchange.
        """
data = self._get_edi_first_related_record_dict()
for rec in self:
            rec.res_id = data.get(rec.id, {}).get("res_id", False)
            rec.model = data.get(rec.id, {}).get("model", False)

Back to entity