vettloffah / odoo-await

Odoo API client featuring async await.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to fetch invoice line nested fields?

valentindoulcier opened this issue · comments

Hello,

I need to request invoices including lines with all default detail (quantity, price_subtotal, price_total, price_unit, tax, etc.).

When I fetch account.move model, I only get invoice_line_ids and also string_to_hash properties including (when I parse the string) only a few fields (name, debit, credit, account_id, partner_id).

As the fields param is a string[], how can I specify the expected nested properties?
I took a look at the methods's implementations, but can't see how it can work.

Thank's for your help!
Cheers

  1. odoo.read('sale.order', salesorder_id, defaultSalesOrderFields)
  2. odoo.read('sale.order.line', salesorder_lines, defaultSalesOrderLineFields)