Skip to Content
Menu
This question has been flagged
1 Reply
7395 Views

Hi, All. I have a 58mm thermal printer. So How to convert the pos receipt layout from 80mm to 58 mm.

Thanks a million.

Avatar
Discard
Best Answer

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

   

Avatar
Discard
Author

Thanks.

Related Posts Replies Views Activity
1
Jun 23
1086
0
Jul 20
1820