我创建了一个自定义模块,用于针对Odoo 10
中的员工上传一些文档。现在我正试着用“oe\u chatter”来记录日志。你知道吗
单击“保存”时,日志显示为:
Note by Administrator - 2 minutes ago
hr.documents created
如何将此更改为“已创建员工文档”?你知道吗
这是我的密码:
class HrDocuments(models.Model):
_name = 'hr.documents'
_inherit = ['mail.thread', 'ir.needaction_mixin']
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
<field name="message_ids" widget="mail_thread"/>
</div>
只需在inherit之后添加\u description=“Employee Document is created”
相关问题 更多 >
编程相关推荐