python - whats the diff bw self.browse and self.pool.get in openerp development? -


i have been working on developing module in openerp-7.0. have been using python , eclipse ide development. wanted know difference bw self.browse , self.pool.get in openerp development . plz reply me possible.

thanks. best wishes hopes suggestion

self.pool.get used singleton instance of orm model registry pool database in use. self.browse method of orm model return browse record.

as rough analogy, think of self.pool.get getting database cursor , self.browse sql select of records id. note if pass browse integer single browse record, if pass list of ids list of browse records.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -