Small re-factoring
Not try to   priceHistoryTruncate if there is no model
Merge branch 'dev' of github.com:bgerp/bgerp into dev