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

im making a page with product lines, I want to put an caution message if all product lines do not have a description

what should I do?

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

you can use an label for it:


<field name="my_value"/>

<label string="the value is abc" attrs="{'invisible' : [('my_value','!=','abc')]}"


In your case "my_value"  sould be an function field (boolean),


An other way is to return return {'warning' : {'title' : 'Title', 'message' : 'message'}} at the create/write method


regards

อวตาร
ละทิ้ง