Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
9096 Lượt xem

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 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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





Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 19
4275
1
thg 7 19
6997
0
thg 7 19
2471
1
thg 5 17
8743
5
thg 2 17
7169