让笔记全球化?
Make notes global?
我有一个客户想要使用笔记并让它们在所有用户中全局使用。最简单的方法是删除用户依赖性以显示给所有用户。另一种选择是在创建时添加 message_follower_ids
以添加 "general" 频道作为关注者,但我不知道值是什么。
非常感谢任何想法、想法和建议。
您可以使用两种方法实现。
可以inactive记录备注规则
<record id="note.note_note_rule_global" model="ir.rule">
<field name="name">Only followers can access a sticky notes</field>
<field name="model_id" ref="note.model_note_note"/>
<field name="active" eval="False"/>
<field name="domain_force">['|', ('user_id', '=', user.id), ('message_partner_ids', '=', user.partner_id.id)]</field>
<field name="global" eval="True"/>
<field name="perm_create" eval="False"/>
<field name="perm_unlink" eval="False"/>
</record>
如果您未激活上述记录规则,那么 odoo 将对所有用户可见注释。
在注释中添加关注者。
如果您为 一些 用户隐藏 一些 注释,那么您不能 inactive 记录规则并添加关注者。
这可能对您有所帮助。
我有一个客户想要使用笔记并让它们在所有用户中全局使用。最简单的方法是删除用户依赖性以显示给所有用户。另一种选择是在创建时添加 message_follower_ids
以添加 "general" 频道作为关注者,但我不知道值是什么。
非常感谢任何想法、想法和建议。
您可以使用两种方法实现。
可以inactive记录备注规则
<record id="note.note_note_rule_global" model="ir.rule"> <field name="name">Only followers can access a sticky notes</field> <field name="model_id" ref="note.model_note_note"/> <field name="active" eval="False"/> <field name="domain_force">['|', ('user_id', '=', user.id), ('message_partner_ids', '=', user.partner_id.id)]</field> <field name="global" eval="True"/> <field name="perm_create" eval="False"/> <field name="perm_unlink" eval="False"/> </record>
如果您未激活上述记录规则,那么 odoo 将对所有用户可见注释。
在注释中添加关注者。
如果您为 一些 用户隐藏 一些 注释,那么您不能 inactive 记录规则并添加关注者。
这可能对您有所帮助。