コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3446 ビュー

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

アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
5月 24
2375
1
1月 24
1241
1
5月 23
2653
1
2月 23
2100
0
2月 23
2006