treeio/treeio — Issue #4: Currency conversion to be moved to save method
Author: funkotron
Created: 2011-12-08 18:12:07+00:00
State: open

Currently currency conversion is done via the convert helper, which is usually called in views. This is causing lots of problems, e.g. excessive update calls to the database, unsaved assigned_to, duplicated UpdateRecords, etc.

A better approach would be to do the conversion in the save() method of the related models, e.g. Opportunity, before calling super().save(). This way we don't have to send another update() to the database and we would always do the conversion when an object is updated (currently there's a lot of potential misses).