Skip to Content
Menu
This question has been flagged
1202 Views

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

Avatar
Discard
Related Posts Replies Views Activity
0
Mar 24
253
3
Jan 24
466
0
Dec 23
305
0
Jul 23
648
1
Nov 22
1883