Sao doesn't update after on_change to one2many fields
I was trying to use on_change method on one2many fields on sao, but it doesn't be updated.
I tried to update one2many on tryton and it works fine, it works on trytond 4.4 and sao 4.4 too.
lines = fields.One2Many('report.line',
'report','Lines',
)
def on_change_district(self):
pool = Pool()
Group = pool.get('disc.group')
if self.district:
district_id = self.district.id
groups = Group.search([('district', '=', district_id)])
lines = []
if groups:
for group in groups:
Line = pool.get('report.line')
line = Line()
line.group = group.id
line.quantity = 0
lines.append(line)
self.lines = lines
else:
self.lineas = []