from odoo import fields, models, api
class PurchaseReport(models.Model):
_inherit = 'purchase.report'
product_qty = fields.Float(string='Quantity', digits=dp.get_precision('Product Unit of Measure'), readonly=True) qty_received = fields.Float(string="Received Qty", digits=dp.get_precision('Product Unit of Measure'), readonly=True) qty_balanced = fields.Float(string="Balance", digits=dp.get_precision('Product Unit of Measure'), readonly=True)
def _select(self):
return super(PurchaseReport, self)._select() + ", (l.product_qty - l.qty_received) as qty_balanced"
Where my Balance Measure show ?????
where im wrong which point i'm missing ?