in invoice.line i want to change field price_subtotal
i have 10 quantity first 5 with price 10.0 second 5 with 20.0
when i save amount changes to zero
for invoice_line in self.invoice_line_ids:
if invoice_line.quantity:
invoice_line.price_subtotal = sum(list_price)
Kindly explain your question a bit as if you have quantity in different lines then odoo will add it by itself and if you are not using multiple lines then where are you specifying different prices?