تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4387 أدوات العرض

Hello,

Could you please help me how to adjust barcode print label size in Odoo V15?

Thanks 


Regards,

Zin Mar Phyo





الصورة الرمزية
إهمال
أفضل إجابة

Hello Zinmarphyo, 

Please find below code it may help you to resolve this issue,


Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

الصورة الرمزية
إهمال

You can create paperformat with specific page_height and page width yo want.
for example:
<record id="paperformat_label" model="report.paperformat">
<field name="name">Label Paperformat</field>
<field name="default" eval="True" />
<field name="format">custom</field>
<field name="page_height">85</field>
<field name="page_width">175</field>
<field name="orientation">Portrait</field>
<field name="margin_top">5</field>
<field name="margin_bottom">5</field>
<field name="margin_left">5</field>
<field name="margin_right">5</field>
<field name="header_line" eval="False" />
<field name="header_spacing">5</field>
<field name="dpi">90</field>
</record>
after then give this paperformat where you want to change the label size in the report.
<field name="paperformat_id" ref="module_name.paperformat_label" />

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 22
1639
0
أبريل 24
1315
0
ديسمبر 24
2117
1
فبراير 23
2742
0
مارس 25
2140