Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Read file contents on module location

from odoo.modules.module import get_module_resource
text_file_path = get_module_resource('mymodule', 'static/src/, 'myfile.txt')
 
PREVIOUS NEXT
Tagged: #Read #file #contents #module #location
ADD COMMENT
Topic
Name
4+5 =