D
D
Denis Fedorets2018-12-18 21:23:33
Python
Denis Fedorets, 2018-12-18 21:23:33

Odoo - how to open file from disk in browser?

I understand with Odoo, and buried myself in the wall ...
There is a file on the disk, I want it to open in the browser in a new tab.
I try:

def show_my_data(self,cr, uid, ids, arg, context=None):
    
    return {
        'name': 'Go to website',
        'res_model': 'ir.actions.act_url',
        'type': 'ir.actions.act_url',
        'target': 'new',
        'url': 'file:///D:/tmp.html'
}

an empty tab opens ((
If you click on the file "Open with-\u003e Chrome" - it opens wonderfully. Can anyone help?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OBEH, 2018-12-20
@OBEH2017

Well, damn, you give .... (c)
Look here https://www.odoo.com/forum/help-1?search=How+to+op...
Maybe you'll find something. I didn't look.
Why did you decide to play with Odoo?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question