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

Hi,

Is it possible to get all due dates computed from account.payment.term ? I want to generate all due dates for every payment.term.line. How is this possible? Thanks.

アバター
破棄
最善の回答

Hey Tessnim ZRAYGA,

May be this Will help You.


class AccountInvoice(models.Model):   
    _inherit = 'account.invoice'

    all_due_date = fields.Char(compute= '_cal_all_due_date', string='All Due Date')

    @api.multi
    def _cal_all_due_date(self):
        inv_due_date = []
        for inv in self:
            if inv.date_due:
                inv_due_date.append(inv.date_due)
アバター
破棄
関連投稿 返信 ビュー 活動
0
1月 18
4269
0
3月 15
3829
0
6月 24
5
1
1月 23
2201
1
8月 25
157