when I get into write I do not see those values which were not edited in vals.get(). How do I manage to get those field values that were not edited by user and I need those fields for some validation.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
1
Responder
5547
Vistas
Hi,
use ORM method browse.
Syntax :browse(cr, uid, select, context=None, list_class=None, fields_process=None)
Example :
def write(self, cr, uid, ids, vals, context=None):
partner = self.browse(cr, uid, ids[0], context=context)
#for example get first_name
first_name=partner.first_name
# all other field partner.field_name
Thank You.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
2
ago 22
|
13735 | ||
|
1
jul 24
|
1272 | ||
|
1
mar 15
|
5038 | ||
|
1
sept 23
|
2026 | ||
|
1
ago 19
|
5884 |