Hello, So the next big thing which is worrying me alot that once i have setup everything on testing server now i am migrating my database to production server Ok it's working fine on production server too all setup nicely as it was on testing server. Now I need to make some changes in Testing server tested it got the desired output now i want to do it on production server as well I dont want make changes directly on production server Just want my testing server work to be copied there without migration of complete database.what's the solution i will have to move whole database again and restore it on production?? Yes it's a solution but it's not the smartest solution I reckon now what i want is just to move those files which are being changed during testing new things on Testing server how can I just avoid whole migration of database. Urgent plz.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
The best way is to write a module that encapsulates your changes in code and XML records.
You can then test this module in any number of databases before deploying the module in production.
Ray Carnes I tried for different solutions for moving desired changes to my production but I am failed in it I can't find any solution now How can I write a module that encapsulates my changes (I usually do changes through interface not from code) and I am using windows7 and openerpallinone setup file kindly help me in it.
Hello Ray Carnes. I am trying to develop my own custom module I am able to bring 2 new fields in (project.project) model.OK fine working. but now I want to create a field in (account.invoice) model what would I do I will have to write another custom module defining all the things about account.invoice?? please answer me :(
You can either add to your existing module or create a new one, depending on how the changes are related.
Ok in my custom_module.py I have defined my fields in _inherit="project.project" and another _inherit="account.invoice" both are written and class is closed custom_fields(); what about xml?? how will I write it in a same file ??
Have a look at some of the examples - you can do separate files or one file. A python file contains one or more classes, an XML file contains one or more records to be inserted into the database. How you manage it is really up to you. A single XML file would just contain the contents of all other XML files, but they are separated logically or for maintenance purposes.
Thanks man for your concern:) http://help.openerp.com/question/42257/finding-difficulties-in-writing-xml-files-for-my-custom-module/ kindly have a look at this question of mine if it gives you any clue about what I want it to be act like :) thank you and if you have any example of it kindly give me a link of it too :)
Thanks man for your concern:) http://help.openerp.com/question/42257/finding-difficulties-in-writing-xml-files-for-my-custom-module/ kindly have a look at this question of mine if it gives you any clue about what I want it to be act like :) thank you and if you have any example of it kindly give me a link of it too :)
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
The folder you are referring to in your question. Is it a folder in the addon folder or changes made in database such as adding customer or products to the database?
No some technical things I do like I forgot to set My CASH journal to set ALLOW CANCELLING ENTRIES.Now I recall it and now I will have to mark it in Qc server now what to do like what i must copy or transfer to my production server to make it act like my testing server hope it clears a bit..
In my case we are not supposed to do any changes in production that's the main problem that's why i am looking for the frequent transportation of changes applied in Testing server whatever we change just those particular files move to Production server that's it.
the best option is to make the changes directly in the Qc server alternatively you can export the journal(s) in question and import them into the Qc database. When you export, make sure you select all the fields.
kayins thank you for your response.But it's still a blur picture for me can you please expand it a little in terms of explanation what exactly the solution is..
If you have not setup this particular journal yet in your Qc server version already, simply open the test database where you have the journal setup and export the journal with all the information that goes with it. You will get a CSV file, save it and open the Qc database and go to the same module where the journal should be and import.
@kaynis Thank you for your assistance but brother I am getting this error whenever itry to do it No matching record found for external id '__export__.account_invoice_11_1' in field 'Period' at row 2 Get all possible values
Try this. Open the CSV file and search which column contains the same text string. If it is not the id column then try not importing that column when you do your import.