Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2210 Weergaven

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

Avatar
Annuleer
Beste antwoord

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


Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
dec. 24
2734
2
mrt. 25
1211
1
apr. 24
3207
3
mrt. 24
3847
2
feb. 24
3464