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).
新人 对机制完全不了解 在做基础的学习中新建模块中 有一个 one2many 的字段 user_id如何根据选择的 user_id 从 hr.employee 中取得这个employee 对应的部门 电话等信息? 用来在 Tree 中显示请哪位百忙中 给一个解释 或者 思路 多谢
因为 你的 one2many 字段是 user_id (如果不出意料, 你应该是 relation-> res.users)如果你要同时显示出 该 res.users 对应的 部门 电话等. 你需要在 res.users 对象上, 再定义 相应的字段. 然后 从 res.users 关联 的 hr.employee 中查询得到.PS: 如果一个帐号(res.users) 被两个员工(hr.employee) 所关联. 那么, 这个 res.users 倒底显示哪个员工的部门与电话呢?
你好!看起来您对这段对话很感兴趣,但您还没有一个账号。
厌倦了每次访问都刷到同样的帖子?您注册账号后,您每次返回时都能精准定位到您上次浏览的位置,并可选择接收新回复通知(通过邮件或推送通知)。您还能收藏书签、为帖子顶,向社区成员表达您的欣赏。
有了你的建议,这篇帖子会更精彩哦 💗