Guewen Baconnier
cdc73214a3
Do not create a changeset when both sides are empty
But have a different type (e.g. False and '')
9 years ago
Guewen Baconnier
e1d99f47a1
Adapt for inclusion in OCA
9 years ago
Guewen Baconnier
108994602e
Do not create changesets on moved contacts
As we just created the contact with a 'copy' we don't want to have a
changeset for the initialization values
9 years ago
Guewen Baconnier
d66f1c5a0e
Fix issue when applying empty many2one
9 years ago
Guewen Baconnier
8ff2ee2418
Remove reference to the model_name on rules
Because the model has been removed earlier (dead code)
9 years ago
Guewen Baconnier
cebf649760
Rules are applied also for manual edition
9 years ago
Guewen Baconnier
9b8393167e
Differentiate rules according to their origin
9 years ago
Guewen Baconnier
45ee8400f7
Store the source of a changeset
9 years ago
Guewen Baconnier
563b8ff4f0
Rename addon according to the new term: partner_changeset
9 years ago
Guewen Baconnier
e3c299828e
Rename 'revision' to 'changeset'
Because the term seems more adapted to what this module does: it does not
create revisions as one could expect with the full content of the partner,
instead it proposes changesets on a number of fields.
The renaming of the files follows in a second commit.
9 years ago
Guewen Baconnier
98e84802fc
Documentation in README
9 years ago
Guewen Baconnier
268e99594c
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.
9 years ago
Guewen Baconnier
ecc5a82a55
Set fields readonly
9 years ago
Guewen Baconnier
d715129f3b
Rename model revision.behavior to revision.field.rule
9 years ago
Guewen Baconnier
96cbf4d6fc
Optimization: make only 1 call to write per revision
Instead of 1 write per change
9 years ago
Guewen Baconnier
fd47e69496
Prevent to apply a revision if it has prior pending revisions
9 years ago
Guewen Baconnier
c6073789f1
Add a state on the revision model
9 years ago
Guewen Baconnier
e6b4296a1e
Improve the revision user interface
9 years ago
Guewen Baconnier
421abd14c2
Refactoring: move methods from partner to revision models
9 years ago
Guewen Baconnier
6ba0a83d9f
Support main types of fields
9 years ago
Guewen Baconnier
ea818e9cea
Apply changesets
9 years ago
Guewen Baconnier
4f415f67e6
Create a partner revision on writes
9 years ago