Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
445 Widoki

Hola, espero me puedan ayudar al momento de emitir la factura en la parte superior derecha me aparece la palabra, INVOICE, CREDIT NOTE, DEBIT NOTE, así siempre en ingles, como puedo modificar para que me aparezcan en español? soy de argentina, todo lo demás si esta en español, y la configuración de idioma esta en español argentina.


Desde ya mucha gracias

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

Please refer to the code below:


<template id="custom_report_invoice_document"

    inherit_id="account.report_invoice_document">

    <xpath expr="t[@t-call='web.external_layout']" position="replace">

        <t t-call="web.html_container">

            <div class="mt-5 clearfix">

                <div class="page mb-4">

                    <h2>

                        <h1 t-if="o.move_type == 'out_invoice' and o.state == 'posted'"

                            style="font-size: 40px;  text-align: center; margin-bottom:2px; font-weight: bold;">

                            FACTURA

                        </h1>

                        <h1 t-if="o.move_type == 'out_refund' and o.state == 'posted'"

                            style="font-size: 40px;  text-align: center; margin-bottom:2px; font-weight: bold;">

                            NOTA DE CRÉDITO

                        </h1>

                         <h1 t-if="o.move_type == 'out_receipt' and o.state == 'posted'"

                            style="font-size: 40px;  text-align: center; margin-bottom:2px; font-weight: bold;">

                           NOTA DE DÉBITO

                        </h1>

                    </h2>

                </div>

            </div>

        </t>

    </xpath>

</template>



Hope it helps.

Awatar
Odrzuć
Autor

Thank you very much for your help and for sharing the code!

If it’s not too much trouble, I’d really appreciate it if you could please guide me on where and how to apply it. I'm new to Odoo — just a regular user — but I enjoy learning and I’m currently working on a test database so I don’t affect the live one.

At the moment, the only place I see related to code is when I go into the Invoicing module and activate Odoo Studio. From there, I can access the “REPORTS” tab, where I see three available reports: “Original Invoice,” “Invoice PDF,” and “PDF without payment.”

From what I understand, the code you sent creates a new QWeb template that inherits from an existing one and overrides specific parts. I’d love to know where exactly I should place this code and how to make it work properly in my setup.

Thanks again for your time and support!

Najlepsza odpowiedź

Hola Jose Gregorio,

Te recomiendo usar el idioma "Español Latino America". Este idioma es el que contiene las traducciones más actualizadas. 

Adicional a esto, verifica que el contacto del documento que estas emitiendo (Cliente en una factura), tenga establecido el idioma "Español Latino America"
En Odoo, los documentos se emiten en el idioma predefinido del cliente

Gracias

Awatar
Odrzuć
Autor

Everardo, te agradezco por la ayuda, ya hice lo que me comentaste, cambien el idioma en los contactos, y desinstale el idioma Español argentina, deje por defecto todo con Idioma Latinoamérica y me sigue emitiendo el PDF igual con esas palabras en ingles.