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
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
4333
Widoki
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 :-)
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
3
cze 23
|
2548 | ||
|
1
wrz 22
|
2854 | ||
|
1
sie 22
|
2819 | ||
|
0
kwi 22
|
3768 | ||
|
1
sty 22
|
4673 |