Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

how to convert a module from version 6 to version 7??

By
Alcaline
on 10/20/14, 4:25 AM 1,189 views

I want to convert a module from version 6 to version 7. Can anyone here can teach me how to do that? what are the procedures on converting version 6 to version 7?? thanks in advance..
 

I think your question misses a word, maybe you mean "how to convert a //module//..."?

NUMERIGRAPHE
on 10/20/14, 5:16 AM
3
NUMERIGRAPHE
On 10/20/14, 5:20 AM

I didn't find a definitive guide, but here are the resources I found useful when we migrated from v6.0 to v7 this summer:

v6->v6.1:

  • http://aasimania.wordpress.com/2012/06/10/upgrades-in-openerp-6-1-as-compared-to-6-0-x/
  • http://fr.slideshare.net/openobject/openerp-61-framework-changes
  • http://fr.slideshare.net/abdallahsaidi1/open-erp61releasenotes

v6.1->v7:

  • https://docs.google.com/document/d/16OK0PpFID9q8cWnUr0DJa0ETnOGbYKDZHMY35PzmOwA/edit?pli=1
  • https://www.odoo.com/forum/help-1/question/difference-between-built-in-multiprocessor-mode-and-gunicorn-1671
  • http://doc.odoo.com/trunk/server/06_misc_need_action_specs/
  • https://www.odoo.com/forum/help-1/question/cant-install-any-community-module-on-openerp-v7-import-error-no-module-named-wizard-10719#10728

thanks Numerigraphe

Alcaline
on 10/20/14, 8:44 PM

Greate work...!!!

Vaibhav
on 1/22/15, 8:26 AM
2

Anil R. Kesariya

--Anil R. Kesariya--
4321
| 6 5 8
Gandhinagar, India
--Anil R. Kesariya--
ERP Consultant

Key Skill
-
Technical & Functional Expert
Anil R. Kesariya
On 11/21/14, 4:21 AM

Hello Alcaline Lee,

Here you will find the steps to migrates v6 to v7.

These are the most important steps requires.

1) Import statment in python file:

   v6 : from osv import osv, fields

   v7 : from openerp.osv import osv fields

  Note: Whatever the libaries you are going to import from server you have to write openerp first.

2)  Improve the openerp file.  (Optional)

   instead of update_xml attributes for loading xml files use data property in openerp file.

    e.g. v.6.1/6 __openerp__.py
    
    {

    .........

    'update_xml':[Your xml files]

    ...........

    }

    e.g. v.7 __openerp__.py

    {
    
    .........

    'data':[Your xml files]

    ...........

    }

3) Use osv.Model instated osv.osv while defining class. (Optional)

    eg: v6

    class your_class(osv.osv)

    eg: v7

    class your_class(osv.Model)

4) res.partner.address is removed from v7. only res.partner is used for all the contacts and address.

   If you have used res.partner.address model field in your module than you have to replace those fields with specific field. now you can directly use the address detail from res.partner model itself.

  res.partner is used for all the customers,suppliers and contacts details.


5) Instead of using osv.osv_memory you can use osv.TransientModel when you define wizard. (Optional)

    E.g.: v6
    
    class your_wizard_class_name(osv.osv_memory

    E.g.: v7

    class your_wizard_class_name(osv.TransientModel)

6) If you want to improve your User Interface (Form Views)

   you can apply bootstrap css classes in your fields, you can use all html tag in your view.


   You can also use <sheet> <header> and <footer> to Improve your view.

   you can find examples of sheet, header, footer tags in any standard module of v7.

   Note:  when you use sheet,header and footer tags you have to set version="7.0" in your <form> tag.

   eg:

    <form version="7.0">

        <header>
            You will add those fields and button which you want to set in header panel.
                </header>
        <sheet>
                      Main Body tags
        </sheet>

               <footer>
            Set your fields here those you want to set in footer
               </footer>

    </form>        

Note: You can use code of v6 in v7 where I mention Optional. but it good to have v7 coding starndard if you are migrating your module from v6 to v7.


I hope this will helps you.

 

thanks Anil Kesariya

Alcaline
on 12/13/14, 9:27 AM
0
Aravindh N
On 11/21/14, 12:17 AM

Is there is any possible way to convert OpenERP 7.0 addons/modules  to Odoo 8.0

http://abhishek-jaiswal.github.io/blog/odoov8/2014/10/18/odoo-v8.html

Soohoo
on 11/21/14, 2:59 AM
0
Shani Gill
On 11/22/14, 5:46 AM

Hello!

From a marketing perspective it is crucial to understand how many people have actually clicked through from an email received through the marketing module. However, you are only offering visibility on 'Reply' numbers. This is just not enough information to properly evaluate effectiveness of en email campaign.

Also, you are not really offering A/B testing capabilty of email distribution if my evaluation is correct.

Can you please clarify what your plans are on both accounts and provide timelines on adding these type of functionalities? Odoo would benefit in a big way from these improvements.

Regards.

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)

Stats

Asked: 10/20/14, 4:25 AM
Seen: 1189 times
Last updated: 3/16/15, 8:10 AM