Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
7424 Ansichten

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. 

Avatar
Verwerfen
Beste Antwort

 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 

Avatar
Verwerfen