How can i sort list on a one2many field? This is the situation:
1.In class account_move some of it's field is:
...
_columns = {
...
'line_id' : fields.one2many('account_move_line','move_id','Account Move Line'),
}
2.In class account_move_line
...
_columns = {
...
move_id : fields.many2one('account_move','Account Move'),
account_id : fields.many2one('account_account','Account'),
}
My problem now is that from the view of account_move when i print its report the account_id is not sorted. So, does anyone who knows how to sort this account_id? By the way i am using Jasper Report.
Thanks for any help/suggestion.