跳至内容
菜单
此问题已终结
5 回复
9273 查看


形象
丢弃

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

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

最佳答案

@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

最佳答案

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
3月 25
1443
0
1月 25
3576
1
8月 23
14930
1
8月 23
13596
1
7月 23
10574