i am migrating the module from openerp 6.1 to 7.0 and i have used default get method, that is not working in openerp 7.0
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
2
Réponses
13312
Vues
def default_get(self, cr, uid, fields, context=None):
data = super(curent_object, self).default_get(cr, uid, fields, context=context)
data['field']=value
return data
This is a sample example of default_get:
Thanks@ Lakhsam Give you +1 vote,this code very helpfull me
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
2
juin 24
|
2280 | ||
|
|
4
nov. 21
|
5250 | ||
|
|
2
juin 20
|
5915 | ||
|
|
1
mai 20
|
5772 | ||
|
|
1
mai 20
|
3591 |