Show message when print done odoo - odoo-8

I am facing a problem while printing from wizard, all is good that the report is printed but it does not give any popup saying that report is printed only the wizard is closed.
I want to show a popup message when the printing process is done. so i thought to have a warning but then the wizard does not closes by itself.
My code is as below:
try:
return self.env['report'].print_report(active_ids,report_name)
finally:
raise except_orm(('Information!'), ('Sent to Printer ') + str(printer.system_name))
it does popup the information but the original wizard does not closes by itself.
Please help.

When you print report at that time odoo will return report for print in URL, that's why Wizard will not close.
You can see odoo default report, system will print report but wizard will not close automatically.

Related

input is displayed twice in the console of firefox developer edition

I downloaded Firefox Developer Edition latest version and opened its Dev Tools Tab to use its console . All is right and good except that when I write , in the left side a JavaScript and click on the run button , the script is displayed again along with the result like in the following photo:
I do not want the script or input to be displayed twice . I would like to see only the result in the right side . I read the documentation in this web page :
https://developer.mozilla.org/en-US/docs/Tools
and looked in this webpage :
https://discourse.mozilla.org/c/devtools/213?utm_source=devtools/213&utm_medium=tabbar-menu
along with the similar questions section in
stackoverflow.com
However , I could not find a solution to my problem .
The output window outputs the following:
An echo of the script
Messages
Errors
Warnings
Logs
Info
Debug
Unchecking any of the Message types in the task pane will not remove the echo of the script since technically it is not an output message. The same goes for filtering, since filtering is only applied to messages in the output.
This functionality looks like it is by-design and I am sure there might be a reason why it was built in this way, but if it is an issue for you I think you can raise it in their community forums:
https://discourse.mozilla.org/

VSCode Salesforce evaluate function not working

After starting the apex replay debugger and when try to evaluate a field (right click then Debug: Evaluate), VS Code displays on the debug console the exact same text I highlighted for evaluation
e.g:
loan.LLC_BI__Product__c --> is showing up in the debug console instead of the value of LLC_BI__Product__c
can you please help - please see image attached
thanks

Watson Knowledge Studio - Unable to load document when checking conflict

When I check for conflict, after clicking Resume button under Action column, a pop-up alert shows that unable to load the document. But I can open it when viewing any annotator's list of annotation tasks.
enter image description here
I tried reproducing your situation but couldn't.

In TOAD, how to debug this error message (compiled but with compilation errors)? [duplicate]

I'm using TOAD to develop a stored function in an Oracle database. When I click the "run as script" button in TOAD, it tells me that the script was executed with 0 errors and 1 compile errors. Where do I see the specific compile error(s). I'm fairly new to TOAD so I might be missing something obvious about the interface like a tab/window to see such error messages.
You can either add SHOW ERRORS to the end of the script, which will print the error message(s) to the "script output" tab, or compile the function using the "Execute Statement" command in Toad, which will cause the errors to be displayed in a box at the bottom of the editor.
Or you can look in USER_ERRORS table afterwards
Click on Database -> Procedure Editor in top tool bar.
Paste your code in this new editor window and execute by clicking green play button on top.
All the errors will be displayed in a new window at the bottom.
2 things you can do
goto Toad, schema browser, select Invalid Objects will tell you where to look.
then load the package into the editor and select the function, right click, compile, wioll show you the errors
Another option that worked for me was to open my script in the procedure editor and compile it there.

How to get information about compile error in Oracle/TOAD

I'm using TOAD to develop a stored function in an Oracle database. When I click the "run as script" button in TOAD, it tells me that the script was executed with 0 errors and 1 compile errors. Where do I see the specific compile error(s). I'm fairly new to TOAD so I might be missing something obvious about the interface like a tab/window to see such error messages.
You can either add SHOW ERRORS to the end of the script, which will print the error message(s) to the "script output" tab, or compile the function using the "Execute Statement" command in Toad, which will cause the errors to be displayed in a box at the bottom of the editor.
Or you can look in USER_ERRORS table afterwards
Click on Database -> Procedure Editor in top tool bar.
Paste your code in this new editor window and execute by clicking green play button on top.
All the errors will be displayed in a new window at the bottom.
2 things you can do
goto Toad, schema browser, select Invalid Objects will tell you where to look.
then load the package into the editor and select the function, right click, compile, wioll show you the errors
Another option that worked for me was to open my script in the procedure editor and compile it there.

Resources