Hi, All. I have a 58mm thermal printer. So How to convert the pos receipt layout from 80mm to 58 mm.
Thanks a million.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi, All. I have a 58mm thermal printer. So How to convert the pos receipt layout from 80mm to 58 mm.
Thanks a million.
Hi Jiashun Chen,
Here Module name : ABC
We should set css for pos-ticket.
(1) Add 'xyz.css' file with follow this structure ABC > static > src > css > xyz.css
Now set code in xyz.css :
.pos .pos-sale-ticket {
width: 220px;
}
(2) Now register css file path. Add 'asset_views.xml' file with follow this structure ABC > views > asset_views.xml
Now set code in asset_views.xml :
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="assets" name="point_of_sale assets" inherit_id="point_of_sale.assets">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/ABC/static/src/css/custom_pos.css"/>
</xpath>
</template>
</odoo>
(3) Now register 'asset_views.xml' file path in __manifest__.py file.
'data': [
'views/asset_views.xml',
],
Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Thanks.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Jun 23
|
1086 | ||
|
0
Jul 20
|
1820 |