Hi helentr
It is possible to do with some bit customization.
You need to:
1. Copy the field include/SugarFields/Fields/Relate and paste to another one (include/SugarFields/Fields/NewRelate);
2. Rename the php script inside this folder to gets the name accordingly to the folder's name;
3. Replace the "Relate" strings to "NewRelate" inside the php script;
4. Add a new line in the php script bellow
PHP Code:
$field_to_name['name'] = $vardef['name'];
Where first value refers to the field in the product module and the second one refers to the field in the opportunity
5. Modify the editviewdefs.php from Opportunities and set the 'type' => 'NewRelate' for the total opportunity.
This implementation will works for products selected from the popup in a relate field, if you want to select products from a dropdown then you need to configure an ajax call and custom controller for Opportunities.
Let me know if it is what you need.
Cheers
Bookmarks