تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4533 أدوات العرض

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
أبريل 23
28664
2
سبتمبر 20
6377
2
أبريل 25
1112
1
مارس 24
1324
1
يناير 24
1955