Hi All,

I'd like a clarification about the upgrade-safe customization of <<bean>>.php class of existing module.

I'm thinking to create an installation module manually (using a manifest.php) that customize Opportunity module.
I see that in the $manifest array if I use keywords: "language", "layoutdefs", "vardefs" anything work fine when I install the module because all my created files are dropped in custom/xxxxx folder.

When I use beans clause:

'beans' => array(
array(
'module' => 'Opportunities',
'class' => 'Opportunity',
'path' => 'modules/Opportunities/Opportunity.php',
'tab' => true,
)
),

Rightly the Module Loader override the Opportunity.php in standard modules/Opportunities directory but this is NOT upgrade-safe.
I'd like to know how can I override some methods of Opportunity.php bean (such as save_relationship_changes or create_list_query) in upgrade-safe way

Thanks in advance
Vincenzo