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

I am creattng a report for label printing barcode

The template try prints the whole page where as my width=35mm and height = 11mm so how can i change the default product label report template and make changes for printing only one line as pdf for further label printing.

Awatar
Odrzuć
Najlepsza odpowiedź

Add css style on your template, YOu can write css in the template inside the <style> tag

Awatar
Odrzuć
Najlepsza odpowiedź

Hello,

i have overwrite the QWEB-Code with my completely own code and now it works.

It looks like the default report template is hidden somewhere and the right way is to change QWEB.

But in QWEB on older versions of odoo we have the template and have only to modified and now you have only a call and have to write your own template in the QWEB Code window.

For me it works but this way looks more complicated as before... if this change from template to call is recommended then please on all places and not only on products and on locations labels not.

I have some write a little documetation for me if someone have the same problem please ask me for the docu.

Regards,

Borris

Awatar
Odrzuć
Najlepsza odpowiedź

hi,

 barcode  set height and width :

like picking operation report <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', move.product_id.barcode, 600, 100)" style="width:100%;height:50px"/>

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
Product Report Rozwiązane
3
sie 25
1396
Removing Barcode Rozwiązane
3
lip 21
4549
1
mar 15
3691
0
mar 15
3453
0
mar 15
2918