Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5043 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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)
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
sty 18
4172
0
mar 15
3778
0
cze 24
5
1
sty 23
2126
0
sie 25
152