[IMP] improved onchange properly to new api and improve other code in account_analytic_line.py