Hi,
you can try this code:
from odoo import models, fields, api
class ProductProduct(models.Model):
_inherit = 'product.product'
@api.depends('list_price', 'taxes_id')
def _compute_price_with_taxes(self):
for product in self:
taxes = product.taxes_id.compute_all(product.list_price, product.currency_id, 1)
product.price_with_taxes = taxes['total_included']
price_with_taxes = fields.Float(string="Price With Taxes", compute='_compute_price_with_taxes', store=True)
XML :
<!-- views/product_views.xml -->
<odoo>
<data>
<record id="product_template_form_inherit" model="ir.ui.view">
<field name="name">product.product_template_form_inherit</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<field name="list_price" position="after">
<field name="price_with_taxes"/>
</field>
</field>
</record>
</data>
</odoo>
<template id="product_report_template">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="o">
<div class="page">
<h2><t t-esc="o.name"/></h2>
<p>Base Price: <t t-esc="o.base_price"/></p>
<p>Tax Rate: <t t-esc="o.tax_rate"/></p>
<p>Price With Taxes: <t t-esc="o.price_with_taxes"/></p>
</div>
</t>
</t>
</template>
Hope it helps