One2many context is ignored when reading parent record
With the following code:
class Championship:
__name__ = 'championship'
classification = fields.One2Man('classification', 'championship', 'Classification',
context={
'by_championsihp': True,
})
class Classification:
___name__ = 'classification'
def table_query(cls):
#Compute the classification
if Transaction().context.get('by_championship'):
# Group by championship
else:
# Championship is None
The context is not updated when reading the records, so wrong records are returned.
Full discussion: http://www.tryton.org/~irclog/2015-02-26.log.html#t2015-02-26%2011:38