تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4382 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
سبتمبر 15
3771
0
أغسطس 15
4478
3
أغسطس 16
11013
0
نوفمبر 15
3703
1
مارس 15
6561