Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to Access old API in Odoo ?

    • 0
    • 0
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 151
    Comment on it

    If you want to access old api to new api you have to move on migration method and By default, using new API you have to work on a new RecordSet class instance by yourself. But old context and model are still available in old api. means you have to move that context and model in new api. for this below is the code
    For example code is below.

    self.pool
    self._model
    @api.returns 
    @api.model
    

    Note- With the help of above code you can get access old api in odoo.

 1 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: