# Copyright 2020 Creu Blanca
# @author: Enric Tobella
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo.addons.component.core import Component


class EdiOutputL10nEsFacturae(Component):
    _name = "edi.output.generate.l10n_es_facturae"
    _inherit = "edi.component.output.mixin"
    _usage = "edi.output.generate.l10n_es_facturae"

    def generate(self):
        return self.exchange_record.record.get_facturae(True)[0]

@@ -310,28 +310,24 @@
   _usage = %22
-edi.
 output.gener
@@ -321,33 +321,55 @@
 %22output.generate
-.
+%22%0A    _backend_type = %22
 l10n_es_facturae

Fix components names using the new logic