CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Apparently it is a serious problem and nobody know how to do it so I need help, I'm new in Odoo, it's still a mistery for me how to build something in this system.
How can I create and how should it look like a function which will create a link. For example I have a field "ebay_number" which contain 12 digits long number of product and I would like to create a link to the item based on constant element like "www.ebay.com/itm/ + <item number>" but on screen I want only see this number. Hope you understand guys what I'm talking about.
Can anyone help me with it please?
Too complicated ?
Can anyone show me how to do it ?
in view_form.js you have all basic widget... If you need module which add a widget, you can grep 'instance.web.form.widgets = '...
But your widget is really basic, you can copy past the widget Field2 from documentation...
this.$el.html("<a href='<your_url>/'>"+ this.get("value") + "</a>");
and it will works !
About This Community
Odoo Training Center
|Asked: 3/20/15, 10:00 AM|
|Seen: 2274 times|
|Last updated: 7/16/15, 9:57 AM|