跳至內容
選單
此問題已被標幟
2 回覆
4529 瀏覽次數

I need a little help. I want to create a small module to open a sale order as html page.

When we open a sale order or quotation, in address bar we see this type of link

https://<server-address>/web?debug#id=279&view_type=form&model=sale.order&menu_id=176&action=243


I wish to create a button link in print menu to open it in a new tab with this type of link.

http://<server-address>/report/html/sale.report_saleorder/279

Any help will be greatly appreciated.

頭像
捨棄
最佳答案

Hi,

If you are looking to open the report as HTML page change the report type to HTML from the settings.


See the video: How to preview the reports in Odoo


Thanks

頭像
捨棄
作者 最佳答案

I have no rights to comment. You are right but I don't want this approach. In this approach report open with all menus. But in my case, I need only report view without main menu and side menu. And if I use the above link, it only views report page without menus. Hope that you will help.

頭像
捨棄

Why don't you try controllers..

作者

Any example, please.

相關帖文 回覆 瀏覽次數 活動
7
4月 23
28656
2
9月 20
6373
2
4月 25
1108
1
3月 24
1319
1
1月 24
1945