ZestyBeanz Technologies Pvt Ltd
4th Floor, Nila, Technopark
Thiruvananthapuram,
India – 695581
Phone: +91 471 4063254
Fax : +91 471 2700171
ZestyBeanz Technologies Pvt Ltd
61/3236, Manikkath Cross Road
Ravipuram, Kochi, India - 682016
Phone: +91 484 4063254
Zesty Labs
Office # 2003, Millennium Plaza Building
Sheikh Zayed Rd, Dubai, UAE
Phone: +971 4333 2222
Mobile: +971-52-7553466
ZestyBeanz Technologies GmbH
Reuterstraße 1
90408 Nürnberg
Fon: +49 911 4801 444
Fax: +49 911 4801 445
@api.depends is used for
@api.depends is used for functional fields, where the function calculate the value and store it. If the function use any other field value for calculation then we can write that field in @api.depend decorator. i.e, the fuction calculation depends up on other field value. For example, in salary calculation function we use HRA, TA, DA etc,. So here we use a functional field for salary calculation and we know that the calculation depends on HRA, TA, DA etc, so we write that fields in @api.depends decorator.
In odoo 7 we used onchange attribute in xml, that will replaced by the @api.onchange decorator in odoo8. Here we just write the decorator with field and the functionality is written below the decorator. If the field value changes in form view then the function is called.