Fields are not showing up when I update an app.

Hello,

I am using:

  • Frappe v12.6.1 (version-12)
  • ERPNext v12.9.2
  • Bench v5.0.0

I just performed an update on a custom app, and when updating the application in the Frappe environment, I follow these steps:

  1. git pull (to fetch changes from the GitHub repository)
  2. bench migrate
  3. bench restart

The app updates, and everything seems correct on the app’s side. However, in my Frappe environment, I have added custom DocTypes and modified core DocTypes provided by ERPNext and Frappe by adding fields through “Edit DocType”. I notice that the fields do not appear in the user interface, but when I check through the console, I can see the fields that are not rendering in the UI. Additionally, I detected that newly added fields in the “Edit DocType” of a custom DocType do not render after the bench migrate.

What steps should I follow? How can I upgrade the versions of Frappe and ERPNext without losing the changes I made?

Hi, If fields aren’t showing up after updating your app, try these steps:

  1. Clear Cache: Run bench clear-cache to remove old data.
  2. Rebuild: Run bench build to refresh the site.
  3. Check Permissions: Make sure users have the right permissions to see the fields.
  4. Verify Changes: Ensure your field changes were saved correctly.
  5. Inspect for Errors: Look at your browser’s console for any errors.

When upgrading Frappe and ERPNext:

  1. Backup: Always back up your data first.
  2. Upgrade Gradually: Move up one version at a time (e.g., from v12 to v13).
  3. Check Compatibility: Ensure your customizations work with the new version.
  4. Upgrade: Use bench update and bench upgrade to update your system.
  5. Test: Check everything to make sure it works after the upgrade.