How can I call the tax type on invoice_line_ids.tax_ids.
for record in self:
if record.amount_tax >= 500:
record ['x_studio_zero_rated_sales'] = record.amount_total_in_currency_signed * 0
elif record.invoice_line_ids.tax_ids == str("Zero-Rated(Goods)"):
record ['x_studio_zero_rated_sales'] = record.amount_total_in_currency_signed * 1
record ['x_studio_vatable_exempt_sales'] = record.amount_total_in_currency_signed * 1
what I'm trying to do is when a user selects "Zero-Rated (Goods)
it will automatically compute the below statement
I'm doing this on the compute field on odoo itself