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)
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
0
Des 15
|
7659 | |||
|
5
Nov 15
|
6595 | |||
|
0
Okt 17
|
10551 | |||
|
1
Feb 16
|
4727 | |||
|
Compute field V8
Diselesaikan
|
3
Agu 15
|
19632 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.