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  | 7514 | ||
|  | 5 нояб. 15  | 6445 | ||
|  | 0 окт. 17  | 10381 | ||
|  | 1 февр. 16  | 4570 | ||
| 
            
                Compute field V8
            
            
                    Решено
            
         |  | 3 авг. 15  | 19499 |