تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2212 أدوات العرض

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

الصورة الرمزية
إهمال
أفضل إجابة

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


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
ديسمبر 24
2734
2
مارس 25
1211
1
أبريل 24
3207
3
مارس 24
3848
2
فبراير 24
3464