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' ,调试代码发现
    [code]def action_reset_password(self, cr, uid, ids, context=None):
            """ create signup token for each user, and send their signup url by email """
            # prepare reset password signup
            create_mode = bool(context.get('create_user'))
            res_partner = self.pool.get('res.partner')
            partner_ids = [user.partner_id.id for user in self.browse(cr, uid, ids, context)]

            # no time limit for initial invitation, only for reset password
            expiration = False if create_mode else now(days=+1)

            res_partner.signup_prepare(cr, uid, partner_ids, signup_type="reset", expiration=expiration, context=context)

            if not context:
                context = {}[/code]
    context为空造成的,把这个代码放前面就可以了。
    [code]if not context:
                context = {}[/code]



  • 开启重置密码功能后提示'NoneType' object has no attribute 'get' ,调试代码发现
    [code]def action_reset_password(self, cr, uid, ids, context=None):
            """ create signup token for each user, and send their signup url by email """
            # prepare reset password signup
            create_mode = bool(context.get('create_user'))
            res_partner = self.pool.get('res.partner')
            partner_ids = [user.partner_id.id for user in self.browse(cr, uid, ids, context)]

            # no time limit for initial invitation, only for reset password
            expiration = False if create_mode else now(days=+1)

            res_partner.signup_prepare(cr, uid, partner_ids, signup_type="reset", expiration=expiration, context=context)

            if not context:
                context = {}[/code]
    context为空造成的,把这个代码放前面就可以了。
    [code]if not context:
                context = {}[/code]


登录后回复
 

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