Chen Jian

导航

 

2014年1月15日

摘要: 插入代码:\addons\mail\mail_mail.py #309 linethis = self.pool.get('res.users').browse(cr, uid, uid, context=context)if tools.email_split(email.get('email_to')[0])[0].split('@')[1]==this.alias_domain and tools.email_split(mail.email_from)[0].split('@')[1]!=this.alias_domain 阅读全文
posted @ 2014-01-15 19:51 Chen Jian 阅读(217) 评论(0) 推荐(0) 编辑
 

2014年1月11日

摘要: 修改代码:addons\mail\mail_thread.py #858 line #msg_dict['email_from'] = decode(message.get('from'))msg_dict['email_from'] = str(tools.email_split(decode(message.get('From')))[0]) 阅读全文
posted @ 2014-01-11 17:48 Chen Jian 阅读(205) 评论(0) 推荐(0) 编辑
 
摘要: 修改代码addons\mail\mail_thread.py #550 line#local_parts = [e.split('@')[0] for e in tools.email_split(rcpt_tos)]1 this = self.pool.get('res.users').browse(cr, uid, uid, context=context)#插入一行2 local_parts = [e.split('@')[1] == this.alias_domain and e.split('@')[0] or ' 阅读全文
posted @ 2014-01-11 16:33 Chen Jian 阅读(279) 评论(0) 推荐(0) 编辑
 

2014年1月10日

摘要: How to activate chat (im) in v8 (trunk) I know its already answered that chat (im) is only available from v8, but I have trunk running and the im and 阅读全文
posted @ 2014-01-10 10:21 Chen Jian 阅读(377) 评论(0) 推荐(0) 编辑
 
摘要: 用python安装mmseg分词包时发生了 Unable to find vcvarsall.bat 错误 Searching for mmsegReading http://pypi.python.org/simple/mmseg/Best match: mmseg 1.3.0Downloading http://pypi.python.org/packages/source/m/mms... 阅读全文
posted @ 2014-01-10 08:51 Chen Jian 阅读(317) 评论(0) 推荐(0) 编辑
 

2014年1月8日

摘要: Dosen't work...the followers don't recieve an email when the state is change. Here is the code in the document.py_track = { 'state': { 'mt_escribano_stage': lambda self, cr, uid, obj, ct... 阅读全文
posted @ 2014-01-08 12:34 Chen Jian 阅读(1028) 评论(0) 推荐(0) 编辑
 

2014年1月6日

摘要: 发送给群组 self.pool.get('mail.group').message_post(cr, uid, [1], body=_('Welcome to ! Please help him/her take1 the first steps with OpenERP!'), subtype=' 阅读全文
posted @ 2014-01-06 11:45 Chen Jian 阅读(196) 评论(0) 推荐(0) 编辑
 

2014年1月4日

摘要: 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 阅读全文
posted @ 2014-01-04 14:33 Chen Jian 阅读(288) 评论(0) 推荐(0) 编辑
 
摘要: 在一个文档的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'}... 阅读全文
posted @ 2014-01-04 11:49 Chen Jian 阅读(344) 评论(0) 推荐(0) 编辑
 

2014年1月3日

摘要: 如何固定OpenERP顶的主菜单,方便滚动至第二屏以及多屏时,快速切换主菜单 作者:广州-步科,来自OpenERP应用群() 将“addons\web\static\src\css”目录下的“base.css”进行如下更改: 在最后增加: .openerp .oe_topbar { position 阅读全文
posted @ 2014-01-03 15:34 Chen Jian 阅读(267) 评论(0) 推荐(0) 编辑