Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
放在 form上面 可以显示 tree就不行 为什么
<xpath expr="//field[@name='display_name']" position="after"> <field name="priority" string="自己测试星级" widget="priority"/> </xpath>
form 上的widget 注册和 tree 上的widget 注册在两个不同地方,
form 上的在:web/static/src/js/views/form_widgets.js,
tree 上的在: web/static/src/js/views/list_view.js;
tree 上并没有注册 priority 这个widget,
如果要在tree view上使用 priority widget,
可以把 form 上的 priority widget 代码移植到 tree 上。
怎么移植 我不是很会
你好!看起来您对这段对话很感兴趣,但您还没有一个账号。
厌倦了每次访问都刷到同样的帖子?您注册账号后,您每次返回时都能精准定位到您上次浏览的位置,并可选择接收新回复通知(通过邮件或推送通知)。您还能收藏书签、为帖子顶,向社区成员表达您的欣赏。
有了你的建议,这篇帖子会更精彩哦 💗