Hi I have created a custom module in openerp v7. I am using win7 and eclipse IDE(Python) . I have added a button to my module to give it more features. But I dont know how to add a function to that button . I dont have any idea how to declare functions in openerp and call them ?
This question has been flagged
1
Reply
7831
डेटा देखने का तरीका
'my_field': fields.function(_get_myfield, method=True, string='Reference', type='char'),
def _get_myfield(self, cr, uid, ids, field_name, arg, context=None):
#your logic declared here
return resultEnjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
साइन अप करें| Related Posts | Replies | डेटा देखने का तरीका | ऐक्टिविटी | |
|---|---|---|---|---|
|
|
1
दिस॰ 23
|
34126 | ||
|
|
0
मार्च 15
|
7087 | ||
|
|
0
मार्च 15
|
5854 | ||
|
|
1
मार्च 15
|
11948 | ||
|
|
0
मार्च 15
|
5268 |