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

i try 

@api.constrains as well as before save method 

try code is 

if val <= totalVal: 

 raise Warning("Just  Show Message and pass")
its show me message but don't go for save data 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

If you want to raise Warning just for information and then allow to save record, 

do not use @api.contrains and donot raise Warning that will not allow you to save record.

Instead 

You have to do that on onchange method like this way 

https://github.com/odoo/odoo/blob/4909e87cd463c3bedcf096e0535ec90d829aa491/addons/sale/models/sale.py#L373





อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Before buy i need to know the new question.

Odoo work with catchall and bouncer system mail.
Then, i see odoo send with names like bounce+1a8234932@domain.com and etc
This module, where save mails? what folder? if odoo not use static account?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ย. 19
4270
Error on Warning in Odoo 12 แก้ไขแล้ว
1
ก.ค. 19
6990
0
ก.ค. 19
2470
1
พ.ค. 17
8731
5
ก.พ. 17
7159