in an onchange function i need to call a field(in order to get its value) from another class . any help please ?
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
4365
Widoki
You'll find lots of examples in addons folder
Example:-
def onchange_partner_id(self, cr, uid, ids, part, context=None):
part = self.pool.get('res.partner').browse(cr, uid, part, context=context)
user = part.user_id and part.user_id.id or uid
val = {
'user_id': user
}
return {'value': val}
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ę