Print report on print button in odoo10 - reporting

Hi I am having a problem in printing the report. I have coded the report format in html and then made its module and attached it with the relevant model. and upload it on my online server
First I was receiving this error : Wkhtmltopdf failed (error code: -6). Message: The switch --header-spacing, is not support using unpatched qt, and will be ignored.The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-html, is not support using unpatched qt, and will be ignored.QXcbConnection: Could not connect to display
I have solved this problem using this following link https://gist.github.com/tejastank/45b6eba13fb38e24110218e3ce50129b
Its still not printing but keeps on creating child of the report in rec_name area, please see the attachment
and showing this error on the side
Questions:
1).How I can print the report directly from the print button without getting these errors.
One of our client give us access of there ERP for some changes, I have seen there reports when we click on print button on there ERP it downloads the PDF version pf the report and then we print it. so
2). How can we download the report in PDF formate.
I am using odoo10 not odoo8. Thanks in advance

Try this Solution :
Downlaod this -https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
and then follow the step :
(IF THE ABOUT WKHTMLTOPDF IS NOT INSTALL THAN AND THAN 1ST STEP HAVE TO DO IT)
1) sudo dpkg -i http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
2) sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
3) sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin
may be it will help you.

Try this solution:
Download wkhtmltopdf https://downloads.wkhtmltopdf.org/0.12/0.12.1/
Install *.deb file using this command, sudo dpkg -i file_name.deb
If any error occur during installation execute, sudo apt-get install -f
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
Restart odoo server and try.
Hope it will resolve your problem.

Try with this one might it ill help you..
sudo pip install Wkhtmltopdf
Hope this will solve your problem.

I tried all possible solutions, the only one worked so far is the installation using pip (pip3).

Related

Unable to install command line developer tools for "git"

While trying to open up Atom while just starting to learn PHP, I ran into this notification as soon as I opened up the app. I'm completely new to this, so I'm not very sure how this works or what I need to do. Can somebody help?
This answer solved my issue: https://stackoverflow.com/a/73725957/5396995
-> Run xcodebuild -runFirstLaunch on terminal
This is a current problem with the CommandLineTool. I found a solution at this post. So you can manually remove the CommandLineTool with the following command:
sudo rm -rf /Library/Developer/CommandLineTools
At the end you can manually add an older version of the CommandLineTool. Therefore you need to download the version from the apple download page. Otherwise if you get a message that the CommandLineTool can be updated, I would recommend to do this.

Cannot install Logentries Mac Agent on OS X Yosemite

I tried to install Logentries (Mac Agent) as instructed by the website itself. I followed the steps as instructed.
curl -O https://raw.githubusercontent.com/logentries/le/master/install/mac/install.sh
I downloaded the install.sh script and ran sudo ./install.sh. But that didn't work so I tried sudo sh install.sh.
When I do sudo le then I get same error message as marked in pic above.
I googled but didn't find the solution.
Thank you in advance.
Here is composer.json content
it's missing the formats directory.
sudo pip install formats
should resolve your issue here, then sudo sh install.sh
#user5384112 is correct, the error is being caused by a missing dependancy.
I have a PR to fix this for the Mac installer which should go live shortly.
You can install directly with by downloading with curl or download and install it. You should first look for missing dependencies before installing anything. You should have looked carefully in the documentation and error messages. The error clearly suggests you should have formats. for that do following
sudo pip install formats

Issue on installing iperf on ubuntu

I am trying to install iperf on ubuntu 11.10. I refer this site to install.
After I gave ./configure, the error would be "bash: ./configure: No such file or directory"
Then, i found out where is configure, and I have given command as ./iperf-2.0.5/configure. Then i have followed further step given by that link.
But, If I give iperf -s -D command, I am getting the error as given below:
The program 'iperf' is currently not installed. You can install it by typing:
sudo apt-get install iperf
What mistake have I done? Please point it out.
Thank you in advance!!!
You should really read what that error message said. If you simply run command:
sudo apt-get install iperf
you will get iperf installed without the need to compile it from source - at least it did for me.
That said, please consider using (or least trying) more modern equivalent of iperf, namely nuttcp. nuttcp seems to be better supported, and, according to some sources, works better.
You can install nuttcp on Ubuntu using:
sudo apt-get install nuttcp
I would have commented on mvp's answer, but unfortunately I do not have enough reputation at the moment.
First of all, to cover your question, if you are building from source like you do, after you run the "configure" script, you should:
sudo make
and then
sudo make install
in the folder that the configure script is located, so in your case in "iperf-2.0.5" folder.
Having said that, I highly suggest that you drop iperf version 2 and move to iperf version 3. As somebody that uses iperf to examine and teach protocols, I believe it follows the protocols much more closely and behaves more predictably.
You can download the source form: https://code.google.com/p/iperf/ and the instructions to install it are similar with the ones you followed and can be found in the README file in the tarball.

Is it possible to use firefox's google search bar directly from command line?

I checked through firefox's supposedly supported command line arguments and found this distinctly lacking, but I can't help but assume it must be somehow possible. Any thoughts on how? Currently running Ubuntu 11.10 if that changes anything.
If you're talking about the Developer Toolbar, it doesn't look like that has access to the built-in search. It's mainly for quick access to developer tasks (type help to see the full range of what it accesses), not for driving regular browsing tasks.
install googler using terminal in ubuntu
Step-1 : Install git(if not installed)
sudo apt-get install git
Step-2: Change the directory
cd /tmp
Step-3: Clone it from link given below using command
git clone https://github.com/jarun/googler.git
Step-4: get into googler directory
cd googler
Step-5:
sudo make install
Step-6:After that move to bash directory
cd auto-completion/bash/
Step-7:Finally copy file into etc/bash_completion.d
sudo cp googler-completion.bash /etc/bash_completion.d/
Now from terminal open googler
googler your_query
For further query refer here
use man googler for more option

Magento upgrade PEAR error

I was following the instructions at http://turnkeye.com/blog/magento-upgrade-guide/ when i was up to the command
./pear upgrade -f magento-core/Mage_All_Latest-stable
and am getting the error
WARNING: channel "connect.magentocommerce.com/core" has updated its
protocols, use "channel-update connect.magentocommerce.com/core" to
update
I have searched the web and can't find anything that refers to this.
I have tried
./pear upgrade -f channel-update connect.magentocommerce.com/core
but that does not work.
Can anyone help please?
Thanks
Just had this problem, you need to run:
./pear channel-update connect.magentocommerce.com/core
after that completes you should now be able to run:
./pear upgrade -f magento-core/Mage_All_Latest-stable
What is wrong with giving it a go using the GUI - Magento Connect Manager in Admin->System?
Assuming you have everything backed up, you can also zap public_html and reinstall 1.4 - makes no odds doing it that way as you will have lots to update including your theme, with reinstall you will keep your products, customers and orders.

Resources