There is a necesity to add a document during app install.
As I understand the code should be something like this:
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
activity_type_in_office = frappe.get_doc({"doctype":"Activity Type", "name": "In Office"})
activity_type.insert(ignore_permissions=True)
activity_type.submit()
I’ve checked this guide and this cheatsheet but didn’t notice necessary guidance. Maybe instead of py script I can use a json file, and where in my app should I place such file?..