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

I want to show a warning "The user information may be too old" if a res.partner's write_date (last modified date) is older than a year when form view is displayed on web. How can i achieve it if possible.

The warning can be placed anywhere on the web and it can be popup or fade out message, it doesn't matter. 

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

 Hi,

   we can make an alert on the form view by 

<xpath expr="//header" position="after">
<div class="alert alert-info" role="alert" style="height: 40px; margin-bottom:0px;" attrs="{'invisible':[condition]}">
The information is too old <strong></strong>.
</div>
</xpath>

  You can create a boolean field and update its values based on the condition  you have 

อวตาร
ละทิ้ง