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
Post a Comment