Skip to Content
Menú
You need to be registered to interact with the community.
This question has been flagged
1 Respondre
2900 Vistes
I am trying to add a select in the PaymentScreenWidget window, however, every time I try it, what is modified is the XY. How should I place my template so that it is injected correctly?

This is my template

<?xml version="1.0" encoding="UTF-8"?>
<templates id="ListaUsoCFDI" xml:space="preserve">
  <t t-name="myList" t-extend="PaymentScreenWidget">
    <t t-jquery=".payment-buttons" t-operation="append">
      <div class="button js_custom">
        <select class="select custom_class">
            <option value="xy">A lotta options </option>
        </select>
      </div>
    </t>
  </t>
</templates>

This is my result on the actionpad, and nothing on the paymentscreen

Odoo actionpad image


I just want the change on the paymentscreen.

I change the selector with things like

.payment-buttons:nth-of-type(2)
.payment-buttons:nth-child(2)
body > div.o_action_manager > div.pos > div.pos-content > div.window > div > div > div > div.payment-screen.screen > div > div.right-content.pc60.touch-scrollable.scrollable-y > div

And nothing works.


Please, any help, will be appreciated


Avatar
Descartar
Best Answer

Hello Felipe,

Try to extend this template: ActionpadWidget (point_of_sale/static/src/xml/pos.xml)

Put same button as customer button after the customer or beside the customer,

It'll work, I think.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
4
de maig 24
12778
1
d’abr. 24
3405
0
de nov. 23
2073
1
de set. 23
2207
2
d’ag. 23
4632