I found the problem, The problem is in Category basemodel
https://github.com/rochacbruno/Movuca/blob/master/modules/datamodel/article.py#L172 It has fixtures which runs if category table is empty, it is needed because a "default" general category is always needed, category has self references because category can be nested (subcategories) I will try to solve the problem in a better way and commit with changes I have made in MOvuca core, now it is much simpler using the new DAL lazy_tables. --

