Hi All,
I have created a boolean field in sale order.
is_primary_quotation = fields.Boolean(string='Primary Quotation', default=False)
and in crm model have a realtionship.
sale_order_ids = fields.One2many('sale.order', 'opportunity_id', string='Sales Orders')
and I add below addition logic
File "D:\odoo-18.0+e.20250604(New)\odoo\fields.py", line 1232, in __get__
record.ensure_one()
File "D:\odoo-18.0+e.20250604(New)\odoo\models.py", line 6255, in ensure_one
raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: sale.order(68, 59).
how to solve this error so that I'll geting MRR and NRR value is the quote is primay quote of the lead?