Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
4542 Widoki

If I design a qweb report for the same model with the different menu name, I want to show that particular report name into the particular menu.

Example:

If I design a qweb report for the Customer Invoice menu as Sales Invoice in the Print Option. This qweb report name will also showing in the Vendor Bills menu  because this two menu are same model name. My Problem is I want to view that qweb report in the Customer Invoice menu  only. 

Is there any way to solve this..

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

I think it will be better for you to print the report from a button click, rather than adding it to the print menu. When you add it as a button in the header of the form, you can check whether it is customer invoice or the vendor bill and can hide the button or do accordingly.

You will get more flexibility easily if you make the print  from a button inside the form.


Thanks

Awatar
Odrzuć
Najlepsza odpowiedź

Try to use groups.

<report id="report_id_goes_here" 
model="report.model" 
string="ABC Report" 
groups="module_name.group_name,module_name,group_name" 
name="module_name.report_name" 
file="module_name.report_name" 
report_type="qweb-pdf"  
/>
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 18
13591
4
kwi 24
19695
2
lip 24
2447
1
cze 24
4961
0
sty 24
1524