Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
In model sale order line I add a field "image_ref", I'd like to pass the value of this field to an icon in the sale order line view. So every time it change the product. change the icon.
I know that I can do this using fields_view_get(), but I don't know exactly how it works, I understand that everything does the py and the view is not modified.
I'm beginning with this.
def fields_view_get(self, cr, uid, view_id=None, view_type='tree', context=None, toolbar=False,submenu=False): result = super(sale_order_line, self).fields_view_get(cr, uid, view_id, view_type, context, toolbar,submenu) active_id = context.get('active_id', False) res['fields'][field]['icon'] = image_desc
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/29/13, 6:33 PM|
|Seen: 1296 times|
|Last updated: 3/16/15, 8:10 AM|