I have been concerned about this difficulty for a long time. If you are learning Odoo on your own it can be really horrible to paint yourself into a corner and have to recreate the whole project by hand to get yourself back to the point just before the misstep.
I published on GitHub a toolkit for managing the process of recreating a database from data in spreadsheets. It's a Python program that you can run in your laptop or whatever. It pulls data records from Google speadsheets and injects them into the right places in Odoo using XML-RPC.
The main point is that, using settings in a control spreadsheet, you can have complete automated control over the process of installing modules and inserting data, without programming.
I made a video series that introduces the whole environment I use so I can run it from a Chromebook or mobile phone: http://blog.warehouseman.com/2014/02/step-00-handbook-for-devops-for-openerp.html.
The last video, http://blog.warehouseman.com/2014/02/demonstrate-data-pump.html gives a really fast (<5 mins) demo of how you can use the data pump to install extra languages and provinces for a country.
The project page is GData OpenERP Data Pump
I'd love to have some collaborators to help me move it forward more quickly.
Note! -- Google has changed the interface to its spreadsheets. For the time being, the pump will work only with "old-style" spreadsheets.
I had a similar question and so far it looks like ... you can't really. The problem is that all installed modules are inside the database, so if you make a new empty one ... also all installed modules are gone. The workaround for your scenario seems to be:
- make a new empty database
- install all modules you want to use
- make a dupliacte of that still empty database and use that for testing.
- Once you go 'live' ... use the still ampty database with all modules installed
I know it is probably the wrong moment for you now (because it's too late) bit it seems that this is the way it works. I think what would be cool would be a Duplicate of the curren database without the data. I guess Oddo is constructed in a way somehow that sees the modules in the same way as your actual data.
If you don't have many entries yet you can try to either delete them handish or unckeck "active" checkbox in the objects you want to remove. When something is not "activ" anymore it still fullfils its dependenies with other parts of your database, but you don't see it anymore. Not 100% sure how "clean" that solution is
Deleting things by hand can be a lengthy process because in many cases an entry might be used somewhere else, so you need to delete these entries in the right order. For example the invoice you are referring to is used by any other part in your database which prevents the invoice from being deleted. So you need to get rid of this object first... depending on how many entries you have already this can be a tyring task, especially when you don't have really a clue where exactly your dependencies are.
As for me, for testing softwares i usually use VM, mostly i used virtualbox, there are features like snapshot and export the virtual machine where you can use to create "save points" as your testing or development goes, i know it's like using a cannon to shoot an apple, but so far it's the most foolproof way that i always use.
and do take notes, use online notes like evernote or such to keep track of your progress, it hurts when we miss certain steps to prepare the whole system.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/3/14, 3:44 AM|
|Seen: 11398 times|
|Last updated: 9/23/16, 9:59 AM|