Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
9 Odpowiedzi
5921 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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


Awatar
Odrzuć
Najlepsza odpowiedź

Try this:

# any module necessary for this one to work correctly
'depends': ['base',
'report',
'account'],
Awatar
Odrzuć

add 'report' in depends

Najlepsza odpowiedź


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


Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

Did you install wkhtm in your server?

Awatar
Odrzuć
Autor

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.

Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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/