tinyerp / erppeek

A versatile tool for Odoo / OpenERP. *** Forked as Odooly ⟶
https://github.com/tinyerp/odooly
Other
171 stars 99 forks source link

Implement == for Records #20

Closed florentx closed 10 years ago

florentx commented 11 years ago

It would be convenient to compare records without explicitly comparing ids.

>>> company = model('res.company').get(1)
>>> main_company = model('res.company').get('base.main_company')
>>> main_company == company
False
florentx commented 10 years ago

Done with bfc9caeec15eff8199512a17067dc9fc396c691d