Skip to Content
Menu
This question has been flagged
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
Discard
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
Discard
Related Posts Replies Views Activity
4
May 24
10071
1
Apr 24
1562
0
Nov 23
525
1
Sep 23
565
2
Aug 23
2422