Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3 Antworten
894 Ansichten

Hey there, 

I wanted to set up my check-out. But every time I chose a specific combination from my product-configurator, Odoo tells me that there is a specific error:

RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/odoo/sale_order_line.py", line 61, in _get_sale_order_line_multiline_description_variants

    name += "\n" + _(

NameError: name '_' is not defined

Does anybody knows what I did wrong and could help me?

Many thanks in advance! 


Greetings

Luis

Avatar
Verwerfen
Autor Beste Antwort

I think I understand what the problem is. Could you explain maybe a little bit more, what I have to do to solve this problem? 

Again; many thanks in advance!

Avatar
Verwerfen
Beste Antwort

Hi,

The error occurs because the code is trying to use a function named _, which is not defined in the file sale_order_line.py. Ensure that the translation function is properly imported:

from odoo import _


Hope it helps

Avatar
Verwerfen
Autor

I think I understand what the problem is. Could you explain maybe a little bit more, what I have to do to solve this problem?

Again; many thanks in advance!

Beste Antwort

Hello Luis,  

from odoo import models, fields, api, _

Thanks.

Avatar
Verwerfen
Autor

I think I understand what the problem is. Could you explain maybe a little bit more, what I have to do to solve this problem?

Again; many thanks in advance!

Verknüpfte Beiträge Antworten Ansichten Aktivität
3
Apr. 24
1688
2
Mai 25
1128
0
März 25
1056
1
Aug. 24
2014
2
Jan. 24
2700