İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3373 Görünümler

How can we display payment methods in our customer reports and customer invoices by which it will be easy to tally the payments? 

Avatar
Vazgeç
En İyi Yanıt

in your custom module create a function 

class AccountMove(models.Model):
    _inherit = 'account.move'
   
    def your_function_name(self):
        bill = [
            ('ref', 'ilike', self.name),
        ]
        return str(self.env['account.payment'].search(bill, limit=10).journal_id.name)


and in your invoice report which might template_id = report_invoice_document

you can mention this code 

which will give you the payment method through which it was done

                <!--<t t-set="any_name" t-value="o.your_function_name()"/>
                <span t-esc="any_name"/>




through this you can see which payment method it was and then you modify it the way you want

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
May 24
2325
1
Oca 24
1203
1
May 23
2606
1
Şub 23
2048
0
Şub 23
1962