تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5054 أدوات العرض

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
يناير 18
4190
0
مارس 15
3779
0
يونيو 24
5
1
يناير 23
2128
2
أغسطس 25
41