Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
5597 Visualizzazioni

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
Abbandona
Autore

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.

Autore

thanks amal for info

Post correlati Risposte Visualizzazioni Attività
1
lug 18
3776
2
ott 17
5910
1
mar 15
3724
1
apr 23
7751
1
giu 21
2238