Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Saudi Arabia - E-invoicing
Entity: l10n_sa_edi.document
Compute Method: _compute_content
| Inputs | Method | Outputs |
|---|---|---|
|
+ """contents of the submitted UBL file or generate it if the invoice has not been submitted yet""" + for record in self: + attachment_id = record.state in ('accepted', 'warning') and record.attachment_id + record.content = attachment_id.raw if attachment_id else record.resource._l10n_sa_generate_zatca_template().encode() |
|
