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

Hi,

I make a project addons, and I want to access at "project.parent_id" in _constraints, but, parent_id's modifications aren't saved.

In openerp/models.py : 

         if old_vals:
            self._write(old_vals)

        # put the values of pure new-style fields into cache, and inverse them
        if new_vals:
            self._cache.update(self._convert_to_cache(new_vals))
            for key in new_vals:
                self._fields[key].determine_inverse(self)

Old value are write before news. 

Thanks

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
sept. 15
3781
0
aug. 15
4489
3
aug. 16
11039
0
nov. 15
3728
1
mar. 15
6570