Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3777 Vizualizări

I added a new pdf report in the Customer invoice form and the report name shows in the Print button. But the same pdf report is shown in the Journal Entry form Print button as well. Since it's the same account.move module is used in Customer Invoice and Journal Entry forms.

I want to show my pdf report only in customer invoice menu form alone not in Journal Entry form print button.  

Is there any condition for this?  

Any Idea?

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

In order to resolve this case, what you can easily do it hide report from the print menu and add a button inside form header to print the button.

To hide or remove from  the print button you can set menu False along with the report action, add  a button in invoice view, which prints this report.


Thanks

Imagine profil
Abandonează
Autor

Hi Mehjabin,
Yes, I got your point. If we add a report in the form view button also the PDF report name will display in the Print button of both menus.
Need a permanent solution for separating PDF reports based on menu or action in the same model.
Do you have any other solution?

once you add button inside the form, you can control the visibility using the context value.

sample: invisible="context.get('default_move_type') not in ('out_invoice', 'out_refund','out_receipt')"

Related Posts Răspunsuri Vizualizări Activitate
1
iun. 24
3605
0
ian. 24
1117
0
oct. 22
68
0
oct. 22
7
1
sept. 21
2175