Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

Odoo中重置密码BUG



  • 开启重置密码功能后提示'NoneType' object has no attribute 'get' ,调试代码发现<br />[code]def action_reset_password(self, cr, uid, ids, context=None):<br />        """ create signup token for each user, and send their signup url by email """<br />        # prepare reset password signup<br />        create_mode = bool(context.get('create_user'))<br />        res_partner = self.pool.get('res.partner')<br />        partner_ids = [user.partner_id.id for user in self.browse(cr, uid, ids, context)]<br /><br />        # no time limit for initial invitation, only for reset password<br />        expiration = False if create_mode else now(days=+1)<br /><br />        res_partner.signup_prepare(cr, uid, partner_ids, signup_type="reset", expiration=expiration, context=context)<br /><br />        if not context:<br />            context = {}[/code]<br />context为空造成的,把这个代码放前面就可以了。<br /> [code]if not context:<br />            context = {}[/code]



  • 开启重置密码功能后提示'NoneType' object has no attribute 'get' ,调试代码发现<br />[code]def action_reset_password(self, cr, uid, ids, context=None):<br />        """ create signup token for each user, and send their signup url by email """<br />        # prepare reset password signup<br />        create_mode = bool(context.get('create_user'))<br />        res_partner = self.pool.get('res.partner')<br />        partner_ids = [user.partner_id.id for user in self.browse(cr, uid, ids, context)]<br /><br />        # no time limit for initial invitation, only for reset password<br />        expiration = False if create_mode else now(days=+1)<br /><br />        res_partner.signup_prepare(cr, uid, partner_ids, signup_type="reset", expiration=expiration, context=context)<br /><br />        if not context:<br />            context = {}[/code]<br />context为空造成的,把这个代码放前面就可以了。<br /> [code]if not context:<br />            context = {}[/code]


登录后回复
 

与 Odoo 中文社区 的连接断开,我们正在尝试重连,请耐心等待