Skip to Content
Menu
This question has been flagged
1 Reply
3016 Views
  • in odoo12
    pos-->setting-->POS  (Name)

  • It's displayed on the checkout screen.

  • file:odoo\addons\point_of_sale\static\src\xml\pos.xml

  • <?xml version="1.0" encoding="UTF-8"?>
    <templates id="template" xml:space="preserve">

    <t t-name="Chrome">
    <div class="pos">
    <div class="pos-topheader">
    <div class="pos-branding">
    <img class="pos-logo" src="/point_of_sale/static/src/img/logo.png" alt="Logo"/>
    <!-- display the name of pos -->


  • How to display the name of pos in use

Avatar
Discard
Best Answer

The information of POS Setting or Configuration is saved in widget.pos.config . Use this code.

<?xml version="1.0" encoding="UTF-8"?>

<templates id="template" xml:space="preserve">


<t t-extend='Chrome'>

        <t t-jquery='.pos-logo' t-operation='append'>

            <t t-if="widget.pos.config">

            <span t-esc="widget.pos.config.name"/>

        </t>

        </t>

    </t>


</templates>


Above code mean display POS Setting name after pos-logo classs

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 23
12005
0
Oct 23
33
3
Oct 23
787
1
Oct 23
569
1
Aug 23
980