Hi,
For that, you're going to use the post_init_hook procedure.
How?
Follow these steps :
1- Register the hook in the __manifest__.py file with the post_init_hook
key:
'demo': [
'data/mrp_demo.xml',
],
'test': [],
'application': True,
...
'post_init_hook': 'add_philippines_states',
2- Add the add_philippines_states() method in the __init__.py file:
from odoo import api, fields, tools
def add_philippines_states(cr, registry):
tools.convert_file(cr, 'Your_MODULE', PATH, None, mode='init', noupdate=True, kind='init', report=None)
where path is the path to your scv file. EX : data/philipine_states.scv
It means that after the installation of your module, Odoo will check for the add_philippines_states method in your __init__.py .
Upvote if this helps,
If not, you can write back for further analysis.
Regards.