摘要:
from:https://doc.openerp.com/trunk/mail/mail_openchatter_howto/A small my_task model will be used as example to explain how to use the OpenChatter feature. Being simple, it has only the following fields :a namea task responsiblea related projectclass my_task(osv.osv): _name = "my.task" _de 阅读全文
摘要:
在一个文档的state变化时,需要将变化情况告知关注用户,通过研究account.invoice的代码,发现是经过如下过程实现此功能的:1、添加一个消息阶段: paid account.invoice 2、定义state变更时的触发函数:def confirm_paid(self, cr, uid, ids, context=None): if context is None: context = {} self.write(cr, uid, ids, {'state':'paid'}... 阅读全文