Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
8771 Переглядів

i wont allowing print that report in  draft mode 

how to do 

anybody can help me

Аватар
Відмінити
Найкраща відповідь

Hi,

If your report is under the action/print button in the top of the view, a simple work around you can do is that, add button in header of the form and call the report from it. And you can hide the report in the print menu by putting menu="False" for the report tag.

So once you moved the print button to the header, from here you can easily hide the print button based on states by putting necessary states inside states attribute or by attrs.

Thanks

Аватар
Відмінити
Автор

niyas , not working attrs in reports

when i use simply menu ="false" print is blocked all the states when i use attrs="{'invisible':[('state','!=','draft')]}" donesnot working

can you elaborate little bit

Once you give the menu="False", the report will not be available under the print button. Then what you have to do is that, add a normal print button inside the header of the form and print report from it. Once you add new button for print, it can be hide based on the states.

Автор

its working niyas thnak you soo much

Related Posts Відповіді Переглядів Дія
2
лип. 25
4677
2
груд. 24
7804
2
лист. 24
28587
2
трав. 24
7521
3
бер. 24
6946