Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5438 Lượt xem

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?


        

Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Tác giả

thanks amal for info

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 18
3526
2
thg 10 17
5734
1
thg 3 15
3591
1
thg 4 23
7570
1
thg 6 21
2104