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

Hello everyone,

I'm using CRM module and also is installed studio. My issue is, when in an application a field is defined as required, only works when the field is type date or text, but not when is numeric. What I'm trying to do is that the value in this field be not equal to zero (0). I have trying with conditional sentences, but there is no results.

I will appreciate your comments.

Thanks


Alejandro

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

This add-on seems to be free and available for Odoo Online (it adds a widget): https://apps.odoo.com/apps/modules/16.0/entrivis_required_numeric/ 

Or you could create an Automated Rule something like this:

raise UserError('Please enter a quantity for each product or service')

Displays this error:








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

Thanks a lot, I'll test and let you know.

Ảnh đại diện
Huỷ bỏ