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 !
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/20/15, 10:00 AM|
|Seen: 1474 times|
|Last updated: 7/16/15, 9:57 AM|