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)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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 | Відповіді | Переглядів | Дія | |
|---|---|---|---|---|
|
0
груд. 15
|
7792 | |||
|
5
лист. 15
|
6692 | |||
|
0
жовт. 17
|
10768 | |||
|
1
лют. 16
|
4830 | |||
|
Compute field V8
Вирішено
|
3
серп. 15
|
19745 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.