Community archives des diffusions par email

community@mail.odoo.com

Avatar

Related fields to account invoice cause Maximum Recursion Depth Exceeded

par
dxFactory EOOD, Dimitar Epitropov
- 01/12/2017 05:17:45

Hi guys,

Any idea why this causes maximum recursion depth to exceed and anyway to resolve it?

class Protocol(models.Model):
    _name = "bg.protocol"
    _description = "Protocol"

    name = fields.Char(string='Protocol', required=True,
                       copy=False, readonly=True, index=True, default=lambda self: _('New'))
    invoice_id = fields.Many2one(string='Invoice', required=True, copy=False)
    invoice_line_ids = fields.One2many(realted=invoice_id.invoice_line_ids, store=True, readonly=True, copy=False)

Thanks!
--
Logo

Dimitar Epitropov | Odoo developer
+359 883 356 833

www.dXFactory.eu
Consulting | Project Outsourcing | Software Development

Suiveurs