Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2217 Widoki

Hello,


I'm want to edit the payment widget on invoices.

I'm talking about the lines that is saying "paid on dd/mm/yyyy 1000€".

I would like to have the payment method in this line, like this "paid on dd/mm/yyyy credit card 1000€".


How could I edit it with Odoo studio or with a custom module please ?

I'm using Odoo SH v16.

Thank you all for your help in advance !


Aymerick

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

Hi Aymerick,

The 'paid on dd/mm/yyyy' information is a component of a widget referred to as 'payment'. If you find it necessary to make modifications to this aspect, it's advisable to utilize a custom module designed for inheriting the widget view known as 'account.AccountPaymentField'. Here's a sample approach:

xml

<t t-inherit='account.AccountPaymentField'>

    <xpath expr='//i[hasclass('o_payment_label')]' position='replace'>

        <i class="o_field_widget text-start o_payment_label">Paid on <t t-esc="line.date">Credit Card</t></i>

    </xpath>

</t>

Please keep in mind that adjustments might be required depending on the version of Odoo you're working with. If you encounter any difficulties or require further assistance, don't hesitate to ask.


Hope it helps


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
gru 24
2734
2
mar 25
1211
1
kwi 24
3209
3
mar 24
3850
2
lut 24
3464