root on analytic entry must be required
From https://groups.google.com/d/msgid/tryton/20170301164806.GG36856%40tetsuo
There is a unique constraint on root and origin but it does not work if root is not filled. I think it should be filled with an on_change_with and make it required (and probably added invisibly on the views).