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

Module: Romania - E-invoicing

Entity: res.company

Compute Method: _compute_l10n_ro_edi_callback_url

Inputs Method Outputs
  • country_code
  • id
""" Callback URLs are used for generating client_id and client_secret from l10n_ro_edi's setting. """
for company in self:
            if company.country_code == 'RO':
                company.l10n_ro_edi_callback_url = company.get_base_url() + ('/l10n_ro_edi/callback/%s' % company.id)
            else:
                company.l10n_ro_edi_callback_url = False

Back to entity