Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5745 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
aug. 22
13997
1
iul. 24
1494
1
mar. 15
5241
1
sept. 23
2175
1
aug. 19
6036