Skip to Content

Contributors

  • Re: Suggested ways for deploying odoo through docker-odoo-project
    Hi,

    When you work in dev locally, you wouldn't really need to COPY the files in the docker image, as, as you say, there is the volume.
    However, as soon as you want to deploy, you should not use the git repository anymore.
    The workflow we use is to build the image in CI (hence the COPY), run the tests in a container started from the new image, when tests are successful, the image is pushed to a registry. From there, the image can be deployed to test/staging/production environments.

    Guewen


    On Sun, Oct 13, 2019 at 3:51 AM Tony Gu <tony@openerp.cn> wrote:
    Hi folks,

    I’m currently using camptocamp’s docker-odoo-project and akretion’s ak tool for local development and testing. It works like charm, thank you guys for building the great tools.

    I have one question though.  Why do we need either use on-build base image or COPY instruction in our own Dockerfile to copy the files and folders into container while we’ve already set the volume like `./odoo:/odoo` in the `docker-compose.yml` file. Is it a redundant job, or did I miss any point here? My guess is that when we copy everything in the container, we can build our own project specific docker image to be used in deployment process. This leads to my second question. How can we use the docker-odoo-project for deployment process? Simple ideas, suggestions or a sophisticated container orchestrating solutions are all welcomed, Thank you very much in advance.

    Best regards,

    Tony Gu 
    Skype: digitalsatori  Tel:56473822
    Mobile: 13386068213




    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Guewen Baconnier - 08:25 - 14 Oct 2019
  • Re: Runbot restart
    Thank you!

    On Sun 13 Oct 2019 at 11:57 Maxime Chambreuil <mchambreuil@opensourceintegrators.com> wrote:
    Thank you 👍

    El dom., 13 de octubre de 2019 10:37, Frederik Kramer <frederik.kramer@initos.com> escribió:
    Thanks a lot Alexandre
    
    Best and nice rest of this sunday
    
    Frederik
    
    Am Sonntag, den 13.10.2019, 11:07 +0000 schrieb Alexandre Fayolle:
    
    
    
    > Maintenance is over, recent branches are being rebuilt.
    
    
    
    > 
    
    
    
    > Have a nice sunday.
    
    
    
    > 
    
    
    
    > Alexandre
    
    
    
    > 
    
    
    
    > On 13/10/2019 09:28, Alexandre Fayolle wrote:
    
    
    
    > 
    
    
    
    
    > > Hello all,
    
    
    
    > 
    
    
    
    > > 
    
    
    
    > 
    
    
    
    > > I'm performing a server update on the runbot servers this morning.
    
    
    
    > This
    
    
    
    > 
    
    
    
    > > will require a reboot of the servers. Recent builds will be
    
    
    
    > manually
    
    
    
    > 
    
    
    
    > > rebuilt, but this will take a little time to get back.
    
    
    
    > 
    
    
    
    > > 
    
    
    
    > 
    
    
    
    > > Thanks for your patience.
    
    
    
    > 
    
    
    
    > > 
    
    
    
    > 
    
    
    
    > > 
    
    
    
    > 
    
    
    
    > 
    
    
    
    > 
    
    
    
    > -- 
    
    
    
    > Alexandre Fayolle
    
    
    
    > Chef de Projet
    
    
    
    > Tel : +33 4 58 48 20 30
    
    
    
    > 
    
    
    
    > Camptocamp France SAS
    
    
    
    > 18 rue du Lac Saint André
    
    
    
    > 73 370 Le Bourget-du-Lac
    
    
    
    > France
    
    
    
    > 
    
    
    
    > http://www.camptocamp.com
    
    
    
    > _______________________________________________
    
    
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    
    
    > Post to: mailto:contributors@odoo-community.org
    
    
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    
    
    
    -- 
    Dr.-Ing. Frederik Kramer
    Geschäftsführer
            
    initOS GmbH
    An der Eisenbahn 1
    21224 Rosengarten
            
    Phone:  +49 4105 56156-12
    Fax:    +49 4105 56156-10
    Mobil:  +49 179 3901819
            
    Email: frederik.kramer@initos.com
    
    Web:   www.initos.com
            
    Geschäftsführung:
    Dr.-Ing. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke
    
    Sitz der Gesellschaft: Rosengarten – Klecken
    Amtsgericht Tostedt, HRB 205226
    Steuer-Nr: 15/200/53247
    USt-IdNr.: DE815580155
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    --
    Moisés López Calderón
    Mobile: (+521) 477-752-22-30
    Twitter: @moylop260
    hangout: moylop260@vauxoo.com
    http://www.vauxoo.com - Odoo Gold Partner
    Twitter: @vauxoo

    by Moisés López Calderón - 02:21 - 14 Oct 2019
  • Re: Runbot restart
    Thanks.
    Good work.

    Antonio M. Vigliotti

    Mobile (+39) 342.8740910



    Il 13/10/2019 18:57, Maxime Chambreuil ha scritto:
    Thank you 👍

    El dom., 13 de octubre de 2019 10:37, Frederik Kramer <frederik.kramer@initos.com> escribió:
    Thanks a lot Alexandre
    
    Best and nice rest of this sunday
    
    Frederik
    
    Am Sonntag, den 13.10.2019, 11:07 +0000 schrieb Alexandre Fayolle:
    
    
    > Maintenance is over, recent branches are being rebuilt.
    
    
    > 
    
    
    > Have a nice sunday.
    
    
    > 
    
    
    > Alexandre
    
    
    > 
    
    
    > On 13/10/2019 09:28, Alexandre Fayolle wrote:
    
    
    > 
    
    
    > > Hello all,
    
    
    > 
    
    
    > > 
    
    
    > 
    
    
    > > I'm performing a server update on the runbot servers this morning.
    
    
    > This
    
    
    > 
    
    
    > > will require a reboot of the servers. Recent builds will be
    
    
    > manually
    
    
    > 
    
    
    > > rebuilt, but this will take a little time to get back.
    
    
    > 
    
    
    > > 
    
    
    > 
    
    
    > > Thanks for your patience.
    
    
    > 
    
    
    > > 
    
    
    > 
    
    
    > > 
    
    
    > 
    
    
    > 
    
    
    > 
    
    
    > -- 
    
    
    > Alexandre Fayolle
    
    
    > Chef de Projet
    
    
    > Tel : +33 4 58 48 20 30
    
    
    > 
    
    
    > Camptocamp France SAS
    
    
    > 18 rue du Lac Saint André
    
    
    > 73 370 Le Bourget-du-Lac
    
    
    > France
    
    
    > 
    
    
    > http://www.camptocamp.com
    
    
    > _______________________________________________
    
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    
    > Post to: mailto:contributors@odoo-community.org
    
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    
    -- 
    Dr.-Ing. Frederik Kramer
    Geschäftsführer
            
    initOS GmbH
    An der Eisenbahn 1
    21224 Rosengarten
            
    Phone:  +49 4105 56156-12
    Fax:    +49 4105 56156-10
    Mobil:  +49 179 3901819
            
    Email: frederik.kramer@initos.com
    Web:   www.initos.com
            
    Geschäftsführung:
    Dr.-Ing. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke
    
    Sitz der Gesellschaft: Rosengarten – Klecken
    Amtsgericht Tostedt, HRB 205226
    Steuer-Nr: 15/200/53247
    USt-IdNr.: DE815580155
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe



    by Antonio M. Vigliotti - 07:06 - 13 Oct 2019
  • Re: Runbot restart
    Thank you 👍

    El dom., 13 de octubre de 2019 10:37, Frederik Kramer <frederik.kramer@initos.com> escribió:
    Thanks a lot Alexandre
    
    Best and nice rest of this sunday
    
    Frederik
    
    Am Sonntag, den 13.10.2019, 11:07 +0000 schrieb Alexandre Fayolle:
    
    
    > Maintenance is over, recent branches are being rebuilt.
    
    
    > 
    
    
    > Have a nice sunday.
    
    
    > 
    
    
    > Alexandre
    
    
    > 
    
    
    > On 13/10/2019 09:28, Alexandre Fayolle wrote:
    
    
    > 
    
    
    > > Hello all,
    
    
    > 
    
    
    > > 
    
    
    > 
    
    
    > > I'm performing a server update on the runbot servers this morning.
    
    
    > This
    
    
    > 
    
    
    > > will require a reboot of the servers. Recent builds will be
    
    
    > manually
    
    
    > 
    
    
    > > rebuilt, but this will take a little time to get back.
    
    
    > 
    
    
    > > 
    
    
    > 
    
    
    > > Thanks for your patience.
    
    
    > 
    
    
    > > 
    
    
    > 
    
    
    > > 
    
    
    > 
    
    
    > 
    
    
    > 
    
    
    > -- 
    
    
    > Alexandre Fayolle
    
    
    > Chef de Projet
    
    
    > Tel : +33 4 58 48 20 30
    
    
    > 
    
    
    > Camptocamp France SAS
    
    
    > 18 rue du Lac Saint André
    
    
    > 73 370 Le Bourget-du-Lac
    
    
    > France
    
    
    > 
    
    
    > http://www.camptocamp.com
    
    
    > _______________________________________________
    
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    
    > Post to: mailto:contributors@odoo-community.org
    
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    
    -- 
    Dr.-Ing. Frederik Kramer
    Geschäftsführer
            
    initOS GmbH
    An der Eisenbahn 1
    21224 Rosengarten
            
    Phone:  +49 4105 56156-12
    Fax:    +49 4105 56156-10
    Mobil:  +49 179 3901819
            
    Email: frederik.kramer@initos.com
    Web:   www.initos.com
            
    Geschäftsführung:
    Dr.-Ing. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke
    
    Sitz der Gesellschaft: Rosengarten – Klecken
    Amtsgericht Tostedt, HRB 205226
    Steuer-Nr: 15/200/53247
    USt-IdNr.: DE815580155
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Maxime Chambreuil - 06:56 - 13 Oct 2019
  • Re: Runbot restart
    Thanks a lot Alexandre
    
    Best and nice rest of this sunday
    
    Frederik
    
    Am Sonntag, den 13.10.2019, 11:07 +0000 schrieb Alexandre Fayolle:
    
    > Maintenance is over, recent branches are being rebuilt.
    
    > 
    
    > Have a nice sunday.
    
    > 
    
    > Alexandre
    
    > 
    
    > On 13/10/2019 09:28, Alexandre Fayolle wrote:
    
    > 
    
    > > Hello all,
    
    > 
    
    > > 
    
    > 
    
    > > I'm performing a server update on the runbot servers this morning.
    
    > This
    
    > 
    
    > > will require a reboot of the servers. Recent builds will be
    
    > manually
    
    > 
    
    > > rebuilt, but this will take a little time to get back.
    
    > 
    
    > > 
    
    > 
    
    > > Thanks for your patience.
    
    > 
    
    > > 
    
    > 
    
    > > 
    
    > 
    
    > 
    
    > 
    
    > -- 
    
    > Alexandre Fayolle
    
    > Chef de Projet
    
    > Tel : +33 4 58 48 20 30
    
    > 
    
    > Camptocamp France SAS
    
    > 18 rue du Lac Saint André
    
    > 73 370 Le Bourget-du-Lac
    
    > France
    
    > 
    
    > http://www.camptocamp.com
    
    > _______________________________________________
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    > Post to: mailto:contributors@odoo-community.org
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    -- 
    Dr.-Ing. Frederik Kramer
    Geschäftsführer
            
    initOS GmbH
    An der Eisenbahn 1
    21224 Rosengarten
            
    Phone:  +49 4105 56156-12
    Fax:    +49 4105 56156-10
    Mobil:  +49 179 3901819
            
    Email: frederik.kramer@initos.com
    Web:   www.initos.com
            
    Geschäftsführung:
    Dr.-Ing. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke
    
    Sitz der Gesellschaft: Rosengarten – Klecken
    Amtsgericht Tostedt, HRB 205226
    Steuer-Nr: 15/200/53247
    USt-IdNr.: DE815580155
    
    

    by Frederik Kramer - 05:36 - 13 Oct 2019
  • Re: Runbot restart
    Maintenance is over, recent branches are being rebuilt.
    
    Have a nice sunday.
    
    Alexandre
    
    On 13/10/2019 09:28, Alexandre Fayolle wrote:
    
    > Hello all,
    
    > 
    
    > I'm performing a server update on the runbot servers this morning. This
    
    > will require a reboot of the servers. Recent builds will be manually
    
    > rebuilt, but this will take a little time to get back.
    
    > 
    
    > Thanks for your patience.
    
    > 
    
    > 
    
    
    
    -- 
    Alexandre Fayolle
    Chef de Projet
    Tel : +33 4 58 48 20 30
    
    Camptocamp France SAS
    18 rue du Lac Saint André
    73 370 Le Bourget-du-Lac
    France
    
    http://www.camptocamp.com
    

    by Alexandre Fayolle - 01:06 - 13 Oct 2019
  • Runbot restart
    Hello all,
    
    I'm performing a server update on the runbot servers this morning. This
    will require a reboot of the servers. Recent builds will be manually
    rebuilt, but this will take a little time to get back.
    
    Thanks for your patience.
    
    
    
    -- 
    Alexandre Fayolle
    Chef de Projet
    Tel : +33 4 58 48 20 30
    
    Camptocamp France SAS
    18 rue du Lac Saint André
    73 370 Le Bourget-du-Lac
    France
    
    http://www.camptocamp.com
    

    by Alexandre Fayolle - 09:31 - 13 Oct 2019
  • Suggested ways for deploying odoo through docker-odoo-project
    Hi folks,

    I’m currently using camptocamp’s docker-odoo-project and akretion’s ak tool for local development and testing. It works like charm, thank you guys for building the great tools.

    I have one question though.  Why do we need either use on-build base image or COPY instruction in our own Dockerfile to copy the files and folders into container while we’ve already set the volume like `./odoo:/odoo` in the `docker-compose.yml` file. Is it a redundant job, or did I miss any point here? My guess is that when we copy everything in the container, we can build our own project specific docker image to be used in deployment process. This leads to my second question. How can we use the docker-odoo-project for deployment process? Simple ideas, suggestions or a sophisticated container orchestrating solutions are all welcomed, Thank you very much in advance.

    Best regards,

    Tony Gu 
    Skype: digitalsatori  Tel:56473822
    Mobile: 13386068213





    by Tony - 03:50 - 13 Oct 2019
  • Re: Accounting: writing on debit/credit fields
    FYI, this should be fixed in https://github.com/odoo/odoo/pull/37398.

    Regards.

    by Pedro M. Baeza - 02:21 - 12 Oct 2019
  • Re: New library to migrate Odoo module code "odoo-migrate"
    +1 stephane comment about standalone
    +1 about resist feature creep

    Hasn't there been some proposal going around to have OCA-libs as a Github orga for those standalone projects to be hosted / promoted?

    There is python-xmlsig and python-xades from Eric and many others too.

    El vie., 11 oct. 2019, 9:16 a.m., Simone Orsi <simahawk@gmail.com> escribió:
    Nice! Thanks Sylvain.

    +1 for standalone project as well :)

    On Fri, Oct 11, 2019 at 2:57 PM Stéphane Bidoul <stephane.bidoul@acsone.eu> wrote:
    +1 to keep it a standalone project. I'd rather see the good parts of OCA/maintainer-tools become standalone projects too.

    Regarding growing features, be strong Sylvain, resist scope creep :) Do one thing and do it well!

    -sbi


    On Fri, Oct 11, 2019 at 2:47 PM David Arnold <dar@xoe.solutions> wrote:
    Re: Do you plan to grow features or is it limited to make those repetitive tasks more scriptable?

    On Fri, Oct 11, 2019 at 3:12 AM David Beal <david.beal@akretion.com> wrote:
    génial


    David BEAL - akretion.com
    Chef de projet
    Odoo Développement / Intégration


    Le jeu. 10 oct. 2019 à 18:12, Sylvain LE GAL <sylvain.legal@grap.coop> a écrit :
    Dear OCA Contributors,

    I am working on a migration from 8.0 to 12.0.
    For that purpose, I had to migrate a lot a modules. (about 50 OCA modules, and >100 custom modules)
    A lot of changes are very recurrent, and automatable. (removing python2 header, renaming __openerp__.py into __manifest__.py, changing import).

    I began to make some scripts, and finally began to create a new python3 library, to make that work. The name is "odoo-migrate" and the description is available here https://pypi.org/project/odoo-migrate/. and can be installed with the command
    pip3 install odoo-migrate

    Once installed, you can run the following command (other options are available)
    odoo-migrate -m my_module_name -i 8.0 -t 12.0

    It is based on the OCA recommendations available on this wiki.
    In addition to performing recurring operations,
    - the library also execute the weird format-patch command which I never remember (if asked).
    - it displays some warning if some patterns are found. (for example, if "ir.values" is found in a module 11+)
    - it calls black for recent version
    - it realize commits

    1) If you're interested by such tool, you can review or test this project.

    2) If you want to contribute, feel free, especially if you love regular expressions. It is still WIP, and there is a lot of work to do, like making change in xml file. (replacing openerp + data by odoo tag). Also adding test and plug with travis could be great.

    3) if some OCA members are OK, I can transfer this project under OCA umbrella.

    thank you for your feedback.

    kind regards.


    Sylvain LE GAL - Twitter
    GRAP - Service informatique (Groupement Régional Alimentaire de Proximité)
    Site Web | FramaSphere | Facebook
    3 Grande rue des Feuillants, 69001 Lyon
    Bureau : (+33) 09.72.32.33.17 - Astreinte : (+33) 06.81.85.61.43
    Member of the OCA (Odoo Community Association)

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by dar - 12:41 - 12 Oct 2019
  • Re: New library to migrate Odoo module code "odoo-migrate"
    Nice! Thanks Sylvain.

    +1 for standalone project as well :)

    On Fri, Oct 11, 2019 at 2:57 PM Stéphane Bidoul <stephane.bidoul@acsone.eu> wrote:
    +1 to keep it a standalone project. I'd rather see the good parts of OCA/maintainer-tools become standalone projects too.

    Regarding growing features, be strong Sylvain, resist scope creep :) Do one thing and do it well!

    -sbi


    On Fri, Oct 11, 2019 at 2:47 PM David Arnold <dar@xoe.solutions> wrote:
    Re: Do you plan to grow features or is it limited to make those repetitive tasks more scriptable?

    On Fri, Oct 11, 2019 at 3:12 AM David Beal <david.beal@akretion.com> wrote:
    génial


    David BEAL - akretion.com
    Chef de projet
    Odoo Développement / Intégration


    Le jeu. 10 oct. 2019 à 18:12, Sylvain LE GAL <sylvain.legal@grap.coop> a écrit :
    Dear OCA Contributors,

    I am working on a migration from 8.0 to 12.0.
    For that purpose, I had to migrate a lot a modules. (about 50 OCA modules, and >100 custom modules)
    A lot of changes are very recurrent, and automatable. (removing python2 header, renaming __openerp__.py into __manifest__.py, changing import).

    I began to make some scripts, and finally began to create a new python3 library, to make that work. The name is "odoo-migrate" and the description is available here https://pypi.org/project/odoo-migrate/. and can be installed with the command
    pip3 install odoo-migrate

    Once installed, you can run the following command (other options are available)
    odoo-migrate -m my_module_name -i 8.0 -t 12.0

    It is based on the OCA recommendations available on this wiki.
    In addition to performing recurring operations,
    - the library also execute the weird format-patch command which I never remember (if asked).
    - it displays some warning if some patterns are found. (for example, if "ir.values" is found in a module 11+)
    - it calls black for recent version
    - it realize commits

    1) If you're interested by such tool, you can review or test this project.

    2) If you want to contribute, feel free, especially if you love regular expressions. It is still WIP, and there is a lot of work to do, like making change in xml file. (replacing openerp + data by odoo tag). Also adding test and plug with travis could be great.

    3) if some OCA members are OK, I can transfer this project under OCA umbrella.

    thank you for your feedback.

    kind regards.


    Sylvain LE GAL - Twitter
    GRAP - Service informatique (Groupement Régional Alimentaire de Proximité)
    Site Web | FramaSphere | Facebook
    3 Grande rue des Feuillants, 69001 Lyon
    Bureau : (+33) 09.72.32.33.17 - Astreinte : (+33) 06.81.85.61.43
    Member of the OCA (Odoo Community Association)

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Simone Orsi - 04:16 - 11 Oct 2019
  • Re: New library to migrate Odoo module code "odoo-migrate"
    +1 to keep it a standalone project. I'd rather see the good parts of OCA/maintainer-tools become standalone projects too.

    Regarding growing features, be strong Sylvain, resist scope creep :) Do one thing and do it well!

    -sbi


    On Fri, Oct 11, 2019 at 2:47 PM David Arnold <dar@xoe.solutions> wrote:
    Re: Do you plan to grow features or is it limited to make those repetitive tasks more scriptable?

    On Fri, Oct 11, 2019 at 3:12 AM David Beal <david.beal@akretion.com> wrote:
    génial


    David BEAL - akretion.com
    Chef de projet
    Odoo Développement / Intégration


    Le jeu. 10 oct. 2019 à 18:12, Sylvain LE GAL <sylvain.legal@grap.coop> a écrit :
    Dear OCA Contributors,

    I am working on a migration from 8.0 to 12.0.
    For that purpose, I had to migrate a lot a modules. (about 50 OCA modules, and >100 custom modules)
    A lot of changes are very recurrent, and automatable. (removing python2 header, renaming __openerp__.py into __manifest__.py, changing import).

    I began to make some scripts, and finally began to create a new python3 library, to make that work. The name is "odoo-migrate" and the description is available here https://pypi.org/project/odoo-migrate/. and can be installed with the command
    pip3 install odoo-migrate

    Once installed, you can run the following command (other options are available)
    odoo-migrate -m my_module_name -i 8.0 -t 12.0

    It is based on the OCA recommendations available on this wiki.
    In addition to performing recurring operations,
    - the library also execute the weird format-patch command which I never remember (if asked).
    - it displays some warning if some patterns are found. (for example, if "ir.values" is found in a module 11+)
    - it calls black for recent version
    - it realize commits

    1) If you're interested by such tool, you can review or test this project.

    2) If you want to contribute, feel free, especially if you love regular expressions. It is still WIP, and there is a lot of work to do, like making change in xml file. (replacing openerp + data by odoo tag). Also adding test and plug with travis could be great.

    3) if some OCA members are OK, I can transfer this project under OCA umbrella.

    thank you for your feedback.

    kind regards.


    Sylvain LE GAL - Twitter
    GRAP - Service informatique (Groupement Régional Alimentaire de Proximité)
    Site Web | FramaSphere | Facebook
    3 Grande rue des Feuillants, 69001 Lyon
    Bureau : (+33) 09.72.32.33.17 - Astreinte : (+33) 06.81.85.61.43
    Member of the OCA (Odoo Community Association)

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Stéphane Bidoul - 02:55 - 11 Oct 2019
  • Re: New library to migrate Odoo module code "odoo-migrate"
    Re: Do you plan to grow features or is it limited to make those repetitive tasks more scriptable?

    On Fri, Oct 11, 2019 at 3:12 AM David Beal <david.beal@akretion.com> wrote:
    génial


    David BEAL - akretion.com
    Chef de projet
    Odoo Développement / Intégration


    Le jeu. 10 oct. 2019 à 18:12, Sylvain LE GAL <sylvain.legal@grap.coop> a écrit :
    Dear OCA Contributors,

    I am working on a migration from 8.0 to 12.0.
    For that purpose, I had to migrate a lot a modules. (about 50 OCA modules, and >100 custom modules)
    A lot of changes are very recurrent, and automatable. (removing python2 header, renaming __openerp__.py into __manifest__.py, changing import).

    I began to make some scripts, and finally began to create a new python3 library, to make that work. The name is "odoo-migrate" and the description is available here https://pypi.org/project/odoo-migrate/. and can be installed with the command
    pip3 install odoo-migrate

    Once installed, you can run the following command (other options are available)
    odoo-migrate -m my_module_name -i 8.0 -t 12.0

    It is based on the OCA recommendations available on this wiki.
    In addition to performing recurring operations,
    - the library also execute the weird format-patch command which I never remember (if asked).
    - it displays some warning if some patterns are found. (for example, if "ir.values" is found in a module 11+)
    - it calls black for recent version
    - it realize commits

    1) If you're interested by such tool, you can review or test this project.

    2) If you want to contribute, feel free, especially if you love regular expressions. It is still WIP, and there is a lot of work to do, like making change in xml file. (replacing openerp + data by odoo tag). Also adding test and plug with travis could be great.

    3) if some OCA members are OK, I can transfer this project under OCA umbrella.

    thank you for your feedback.

    kind regards.


    Sylvain LE GAL - Twitter
    GRAP - Service informatique (Groupement Régional Alimentaire de Proximité)
    Site Web | FramaSphere | Facebook
    3 Grande rue des Feuillants, 69001 Lyon
    Bureau : (+33) 09.72.32.33.17 - Astreinte : (+33) 06.81.85.61.43
    Member of the OCA (Odoo Community Association)

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by dar - 02:46 - 11 Oct 2019
  • Re: New library to migrate Odoo module code "odoo-migrate"
    génial


    David BEAL - akretion.com
    Chef de projet
    Odoo Développement / Intégration


    Le jeu. 10 oct. 2019 à 18:12, Sylvain LE GAL <sylvain.legal@grap.coop> a écrit :
    Dear OCA Contributors,

    I am working on a migration from 8.0 to 12.0.
    For that purpose, I had to migrate a lot a modules. (about 50 OCA modules, and >100 custom modules)
    A lot of changes are very recurrent, and automatable. (removing python2 header, renaming __openerp__.py into __manifest__.py, changing import).

    I began to make some scripts, and finally began to create a new python3 library, to make that work. The name is "odoo-migrate" and the description is available here https://pypi.org/project/odoo-migrate/. and can be installed with the command
    pip3 install odoo-migrate

    Once installed, you can run the following command (other options are available)
    odoo-migrate -m my_module_name -i 8.0 -t 12.0

    It is based on the OCA recommendations available on this wiki.
    In addition to performing recurring operations,
    - the library also execute the weird format-patch command which I never remember (if asked).
    - it displays some warning if some patterns are found. (for example, if "ir.values" is found in a module 11+)
    - it calls black for recent version
    - it realize commits

    1) If you're interested by such tool, you can review or test this project.

    2) If you want to contribute, feel free, especially if you love regular expressions. It is still WIP, and there is a lot of work to do, like making change in xml file. (replacing openerp + data by odoo tag). Also adding test and plug with travis could be great.

    3) if some OCA members are OK, I can transfer this project under OCA umbrella.

    thank you for your feedback.

    kind regards.


    Sylvain LE GAL - Twitter
    GRAP - Service informatique (Groupement Régional Alimentaire de Proximité)
    Site Web | FramaSphere | Facebook
    3 Grande rue des Feuillants, 69001 Lyon
    Bureau : (+33) 09.72.32.33.17 - Astreinte : (+33) 06.81.85.61.43
    Member of the OCA (Odoo Community Association)

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by David BEAL - 10:10 - 11 Oct 2019
  • Re: New library to migrate Odoo module code "odoo-migrate"
    Awesome idea, Sylvain! 
    
    +1 for the renaming as Pedro suggested and integration in  the
    maintainer-tools repo.
    
    Cheers and nice weekend
    
    Frederik
    
    Am Freitag, den 11.10.2019, 07:21 +0000 schrieb Pedro M. Baeza
    (Tecnativa):
    
    > Hi, Sylvain,
    
    > 
    
    > Excelent initiative! I think we can move it to OCA, but a better name
    
    > would be odoo-oca-module-migrator, as it avoids confusion with the
    
    > migration process through OpenUpgrade or similar, and it also ties it
    
    > to OCA specific process.
    
    > 
    
    > I think this can't be inside maintainer-tools, as it would require
    
    > specific folder structure for pypi publishing.
    
    > 
    
    > Regards.
    
    > _______________________________________________
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    > Post to: mailto:contributors@odoo-community.org
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    -- 
    Dr.-Ing. Frederik Kramer
    Geschäftsführer
            
    initOS GmbH
    An der Eisenbahn 1
    21224 Rosengarten
            
    Phone:  +49 4105 56156-12
    Fax:    +49 4105 56156-10
    Mobil:  +49 179 3901819
            
    Email: frederik.kramer@initos.com
    Web:   www.initos.com
            
    Geschäftsführung:
    Dr.-Ing. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke
    
    Sitz der Gesellschaft: Rosengarten – Klecken
    Amtsgericht Tostedt, HRB 205226
    Steuer-Nr: 15/200/53247
    USt-IdNr.: DE815580155
    
    

    by Frederik Kramer - 09:41 - 11 Oct 2019
  • Re: New library to migrate Odoo module code "odoo-migrate"
    Hi, Sylvain,

    Excelent initiative! I think we can move it to OCA, but a better name would be odoo-oca-module-migrator, as it avoids confusion with the migration process through OpenUpgrade or similar, and it also ties it to OCA specific process.

    I think this can't be inside maintainer-tools, as it would require specific folder structure for pypi publishing.

    Regards.

    by Pedro M. Baeza - 09:20 - 11 Oct 2019
  • Re: New library to migrate Odoo module code "odoo-migrate"
    This is very useful, thank you.


    On Thu, 10 Oct 2019 at 18:12, Sylvain LE GAL <sylvain.legal@grap.coop> wrote:
    Dear OCA Contributors,

    I am working on a migration from 8.0 to 12.0.
    For that purpose, I had to migrate a lot a modules. (about 50 OCA modules, and >100 custom modules)
    A lot of changes are very recurrent, and automatable. (removing python2 header, renaming __openerp__.py into __manifest__.py, changing import).

    I began to make some scripts, and finally began to create a new python3 library, to make that work. The name is "odoo-migrate" and the description is available here https://pypi.org/project/odoo-migrate/. and can be installed with the command
    pip3 install odoo-migrate

    Once installed, you can run the following command (other options are available)
    odoo-migrate -m my_module_name -i 8.0 -t 12.0

    It is based on the OCA recommendations available on this wiki.
    In addition to performing recurring operations,
    - the library also execute the weird format-patch command which I never remember (if asked).
    - it displays some warning if some patterns are found. (for example, if "ir.values" is found in a module 11+)
    - it calls black for recent version
    - it realize commits

    1) If you're interested by such tool, you can review or test this project.

    2) If you want to contribute, feel free, especially if you love regular expressions. It is still WIP, and there is a lot of work to do, like making change in xml file. (replacing openerp + data by odoo tag). Also adding test and plug with travis could be great.

    3) if some OCA members are OK, I can transfer this project under OCA umbrella.

    thank you for your feedback.

    kind regards.


    Sylvain LE GAL - Twitter
    GRAP - Service informatique (Groupement Régional Alimentaire de Proximité)
    Site Web | FramaSphere | Facebook
    3 Grande rue des Feuillants, 69001 Lyon
    Bureau : (+33) 09.72.32.33.17 - Astreinte : (+33) 06.81.85.61.43
    Member of the OCA (Odoo Community Association)

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe



    --

    by Lorenzo Battistini. - 08:35 - 11 Oct 2019
  • Re: New library to migrate Odoo module code "odoo-migrate"
    Really great initiative +1 for sure

    On Thu, Oct 10, 2019, 11:12 PM Sylvain LE GAL <sylvain.legal@grap.coop> wrote:
    Dear OCA Contributors,

    I am working on a migration from 8.0 to 12.0.
    For that purpose, I had to migrate a lot a modules. (about 50 OCA modules, and >100 custom modules)
    A lot of changes are very recurrent, and automatable. (removing python2 header, renaming __openerp__.py into __manifest__.py, changing import).

    I began to make some scripts, and finally began to create a new python3 library, to make that work. The name is "odoo-migrate" and the description is available here https://pypi.org/project/odoo-migrate/. and can be installed with the command
    pip3 install odoo-migrate

    Once installed, you can run the following command (other options are available)
    odoo-migrate -m my_module_name -i 8.0 -t 12.0

    It is based on the OCA recommendations available on this wiki.
    In addition to performing recurring operations,
    - the library also execute the weird format-patch command which I never remember (if asked).
    - it displays some warning if some patterns are found. (for example, if "ir.values" is found in a module 11+)
    - it calls black for recent version
    - it realize commits

    1) If you're interested by such tool, you can review or test this project.

    2) If you want to contribute, feel free, especially if you love regular expressions. It is still WIP, and there is a lot of work to do, like making change in xml file. (replacing openerp + data by odoo tag). Also adding test and plug with travis could be great.

    3) if some OCA members are OK, I can transfer this project under OCA umbrella.

    thank you for your feedback.

    kind regards.


    Sylvain LE GAL - Twitter
    GRAP - Service informatique (Groupement Régional Alimentaire de Proximité)
    Site Web | FramaSphere | Facebook
    3 Grande rue des Feuillants, 69001 Lyon
    Bureau : (+33) 09.72.32.33.17 - Astreinte : (+33) 06.81.85.61.43
    Member of the OCA (Odoo Community Association)

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Kitti Upariphutthiphong - 08:26 - 11 Oct 2019
  • Re: New library to migrate Odoo module code "odoo-migrate"
    Very cool! I'll put that straight into DockeryOdoo!
    Do you plan to grow features or is it limited to make those repetitive tasks more scriptable?

    I have worked on a complement, the dodoo-migrator (https://pypi.org/project/dodoo-migrator/)
    which combines ideas of marabunta with the leaked (and patched) odoo internal migration library.

    On Thu, Oct 10, 2019 at 11:32 AM Alexandre Fayolle <alexandre.fayolle@camptocamp.com> wrote:
    Wow! Thanks Sylvain, this is definitely a very nice helper tool. I for
    one would love to see this in OCA/maintainers-tools if people are ok
    with this.
    
    It's already installed and tested locally :-D
    
    🙏
    
    Alexandre
    
    On 10/10/2019 18:12, Sylvain LE GAL wrote:
    
    
    > Dear OCA Contributors,
    
    
    > 
    
    
    > I am working on a migration from 8.0 to 12.0.
    
    
    > For that purpose, I had to migrate a lot a modules. (about 50 OCA
    
    
    > modules, and >100 custom modules)
    
    
    > A lot of changes are very recurrent, and automatable. (removing python2
    
    
    > header, renaming __openerp__.py into __manifest__.py, changing import).
    
    
    > 
    
    
    > I began to make some scripts, and finally began to create a new python3
    
    
    > library, to make that work. The name is "odoo-migrate" and the
    
    
    > description is available here https://pypi.org/project/odoo-migrate/.
    
    
    > and can be installed with the command /
    
    
    > /
    
    
    > /pip3 install odoo-migrate/
    
    
    > 
    
    
    > Once installed, you can run the following command (other options are
    
    
    > available)/
    
    
    > /
    
    
    > /odoo-migrate -m my_module_name -i 8.0 -t 12.0/
    
    
    > 
    
    
    > It is based on the OCA recommendations available on this wiki
    
    
    > .
    
    
    > In addition to performing recurring operations,
    
    
    > - the library also execute the weird format-patch
    
    
    > 
    
    
    > commandwhich I never remember(if asked).
    
    
    > - it displays some warning if some patterns are found. (for example, if
    
    
    > "ir.values" is found in a module 11+)
    
    
    > - it calls black for recent version
    
    
    > - it realize commits
    
    
    > 
    
    
    > 1) If you're interested by such tool, you can review or test this project.
    
    
    > 
    
    
    > 2) If you want to contribute, feel free, especially if you love regular
    
    
    > expressions.*It is still WIP*, and there is a lot of work**to do, like
    
    
    > making change in xml file. (replacing openerp + data by odoo tag). Also
    
    
    > adding test and plug with travis could be great.
    
    
    > 
    
    
    > 3) if some OCA members are OK, I can transfer this project under OCA
    
    
    > umbrella.
    
    
    > 
    
    
    > thank you for your feedback.
    
    
    > 
    
    
    > kind regards.
    
    
    > 
    
    
    > 
    
    
    > *Sylvain LE GAL - Twitter *
    
    
    > *GRAP - Service informatique (Groupement Régional Alimentaire de Proximité)*
    
    
    > Site Web  | FramaSphere
    
    
    > |
    
    
    > Facebook 
    > 3 Grande rue des Feuillants, 69001 Lyon
    > Bureau : (+33) 09.72.32.33.17 - Astreinte : (+33) 06.81.85.61.43
    > *Member of the OCA (Odoo Community Association)
    > *
    > Web Site  | Twitter
    > 
    
    
    > 
    
    
    > _______________________________________________
    
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    
    > Post to: mailto:contributors@odoo-community.org
    
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    
    > 
    
    
    
    
    -- 
    Alexandre Fayolle
    Chef de Projet
    Tel : +33 4 58 48 20 30
    
    Camptocamp France SAS
    18 rue du Lac Saint André
    73 370 Le Bourget-du-Lac
    France
    
    http://www.camptocamp.com
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by dar - 06:41 - 10 Oct 2019
  • Re: New library to migrate Odoo module code "odoo-migrate"
    Wow, thank you it is a great contribution. I will try it in the following days.

    +1 to be transferred to the OCA umbrella.


    El jue., 10 oct. 2019 a las 12:12, Sylvain LE GAL (<sylvain.legal@grap.coop>) escribió:
    Dear OCA Contributors,

    I am working on a migration from 8.0 to 12.0.
    For that purpose, I had to migrate a lot a modules. (about 50 OCA modules, and >100 custom modules)
    A lot of changes are very recurrent, and automatable. (removing python2 header, renaming __openerp__.py into __manifest__.py, changing import).

    I began to make some scripts, and finally began to create a new python3 library, to make that work. The name is "odoo-migrate" and the description is available here https://pypi.org/project/odoo-migrate/. and can be installed with the command
    pip3 install odoo-migrate

    Once installed, you can run the following command (other options are available)
    odoo-migrate -m my_module_name -i 8.0 -t 12.0

    It is based on the OCA recommendations available on this wiki.
    In addition to performing recurring operations,
    - the library also execute the weird format-patch command which I never remember (if asked).
    - it displays some warning if some patterns are found. (for example, if "ir.values" is found in a module 11+)
    - it calls black for recent version
    - it realize commits

    1) If you're interested by such tool, you can review or test this project.

    2) If you want to contribute, feel free, especially if you love regular expressions. It is still WIP, and there is a lot of work to do, like making change in xml file. (replacing openerp + data by odoo tag). Also adding test and plug with travis could be great.

    3) if some OCA members are OK, I can transfer this project under OCA umbrella.

    thank you for your feedback.

    kind regards.


    Sylvain LE GAL - Twitter
    GRAP - Service informatique (Groupement Régional Alimentaire de Proximité)
    Site Web | FramaSphere | Facebook
    3 Grande rue des Feuillants, 69001 Lyon
    Bureau : (+33) 09.72.32.33.17 - Astreinte : (+33) 06.81.85.61.43
    Member of the OCA (Odoo Community Association)

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Manuel A. Márquez - 06:36 - 10 Oct 2019