[quote="skpatel20"]
1. Create a module using Dia
2. Generate code
3. Enhance the code manually
4. Use Dia to modify something
5. Generate again WITHOUT LOOSING the manual enhancements.
[/quote]

I think there is some non-trivial way to do that, using git *1 :

a. Track any code in a git repository.
b. Generate the Dia code and place it in a branch, say, called "dia_gen"
c. Branch the generated code into another branch, say, "modifd"
d. Do any manual modifications into the "modifd" branch and commit them..

If you want to revise the Dia scheme:
e0. Ensure that the "modifd" branch is clean (everything committed)
e1. Checkout the "dia_gen" branch again.
e2. Generate the code from Dia and commit it into the "dia_gen" branch.

f. Checkout the "modifd" branch.
g. Merge with "dia_gen".
    In this stage, git will realize that "modifd" has been a patch to 
"dia_gen". It will try to reapply that patch into the new "dia_gen" code. If 
anything conflicts, it will ask you for a manual resolution.


*1 or some other SCM with good merging capabilities.




-------------------- m2f --------------------

--
http://www.openerp.com/forum/viewtopic.php?p=27181#27181

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to