I have created custom roles and given permissions to some doctypes but it is not reflected any changes in the code. I want my customization to be available to another developer whenever migrating.
Is there any method to transfer roles and role permissions in erpnext?
Thanks in advance!
All the changes made in Role Permissions are saved in “Custom Docperm”. Now Export this doctype.
Now in hooks.py add the fixtures for that file. Then do "bench export-fixtures.
File would be created in your fixture directory.
Thanks for the reply @NikhilK
Is it necessary to add fixtures for that doctype(Custom Docperm)? Can i simply export and import that doctype?
Because someone said using fixtures is not safe for the app. Is it true?