Skip to Content
Menu
This question has been flagged
3 Replies
4279 Views

Hello everybody;

Can anyone help me know please why is my action not called. 

action = {
'name': record.file_name,
'type': 'ir.actions.act_url',
'mimeType': "application/msword",
'url':
base_url + "web/content/?model=stock.picking&id=" + str(record.id)
+ "&filename_field=file_name&field=file_test&download=true",
'target': 'new',
}
return action


Thanks a lot in advance.

Best regards.

Avatar
Discard

i think you may need / before web/content. Like this : base_url + "/web/content

if this is not the problem, can you show us the odoo logs? the error should be there.

Waiting for your reply to this.

Best Answer

Hi  , have you managed to find a solution , if yes please upload here. I am also facing the same issue.

Avatar
Discard
Author Best Answer

Thanlks a lot for the answer my friend.

I have added base_url but also not working :/

here is my logs:

2019-10-31 14:38:07,338 30554 INFO test_master werkzeug: 127.19.5.1 - - [31/Oct/2019 14:38:07] "POST /web/action/load HTTP/1.1" 200 - 15 0.007 0.011
2019-10-31 14:38:08,418 30554 INFO test_master werkzeug: 127.19.5.1 - - [31/Oct/2019 14:38:08] "POST /web/action/run HTTP/1.1" 200 - 40 0.020 1.055
2019-10-31 14:38:08,525 30554 INFO test_master werkzeug: 127.19.5.1 - - [31/Oct/2019 14:38:08] "POST /web/dataset/call_kw/stock.picking/read HTTP/1.1" 200 - 64 0.062 0.038
2019-10-31 14:38:08,581 30554 INFO test_master werkzeug: 127.19.5.1 - - [31/Oct/2019 14:38:08] "POST /web/dataset/call_kw/stock.move/read HTTP/1.1" 200 - 35 0.023 0.026

Avatar
Discard
Related Posts Replies Views Activity
1
Oct 19
5208
0
Mar 24
163
1
Oct 21
3394
1
Jan 21
2273
2
Oct 20
3060