Results 1 to 3 of 3

Thread: Disable parent attributes on inherited child object

  1. #1
    john30043 is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Atlanta, GA
    Posts
    17

    Default Disable parent attributes on inherited child object

    I have a custom module that was inherited from 'Company' model and I am trying to figure out how to disabling unwanted parent attributes. For example, the 'Company' parent has billing address as well as website attributes. I can choose to show billing address but not the website on the editview.php, however, I am not able to keep the website attribute from showing up in the advance search field since that attribute is in the company parent model.
    Last edited by john30043; 2007-12-05 at 06:48 PM.
    John Zhang
    [Server: WinXP]
    [Sugar v5.0.0 GA]
    [Apache 2.2.5]
    [MySQL 5.0.45]

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Disable parent attributes on inherited child object

    Hi, John.

    I'm not sure I got your needs.

    You just created a new module which inherits from Accounts module, and you want to avoiding redeclare the parent fields in the child class.

    Some parent fields are not been shown int the EditView.

    That is it??


    Cheers.

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    cel. 55 11 7636-5859
    e-mail: info@lampadacrm.com.br

  3. #3
    john30043 is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Atlanta, GA
    Posts
    17

    Default Re: Disable parent attributes on inherited child object

    Well, it's right under my nose... all I need to do is to remove the attributes from the file searchdefs.php... When I create a module from module builder, I had the choice whether it a type of 'Basic', 'Company', 'Person', I choose 'Company', everything works fine, except I DO NOT want some 'company' related fields show up in the advance search, for example, website field and industry field, which are inherited fields from 'company'.
    Last edited by john30043; 2007-12-06 at 05:19 PM.
    John Zhang
    [Server: WinXP]
    [Sugar v5.0.0 GA]
    [Apache 2.2.5]
    [MySQL 5.0.45]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Project Management Enhancements
    By manoj in forum Project Management
    Replies: 80
    Last Post: 2011-03-22, 05:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •