콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5152 화면

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
4289
0
3월 15
3853
0
6월 24
5
1
1월 23
2214
3
9월 25
272