how to override the create function with the new api
I test this but does not work :
@api.one def create(self,vals): return super(<my_classe>,self).create(vals)
TypeError: create() takes exactly 2 arguments (1 given)
how to override the create function with the new api
I test this but does not work :
@api.one def create(self,vals): return super(<my_classe>,self).create(vals)
TypeError: create() takes exactly 2 arguments (1 given)
You use decorator @api.model.
@api.model
def create(self,vals):
....
return super(<my_classe>,self).create(vals)
Create an account today to enjoy exclusive features and engage with our awesome community!
साइन अप करें| Related Posts | Replies | डेटा देखने का तरीका | ऐक्टिविटी | |
|---|---|---|---|---|
|
0
दिस॰ 15
|
8892 | |||
|
5
नव॰ 15
|
7943 | |||
|
0
अक्तू॰ 17
|
12305 | |||
|
1
फ़र॰ 16
|
6074 | |||
|
Compute field V8
Solved
|
3
अग॰ 15
|
20692 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.