跳至內容
選單
此問題已被標幟
4450 瀏覽次數

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
9月 15
3853
0
8月 15
4565
3
8月 16
11116
0
11月 15
3778
1
3月 15
6649