Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
5348 Zobrazení

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?


        

Avatar
Zrušit
Autor

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.

Autor

thanks amal for info

Related Posts Odpovědi Zobrazení Aktivita
1
čvc 18
3477
2
říj 17
5637
1
bře 15
3526
1
dub 23
7463
1
čvn 21
2058