Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1107 Tampilan

Hi!

I am developing a module for a payment gatewat for Odoo v15.


When installing the module in Odoo v15 in odoo . sh, I get the following error:

RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

File "/home/odoo/src/odoo/odoo/tools/convert.py", line 683, in _tag_root

f(rec)

File "/home/odoo/src/odoo/odoo/tools/convert.py", line 572, in _tag_record

f_val = _eval_xml(self, field, env)

File "/home/odoo/src/odoo/odoo/tools/convert.py", line 149, in _eval_xml

with file_open(node.get('file'), 'rb', env=env) as f:

File "/home/odoo/src/odoo/odoo/tools/misc.py", line 205, in file_open

path = file_path(name, filter_ext=filter_ext, env=env)

File "/home/odoo/src/odoo/odoo/tools/misc.py", line 184, in file_path

raise FileNotFoundError("File not found: " + file_path)

FileNotFoundError: File not found: payment_pay/static/description/icon.png


My XML data file is this:

<record id="payment_acquirer_payment"model="payment.acquirer">

<field name="image_128"type="base64"file="payment_pay/static/description/icon.png"/>

record>


If the icon file exists in the specified path, what path should I put so that Odoo can find it and save it to the database?


Or is there some way to obtain the absolute path and add it to the file field in xml?

Thanks

Avatar
Buang
Jawaban Terbai

Hello Daniela Guerra,


May be you're facing this issue because the record you're trying to create (id="payment_acquirer_payment") is not in the same module in which the icon.png file is available (payment_pay). If this is the case then kindly add 'payment_pay' in the depends of you module's manifest file and then try again.

Thanks & Regards,
Email:   odoo@aktivsoftware.com  

Skype: kalpeshmaheshwari

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Okt 22
46
0
Nov 22
1696
0
Sep 22
2078
1
Jul 22
8852
2
Des 21
2844