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

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 816
    Comment on it

    Api.depends will trigger the call to the decorated function if any of the fields specified in the decorator is altered by ORM or changed in the form:
    In below code you can use in your .py file.

    @api.depends('name', 'an_other_field')
    def afun(self):
    pass

    Note- When you redefine depends you have to redefine all @api.depends, so it loses some of his interest.

 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: