trytond : inconsistent behaviour of noupdate depending on the update mode
I am having a problem with the noupdate option of the xml files.
The provided module shows the problem.
It creates through xml intances of test_class_a, test_class_b and test_m2m.
The model is as follow : test_class_a <= test_m2m => test_class_b
The test_m2m instance is created with the noupdate flag set. I want to be able
to delete it after installation, and I do not want updating the module to
recreate it.
I notice the following behaviour :
- I delete the M2M link through sql (DELETE * FROM test_m2m;)
- Open the Administration => Modules => Modules entry point, mark the
test_module for upgrade, then execute the Upgrade Wizard
- Notice that the M2M link was not recreated
- Through the command line, update the module (trytond -d -c
-u test_module)
- Notice that the M2M link is back.
Files
Download | Creator | Timestamp | Type |
---|---|---|---|
test_module.tar.gz | @jcavallo | 2013-11-22 11:08:56.297000 UTC | application/gzip |
trytond.patch | @jcavallo | 2013-11-26 10:26:08.150000 UTC | text/plain |