Guewen Baconnier
29a1e80a2a
Show the current or the old value according the change's state
The previous implementation had an issue which was that when a revision was
created, the partner's value was copied to the revision change and so if the
partner was edited, the revision change could show an outdated value.
What we want to ensure is to show the actual value when the change is pending
and show the old value when the change is done/canceled.
10 years ago
Guewen Baconnier
320dcd36e4
Set fields readonly
10 years ago
Guewen Baconnier
94e1765d75
Rename model revision.behavior to revision.field.rule
10 years ago
Guewen Baconnier
261305aedb
Cache the rules to avoid to many hits to the DB
As they are read on each partner write
10 years ago
Guewen Baconnier
206d814c4a
Optimization: make only 1 call to write per revision
Instead of 1 write per change
10 years ago
Guewen Baconnier
0f6e8ee04c
Prevent to apply a revision if it has prior pending revisions
10 years ago
Guewen Baconnier
6efbd9425d
Add a state on the revision model
10 years ago
Guewen Baconnier
da0045dff5
Improve the revision user interface
10 years ago
Guewen Baconnier
b842bedd21
Refactoring: move methods from partner to revision models
10 years ago
Guewen Baconnier
f0ca39b1ab
Support main types of fields
10 years ago
Guewen Baconnier
9946a04aab
Apply changesets
10 years ago
Guewen Baconnier
402370e726
Add first tests on revisions
10 years ago
Guewen Baconnier
0822533f9e
Create a partner revision on writes
10 years ago