Community 보관된 메일 그룹

community@mail.odoo.com

Avatar

Related fields to account invoice cause Maximum Recursion Depth Exceeded

작성자
dxFactory EOOD, Dimitar Epitropov
- 2017년 12월 01일 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

후속 조치