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