コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
582 ビュー
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

アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
0
11月 24
588
2
10月 24
551
0
8月 24
607
0
8月 24
539
2
7月 24
1663