I am having a couple of issues with Module Builder, namely:

1. Changing the fields shown in default panel when my module is related to Accounts
2. Changing the name used for the sub-panel

By way of a test case, I want to add a list of purchases to my account using Module Builder in CE Version 5.0.0d (Build 3235). I have based this around the tutorial based here: http://media.sugarcrm.com/50tutorials/module_builder_1/. Unfortunately, this tutorial stops just shy of actually running the new code created.

Okay so what I did was:

1. In Admin > Module Builder I created a new Package then a new module "Purchases". It
has a navigation tab (for testing really) and is based on the "basic" type.
2. I add a couple of fields: product_id (text) and purchase_date (date)
3. I create a relationship between this module and Accounts, labelled "Purchases"
4. I modify the edit view to include my new fields, ditto detailed view.
5. Similarly I modify the list view to include these fields, also "name" and "description"
6. I also modify the Subpanel default view to include my new fields.
7. I save the whole module, then "deploy" the package.

As an aside I generally need to repare roles before the new module works properly (Admin > Repair > Repair Roles).

The good news:

1. Logging on as a user via another machine, I can see the "purchases" tab, and going in
to a specific account via the account tab I get a panel for purchases as the bottom.
2. Via that route I can create a purchase associated with the account under a subpanel entitled
"Purchases"

But:

1. The fields listed in the purchases sub-panel in the account seem to take no account of
the "default" subpanel I edited in step 6 above. The fields are just the defaults and I
cannot workout where to change them.
2. If I go in to a Purchase, the account it is associated with is listed in a sub-panel
labelled "Purchases" rather than Accounts -- and I cannot see anywhere to change that.
3. A minor point, but I do not want anyone to create a purchase unlinked with an account. So
I'd like the create purchase option removed from the sidebar

Any pointers welcome,

thanks

David