Triggers in OpenERP
Hi Every one,
I was wondering that, if there is any triggers concept in OpenERP. In related ERP systems such as Oracle, Triggers are very common being used on their forms.
In OpenERP, a related concept is the functional fields. However, Calculation with them is not that much perfect (as I have understood).
The reason is that, whenever, I try to save the data in a form (by pressing the Save Button), only then the values in different functional fields are calculated and saved in the corresponding fields.
Can we have some type of Pre-Trigger and Post-Trigger behavior in the sense that we can have a function which is called, as the control is being passed to the field on the form, Also, when the control is exited, we can also call another function.
I am following the following code, please help in identifying where I can change to get the aforementioned behavior:
class entrytest(osv.osv):
def _get_company_
result = {}
for rec in self.browse(cr, uid, ids, context):
return result
def _get_company_
result = {}
for rec in self.browse(cr, uid, ids, context):
return result
def _get_company_
result = {}
for rec in self.browse(cr, uid, ids, context):
return result
_name = "entrytest.
_description = "Entry Tesr Discription"
_columns = {
'name': fields.
'CGPA': fields.
'line_id1': fields.
'line_id2': fields.
'line_id3': fields.
}
entrytest()
Thanking you in advance.
Regards,
MM Alam
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask mm alam for more information if necessary.