Hi everybody
Lets see if someone can help me here. This is the first time I have created my own module with 5.0, and even I have to say it has been pretty intuitive, (like always in first times) I did not get everything to work as I wanted.
Let me explain you what I am trying to do. I am trying to create a simple "Contract" module to link it with the Accounts, so I can track the services I offer to each of the accounts I have created in my SugarCRM version.
a) Reation with Accounts Module:
To relate the Accounts Module and my Contracts module, what I did was adding a "Relate" field called assigned_account_id and liked it to the Accounts Module.
Then I have placed this fild in the Edit, Detail and List Layouts, and I must say that in the Edit and Detail it works fine, I can pick one of the accounts from the popapplet and the value of the name of the account gets saved. However the problem is that once the account is related to the Contract, in the List applet, where I also have this assigned_account_id , the field is empty... dont get to show the name of the account... żAny ideas why?
b) Currency field not displaying correctly
Also a filed I have in the Contract module is the price, which is of type Currency, and again I have a problem in the List View, as the value gets showed with 6 decimals. For example if the value is 5.00 in Detail and Edit View, in the List View is 5.000000€ which is annoying and causes me some problems at the time I read it.
c) Relation shown in subpanels
One of the thing I want to get is realting the two modules, so when an user goes to the Accounts module it can see in the subpannels that the account has a contract assigned. But also what I want is that in the Contracts you dont need the Accounts subpanel as you already have the "Related" field in the Detail, Edit and List pannels.
The problem is that if I create a New Relationship in the Contracts module, I am able to see both subpannels in both modules, and also in the Contract Module, when I pick an account in the "Related" assigned_account_id, the subpanel account does not get populated, so I have to go there and click manually to pick the same account again.
What I want to get is a behaviour like the Accounts/Contacts module, where in the Contacts module when you pick the account, you dont have the accounts subpanel, and if you go to accounts, you can see all the contacts associated in the subpannel.... hope you understand what I mean.
d) Not being able to admin the Module in the Role Management screen.
Once I deploy the module, I can not go to the Roles and set the rights for each role (Edit, Delete, List, Import....) I dont see the module I have deployed at all...it does not appear in the list of modules I can set the rights to, so all the users will see this Contract Module.. with 100% Full access which is not my intention.... What am I doing wrong?
Well "that"'s all :-DDDD..... if you could give me some guidenance I will appreciate it....even if you can point me to any usefull documentation .... what I have readed at the moment is not "very simple" for beginners :-D
Thanks a lot guys!!


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks