Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4447 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ย. 15
3849
0
ส.ค. 15
4562
3
ส.ค. 16
11114
0
พ.ย. 15
3777
1
มี.ค. 15
6646