Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
7432 Vizualizări

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. 

Imagine profil
Abandonează
Cel mai bun răspuns

 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 

Imagine profil
Abandonează