Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to override method that generated the link to access the document in openerp

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 386
    Comment on it

    In Openerp first Override the method of function and then write the function in your own module and link the documents at of the classic form view and redirect the documents to the online quote if exists using this get_access function as show in given below code

    def get_access(self, cr, uid, ids, context=None):
    
            quote = self.browse(cr, uid, ids[0], context=context)
            if not quote.template_id:
                return super(sale_order, self).get_access_action(cr, uid, ids, context=context)
            return {
                'type': 'ir.actions.act_url',
                'url': '/quote/%s' % quote.id,
                'target': 'self',
                'res_id': quote.id,
            }
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: