In openerp 7 Is it possible to functional field output shows before save the records and Editable functional field?
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
1
Répondre
4327
Vues
I think yes.
Example on_change method:. link text
Just add any field for output in your result.
def custom_function(self, cr, uid, ids, field_name_from_xml, context=None):
# work with input data
#... your result in custom_addr
custom_addr = 'Barcelona'
return {
'value': {
'address': custom_addr # adress is must in your xml declaration in this case
}
}
but note that whenever you click save it will load data from function only
Yes, in this case not need to save the data, this works when you change the filed value... as I know :-)
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'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
3
juin 23
|
2538 | ||
|
1
sept. 22
|
2847 | ||
|
1
août 22
|
2807 | ||
|
0
avr. 22
|
3762 | ||
|
1
janv. 22
|
4655 |