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

class SaleAdvancePaymentInv(models.TransientModel):

    _inherit = "sale.advance.payment.inv"

    @api.multi

    def _create_invoice(self, order, so_line, amount):

        inv_obj = super(SaleAdvancePaymentInv, self)._create_invoice(order, so_line, amount)

        inv_obj.write({'service_id':order.service_id.id})

This is my code.service id does from from sale order to invoice through invoiceable lines.

But when I use downpayment the service id is passed to invoice.

What is the reason behind this.?
How to pass the values through the invoiceable line?


        

الصورة الرمزية
إهمال
الكاتب

service id does not pass from sale order to invoice through invoiceable line

invoiceable lines are created when you confirm an order. You can check the function when a sale order is confirmed and make necessary changes.

الكاتب

thanks amal for info

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 18
3504
2
أكتوبر 17
5695
1
مارس 15
3567
1
أبريل 23
7546
1
يونيو 21
2098