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

In odoo 16.0 community version i found a potential bug in the backend. in models.py where the unlink()-method of the model class is defined, it calls self.env.flush_all() which leads to recomputing all fields and their constrains.

the problem with that is, that if you have a write call where there is a deletion and a creation of a new record of a one2many field and you have a computed field based on that one2many and a constraint on lets say a sum of all one2many entries, that constraint fires right after the deletion of the original write call even though there is also a creation in the same call which would contain the correct value to pass the constraint.


what to do to help fixing this?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 24
2014
1
มี.ค. 22
4793
1
มิ.ย. 21
3167
0
มี.ค. 21
1976
0
พ.ค. 20
2400