Desdaemon / odoo-lsp

Language server for Odoo Python/JS/XML
Other
26 stars 1 forks source link

Domain in relational fields declaration uses wrong model #28

Open Desdaemon opened 4 months ago

Desdaemon commented 4 months ago
    cash_activity_ids = fields.One2many(
        string="Cash Activities",
        comodel_name='loan.activity',
        inverse_name='loan_id',
        domain=[('mode', '=', 'cash'), ('state', '=', 'applied')],
    #             ^ should be loan.activity.mode, but the current model instead
        readonly=True
    )