Update chart of account fails when new parent is added
When new parent is added to the template of type, tax or tax code, the update process fails because it tries first to update the existing record for which the template parent may not yet exist as record.
This update process for tree must be done with two passes.