Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
9 Vastaukset
5932 Näkymät

ODOO Version 9.   When I create a quote and make it a sales order and even an invoice for a client if I want to print them they look UGLY!


Just terrible and unprofessional.  The PDF that gets emailed is terrible.  When I first started using ODOO they looked nice and professional with a table and formatting.  Not sure what changed or happened but now it is all just text.  I don't mess around in the backend of things as I don't know the code to make any changes and Live with the defaults.  How do I get my printed Invoices to look good and professional again?

Avatar
Hylkää
Paras vastaus

Take a look at this video, if it works for you please upvote the answer since I need karma to post a question.

https://youtu.be/lC9p_QJUW1Q


Avatar
Hylkää
Paras vastaus

Try this:

# any module necessary for this one to work correctly
'depends': ['base',
'report',
'account'],
Avatar
Hylkää

add 'report' in depends

Paras vastaus


Ensure you have installed the right compatible version of wkhtmltopdf, which is 0.12.1V for Odoo.

Incase if you had installed wrong version, then execute the following command to upgrade to the necessary version


sudo wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb

sudo dpkg -i wkhtmltox_0.12.1.3-1~bionic_amd64.deb

sudo apt-get install -f

sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin

sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin


Avatar
Hylkää
Paras vastaus

Try checking this thread and my answer in particular out
https://www.odoo.com/forum/help-1/question/wkhtmltopdf-report-generation-problem-report-is-generated-incorrectly-65167#answer-116474

Avatar
Hylkää
Paras vastaus

Did you install wkhtm in your server?

Avatar
Hylkää
Tekijä

Yes I have wkhtm installed. It is how I am getting them to PDF in the first place. Just no formatting. It is all just text.

Paras vastaus

Hi,

check your settings, i got sometimes this issue when my IP changed 

i have installed odoo on my laptop with dhcp 

enable developper mode and go to : settings -> system parameters -> web.base.url

change to your current ip address

as i'm working alone on my laptop, i have changed it to 127.0.0.1


save image

Avatar
Hylkää
Tekijä

My settings are set to the Domain for the site. http://domain.com

Hi,

this is what i said : http://localhost:8069 (or http://127.0.0.1:8069)

there is an app on the store that does it automatically :

https://apps.odoo.com/apps/modules/9.0/buff_report_format/