Comment 2 for bug 731487

Revision history for this message
Sébastien BEAU - http://www.akretion.com (sebastien.beau) wrote :

Hi xrg.

I found this bug because I wanted to add dynamically field to my wizard depending of the field imported from Magento (an e-commerce platform).
Indeed in Magento the product form can be customized by the customer and so custom fields can be added to the object product. When the object are imported in OpenERP a python function will create this fields and after the function 'fields_view_get' will bluid a custom view dynamically.
It's already works pretty well for the osv.osv, you can see an example in the module magentoerpconnect https://launchpad.net/magentoerpconnect
You can look in the file magentoerpconnect/product.py
- line 296 in the function 'create', openerp field are created dynamically
- line 819 in the function 'fields_view_get', the view is overwritten dynamically

Hope my explication will help you to understand why I need this feature. And also maybe give some idea of that is posible to do with OpenERP.

Best Regards