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

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
7월 18
3848
2
10월 17
5955
1
3월 15
3764
1
4월 23
7816
1
6월 21
2310