[FIX] orm: backwards compatibility with python2.5

bzr revid: odo@openerp.com-20101006073757-exs2vdgyvg3d3m0m
This commit is contained in:
Olivier Dony
2010-10-06 09:37:57 +02:00
parent 4fa3a2fae6
commit 39d514218f
+2 -3
View File
@@ -3947,9 +3947,8 @@ class orm(orm_template):
# apply ir.rules from the parents (through _inherits)
for inherited_model in self._inherits:
apply_rule(*rule_obj.domain_get(cr, uid, inherited_model, mode, context=context),
parent_model=inherited_model,
child_object=self)
kwargs = dict(parent_model=inherited_model, child_object=self) #workaround for python2.5
apply_rule(*rule_obj.domain_get(cr, uid, inherited_model, mode, context=context), **kwargs)
def _generate_m2o_order_by(self, order_field, query):
"""