First I was creating account and account assets from XML file but now scenario has changed and i'm creating account manually and assigning the category_id to invoices depends upon the total_months. It was working perfectly until I removed those two files (account.xml and account_asset.xml) from manifest. Now I'm stuck at it and don't know how to tackle this.
__mainfest__.py
'data': [
'data/account_deferred_revenue_account.xml',
'data/account_deferred_revenue_account_asset.xml',
'security/deferred_revenue_security.xml',
'wizard/wizard_asset_compute_view.xml',
'report/account_deferred_revenue_report_view.xml',
'views/res_config_settings.xml',
'views/account_deferred_revenue.xml',
'views/account_deferred_revenue_invoice_view.xml',
'views/account_deferred_revenue_product_view.xml',
'views/res_config_settings_views.xml',
'views/account_invoice.xml',
]
When i commented the above bold lines i got the category_id error and server stopped responding. Any luck?