odoo/openerp/osv
Xavier Morel 9494f21ea8 [FIX] __getattr__ implementation on BaseModel
object has no __getattr__, in the usual case super(BaseModel,
self).__getattr__ will blow up with an AttributeError (but the wrong
one).

On the other hand, if a BaseModel descendant class is used in MI
alongside a non-BM descendant (e.g. res_partner inheriting from Model
and format_address) and the non-BM descendant also implements
__getattr__, we want to forward the failed attr search to the other
__getattr__ implementation.

So check if super() has a __getattr__, call it if it does otherwise
AttributeError right there.

bzr revid: xmo@openerp.com-20130315115302-z7jla334gb9a5e43
2013-03-15 12:53:02 +01:00
..
__init__.py [REM] Deleted .apidoc lines. 2013-02-12 15:24:10 +01:00
expression.py [REM] Deleted .apidoc lines. 2013-02-12 15:24:10 +01:00
fields.py [FIX] fields.date[time]: context_today()/context_timestamp() should fallback to user TZ if context TZ is missing 2013-01-12 06:57:17 +13:00
orm.py [FIX] __getattr__ implementation on BaseModel 2013-03-15 12:53:02 +01:00
osv.py [MERGE] trunk 2013-02-13 11:56:20 +01:00
query.py [REM] Deleted .apidoc lines. 2013-02-12 15:24:10 +01:00