Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to use api returns in OpenERP(Odoo)?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 293
    Comment on it

    Api unity of returned value will return a RecordSet of specified model based on original returned value:

    In below code i have explain api_returns

    @api.returns('res.partner')
    def afun(self):
    ...
    return x # a RecordSet

    Note- And if an old API function calls a new API function it will automatically convert it into a list of ids

 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: