Hyperlink in tree view

Asked by anuradha

I want to add a hyperlink with ftp url in my tree view. i tested with adding widget="url" in my xml ,but its not working.
Please help
my code is
  <tree string="File Names" >
            <field name="time_created" string="Time Created"/>
            <field name="size" string="Size"/>
             <field name="file_name"/>
             <field name="file_path" widget="url"/>
   </tree>

class filedata(osv.osv):
    _name = 'filedata'
    _log_access = False
    _columns = {
        'file_name' : fields.char('Name'),
        'file_path' : fields.char('File Path'),
        'time_created' : fields.datetime('Date Time'),
        'size' : fields.char('Size')
    }

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Web (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#1

Anuradha,

It is to make sure that the vaue of file_path field should be a hyperlink.

Thanks.

Revision history for this message
anuradha (anuradha-g) said :
#2

i didnt get you

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#3

What is the value of file_path at your end?
Thanks.

Revision history for this message
anuradha (anuradha-g) said :
#6

my file_path is like ftp://test.claudion.com:123/02 Tujh Sang Preet.mp3

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#7

Space seems to be the issue!

Can you help with this problem?

Provide an answer of your own, or ask anuradha for more information if necessary.

To post a message you must log in.