Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

What is @api.one and @api.depends ,how it Works and what is the defference

By
Arunagiri
on 6/3/15, 6:06 AM 709 views


https://www.odoo.com/forum/help-1/question/difference-between-api-one-and-api-multi-in-api-odoo-openerp-68209

Temur
on 6/3/15, 6:40 AM

https://www.odoo.com/documentation/8.0/reference/orm.html#module-openerp.api

Temur
on 6/3/15, 6:42 AM
0
dell merca
On 6/27/16, 3:00 AM

API stands for Application Programming Interface, is a set of routine definitions, protocols, library, and tools that assists developers in writing code that connect with other software. It describes what functionality is available, how it must be used and what formats it will accept as input or return as output. An API may be for a web-based system, operating system, or database system, and it provides facilities to develop applications for that system using a given programming language. More.... 

http://net-informations.com/q/mis/api.html

0

Temur

--Temur--
2896
| 6 5 7
Tbilisi, Georgia
--Temur--
Programmer
Temur
On 6/3/15, 7:00 AM

@api.one - automatically iterate recordset passed to function and call function for each record in recordset rather then for recordset in a whole.

@api.depends - using @api.depends you specify list of fields that your function depends on, i.e. fields you want to be available inside your function. (commonly used together with @api.onchange)


Thanks For Your answer Temur

Arunagiri
on 6/3/15, 7:08 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/3/15, 6:06 AM
Seen: 709 times
Last updated: 6/27/16, 3:00 AM