I have a module that create new tax tpinvoice for cash payment mode; it worked well on odoo15, but when i installed it on odoo16, i got this error:
ValueError: Invalid field 'exclude_from_invoice_tab' on model 'account.move.line'
when i delete the line,
'exclude_from_invoice_tab': True,
the code worked normally, and the tax appears on the journal items, but the journal not balanced (the tax amount not added to account receivable),
it seams exclud_from_invoice_tab is not exist in odoo 16, how to change; So, my code work corrctly