I have fiddled with the desktop and module layouts and found out it’s all a bit trickier. You actually have to have both files:
-
desktop.py– for the whole module to be visible on the main Desk screen. -
app_name.py– for the layout of the module links inside the module menu, which you can access from the main Desk screen.
desktop.py is structured more or less the same as it was in v11. I think the devs added some v12-specific options, but I’m afraid you’ll have to look at some of the existing ones in the erpnext app if you want more details.
app_name.py – is structuread a bit differently:
[ { group1 definition: [ { group1 }, { items }, { definitions } ] }, { group2 definition: [ ... ] } ]
Again, you’ll have to look at the existing files, since I only have basic understanding.