I have two functional fields in OpenERP that are not stored in the db. In fact, they don’t have columns in the db. They are calculate on the fly from other tables. I want to be able to calculate their sum or difference. I saw something here (calculate sum of fields) that does that but I think it goes to the db to fetch the data. Please how can I achieve this. Is the best option to store the data in the db and pull it from there?
Share
Their can be alternate solution like, define third calculation field and use the “multi=”” and also calculate the difference and either you can save that third field in db or you can keep it dynamic if you need for later external usage.
Advantage over here will be after calculation your 2 field store diff for the third field.
Example Code Snippet is as Follow :
As i explained up again field with multi will be calculated but same function so return type will be
Regards