Skip to Content
Menu
This question has been flagged
1 Reply
669 Views
from odoo import api, fields, models, _ 
from odoo.exceptions import ValidationError


class AccountAnalyticLine(models.Model):
_name = 'account.analytic.line.tree'
_description = 'Analytic Line'

update_id = fields.Many2one( 'account.analytic.line' )

name = fields.Char( related = 'update_id.display_name' )

and views is

 
account.analytic.line.tree
account.analytic.line.tree









My Timesheets
account.analytic.line.tree
tree,form,kanban,pivot,graph




My Timesheet
3


    raise ValueError("Invalid field %s.%s in leaf %s" % (model._name, path[0], str(leaf)))
ValueError: Invalid field account.analytic.line.tree.user_id in leaf ('user_id', '=', 2)

how to solve this

Avatar
Discard
Best Answer

HI,
Can you try to trace from which part of the code the error arise, comment the import of view file from manifest and see if you have error or not, by doing so, we can narrow done to the place of occurrence of the issue

Thanks

Avatar
Discard
Related Posts Replies Views Activity
0
Nov 24
635
2
Oct 24
618
0
Aug 24
647
0
Aug 24
577
2
Jul 24
1869