Hello community.
Anyone knows how to disable edit option after one day a contac is created?
[('create_date','=',Datetime.now().strftime('%Y-%m-%d'))]
that doesnt work for me. Please i need help.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello community.
Anyone knows how to disable edit option after one day a contac is created?
[('create_date','=',Datetime.now().strftime('%Y-%m-%d'))]
that doesnt work for me. Please i need help.
I am curious to know the use case for this. Why do you want to do that?
To achieve it, one way can be, you can modify the write method and check create_date DateTime with current DateTime then raise an exception.
I am not convinced this is a good idea.
What if the phone number of the contact changes? Or, what if it isn't known the first day (only email is) and when it is, it can't be added to the record. What if someone makes a mistake but doesn't realize until the first quote / email / phone call with the Contact happens? The Contact calls back and says "you have my address wrong" and it can't be edited?
What business problem does making the record read-only after 24 hours fix? What decision does it help support?
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Jan 24
|
942 | ||
|
2
Jun 22
|
2625 | ||
|
2
Jun 18
|
4704 | ||
|
2
Nov 16
|
11680 | ||
|
2
Feb 24
|
10972 |