I’m walking again into a situation where I want to ask the user if something extra should happen or not. The situation is this:
- The user made some changes to a record and wants to save that record.
- Tryton see some keys in the values, does some searches and determines that some extra changes are advisable to help the user.
- Tryton asks the user to agree with those changes
a. The user disagree -> Tryton only stores the changed record
b. The user agree -> Tryton also execute the extra action
You can do that with a
wizard but IMO it would be nice to have something like the
UserWarning which also returns data when the user disagree so in the backend you can react on that decision.
Any thought on this?