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

Module: Indian - E-waybill

Entity: l10n.in.ewaybill

Compute Method: _compute_content

Inputs Method Outputs
dependent_fields = self._get_ewaybill_dependencies()
for ewaybill in self:
            if any(ewaybill[d_field] for d_field in dependent_fields):
                ewaybill_json = ewaybill._ewaybill_generate_direct_json()
            else:
                ewaybill_json = {}
            ewaybill.content = BinaryBytes(json.dumps(ewaybill_json).encode())

Back to entity