Skip to Content
  • Escape python lint
    HI all,

    I've done this PR

    Yes a non academic one.
    I searched a way to escape ring bell from here 


    As I understand, only xml files can legitimates trigger these bypass.

    In my case it concerns python files.

    Maybe something I don't understood or a better way to display plain query

    Thanks a lot

    Bonne journée


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

    by David BEAL - 07:05 - 23 Oct 2019
  • Place to share knowledge/tools on deployment
    Hello list,

    During the OCA code sprint in belgium, I had the opportunity to talk again about docker. While the first talk, in 2018, was focused on usage of Docker. This year, the discussion focused on orchestration solutions.
    The discussion was interesting and it was found that we could use a place to share good practices and solutions. Regarding orchestration, but also on dockers (odoo and other services like postgres, acsone/kwkhtmltopdf) and around deployments helpers (git-aggregator, gitoo, clik-odoo, etc.)

    How would you see it ?

    What do you think about to start with a single place where we could have docker-compose templates (or link to repo with templates) and best practices, FAQs, etc (I was thinking questions like: https://odoo-community.org/groups/contributors-15/contributors-148040?mode=thread&date_begin=&date_end=)
    The aim would be to ease the adoption of docker based infrastructure over OCA members. Docker-compose is a good tool to ease docker adoption.


    Let me know what you think

    Jordi


    --
    Jordi Riera - VP Technique
    NUMIGI SOLUTIONS INC.
    (514) 317-7944

    Longueuil, Québec, Canada


    by Jordi Riera - 06:20 - 22 Oct 2019
  • Newbe on Odoo
    Hello everyone,

    I consider myself Odoo fan, I know this software since version 6 named OpenERP, yes!! I'm old :D anyway I'm building up my own business "On-line Shop" and now is the time to implement Odoo. I have been playing with the 11 version but I know and I can see that the latest versions the company has been cutting off more and more modules, I looking to implement a fully operational Odoo using the CE version, I really don't care if it's not the latest version as far is working fine. Mu play is start and eventual in the future migrate to a better latest version. So I'm looking at some of your opinions regarding this, witch one you consider will be the best option for me to start. I can see that version 10 has most of the functionality just before things started to go south, one of the modules that I consider very important is the account module, after ver 10 the module is not there or limited.

    I really appreciate all your comments and goods advises.

    Regards,
    --
    --
    Harold g Luzardo b
    @Kickfliph
    GNU/Linux User #535193
    pub   2048R/0BCF3A23 2014-06-08
    Key fingerprint = 842E 986F 2A7B A507 4F0B  4A0F A73D 5885 0BCF 3A23

    by Harold Burton - 03:05 - 19 Oct 2019
  • XAdES in Odoo
    Hi All,

    After evaluating a couple of solutions, I decided to work on a PR to incorporate 
    XAdES signing into signxml library, which seems to be one of the better known
    xml signature libraries and is used in sime odoo EDI implementations (eg. PE).

    Please find the link below:


    Please touch ground if you would like to sponsor one of the marked items, as I'll
    only proceed to implement the MVP necessary for my own purpose.

    Nevertheless, it is designed to produce, both, fully conformant and interoperable
    XAdES signatures as per the defined ETSI base line and extended signature levels.


    Best Regards,

    David A.



    by dar - 11:11 - 18 Oct 2019
  • [RFC] marketplaces connector module
    Hello
    
    We are working on a little maketplaces connector for small companies. It 
    connects Odoo with a feed provider which will transform data to export towards 
    marketplaces, prices comparators, etc. Everything is done with CSV files 
    export-import because a lot of feed provider, specially small ones, work like 
    this.
    It was previously discussed in Roadmap Odoo 13 for retail industry :
    https://github.com/odoo/odoo/issues/28179#issuecomment-462323744 
    (and next comments).
    
    First step is to have something working with Iziflux, a little french feed 
    provider. But... How does field mapping should be build ? 
    I ask because looking at OCA/connector-lengow (Lengow is a big feed provider), 
    a lot of code is not Lengow related, but field mapping is hard-coded in a file. 
    It's a pity.
    I don't care if first step use hard-coded mapping. But later I would like to 
    have something as generic as possible because all feed providers use nearly 
    the same data and thus the connector should be easily adaptable.
    
    Should we use a form ?
    or simply a CSV to put in the module directory ?
    or hard coding is good ?
    or something else ?
    
    (please CC me)
    
    -- 
    Librement,
    Xavier Brochard / zeroheure
    « La liberté est à l'homme ce que les ailes sont à l'oiseau » 
    (Jean-Pierre Rosnay)
    
    
    

    by xavier - 04:10 - 18 Oct 2019
  • Becoming a PSC of OCA/storage
    Hi

    I would like to propose myself as PSC/Maintainer of OCA/storage. I'm an active contributor on this repo and only @sebastienbeau is part of this PSC at this moment.

    Regards

    lmi

    by Laurent Mignon - 01:21 - 18 Oct 2019
  • Odoo to Odoo data migration tools

    Hello,

     

    I have more than one customer request to merge several single-company databases into a single multi-company database.

    The usual approaches all mean some level of data loss.

     

    Since the database schemas are the same, I’m wondering if it would be feasible to have a tool that would copy the data at the database level, while properly handling the record ids conversion.

     

    I’ve worked before with a tool that deal with that kind of problem – Anybox’s Anygrate.

    So I could have a try at a second generation of that tool.

     

    I wonder about other ideas?

     

    Thanks

    Daniel Reis

     


    by Daniel Reis <dreis.pt@hotmail.com> - 03:51 - 15 Oct 2019
  • XSLT for Odoo Studio
    Hi Folks,

    I wrote a little stylesheet to transform Odoo Studio prototypes into raw python code.

    If you are interested, 
    • please check it out
    • propose improvements

    BR,

    David A.

    by dar - 05:50 - 14 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
  • New library to migrate Odoo module code "odoo-migrate"
    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)

    by Sylvain LE GAL - 06:10 - 10 Oct 2019
  • Little bounty proposals : Payment plugin and feed export
    Hello
    
    I'm looking for someone to code ! I think it is simple but too long or too 
    difficult for me. My budget is very small : around 1000€
    There is two projects, all free (GPL) :
    
    1. Port the Lyra / Payzen Odoo payment acquirer to #13. It is an international 
    payment solution, their plugin is already available with Odoo 10 to 12 and 
    need to be adapted to version #13. https://github.com/lyra/plugin-odoo
    See https://payzen.eu/ and https://lyra.com/ for information on their solution
    
    2. We need a very basical solution to connect to multi-channel feed 
    distribution services (typicaly to sell  across many marketplaces). Our target 
    is Iziflux (France only), but it should be possibly customized to other feeds. 
    We need to export products and stocks and to import sales with customers data 
    periodicaly.
    A CSV export-import based on odoo-connector will do the job in most cases.
    
    
    -- 
    Librement,
    Xavier Brochard / zeroheure
    « La liberté est à l'homme ce que les ailes sont à l'oiseau » 
    (Jean-Pierre Rosnay)
    
    
    

    by xavier - 05:26 - 9 Oct 2019
  • CodeTriage "app"
    Hello,

    Maybe some of you already know CodeTriage
    For those who don't know it yet, it's a platform that allow you to receive (by mail) some bugs (github issues) of public project to help them handle those issues. 
    Here is a page explaining what's this app for: https://www.codetriage.com/what

    I noticed Odoo is there: https://www.codetriage.com/odoo/odoo

    Seems the public GitHub repo has to register to appear in the list of projects to help.

    Question: Do you think it's worth it for OCA repo to register to this app? 

    IMHO, if some OCA repo were registered there, I would subscribe.
    What about you?

    Have a nice day

    Cheers,

    --
    Damien Crier
    Camptocamp France SAS
    18 rue du Lac Saint André
    Savoie Technolac - Bâtiment Le Dauphin
    F-73370 Le Bourget du Lac
    http://www.camptocamp.com

    by Damien Crier - 09:11 - 8 Oct 2019
  • 2019 OCA Extra Delegates Campaign is NOW OPEN

    Dear OCA Contributors,


    As you may be aware the decision to run an extra campaign to fill the remaining 7 Delegate positions for this year has been made. 

    The 3 new Delegates from the earlier election were: 
    • Yves Goldberg
    • Simone Orsi
    • Sergio Teruel Albert
    The new campaign is now open and will run from today until the 18th of October, 2019. The current Board Member and Financial Auditor Campaign will be suspended until October 28th, 2019.

    Why?


    There are 10 places each year for new Delegates. This year's previous election only had 3 new Delegates elected leaving 7 positions to be filled.

    The Delegate Assembly is the Association’s supreme authority. Each Delegate member is entitled to one vote at the Delegate Assembly. Decisions of the Delegate Assembly are taken by a majority vote of the Delegate members present and voting. For further details, please read the Bylaws.


    How?


    To apply as a candidate, you have to:

    The campaign will be closed on October 18th, 2019.


    Then what?


    The vote will be open from October 19th to October 25th, 2019: Current OCA Delegates will vote for 7 new Delegates among the candidates.


    The results of the election will be announced on October 26th, 2019.


    The 10 new Delegates and existing Delegates will then take part in:

    • the 2019 OCA Board Member Campaign from October 28th to November 8th, 2019.

    • the 2019 OCA Financial Auditor Campaign from October 28th to November 8th, 2019.

    • the 2019 General Assembly from November 11th to November 22nd, 2019.


    Should you have any questions, please get in touch.


    Warm regards,

    Rebecca--
    Rebecca Gellatly
    General Secretary
    Odoo Community Association

    by Rebecca Gellatly - 01:26 - 8 Oct 2019
  • Linting for 13.0 branches (using black and pre-commit)
    Dear contributors,

    Following a recent conversation on twitter, and further talks during #OCAdays, there seems to be a wide interest for using Black [1] as a code formatter for OCA code.

    This post explains the proposed approach to implement it in OCA, as well as several improvements to code linting tools.

    In a nutshell, Black is a python code formatter that quickly gained traction in the Python community in the last couple of years. It formats the code for you with a predefined set of rules and almost no options so as to free your mind for more important matters.

    At #OCAdays, we discussed on how to put it in practice, and it was proposed to take the opportunity of this change to introduce pre-commit [2] as the linting framework for OCA in the 13.0 branches.

    TL;DR: If you are not interested in the nitty gritty details, the only change you will need to remember compared to your current workflow is:
    • run Black before committing your code on the 13.0 branches
    • sort imports (stdlib, odoo, odoo.addons, local imports)
    • To save time, install pre-commit and run pre-commit install after cloning an OCA repository on the 13.0 branch. Linting, running black and sorting imports will be done automatically for you when you commit. You can also run it manually with 'pre-commit run --all-files'.
    If you are interested in practical details and the rationale, read on.

    pre-commit is a tool that lets contributors easily run lint checks locally in a consistent and reproducible manner. These checks are then run again by Travis to be sure conventions are enforced. In principle this is similar to what we are doing now with MQT LINT_CHECK="1", with the following beneficial differences:
    • installation of the linters locally is easier: only one tool needs to be installed on developer's machines: pre-commit, which will then take care of installing all the required linters for you
    • you then run "pre-commit install" after cloning a repository
    • lint checks are then run automatically when creating a commit locally so you can detect errors much earlier, without having to wait for Travis to detect them for you
    • some linters (such as Black, and the import sorter) fix the code for you, so you immediately have the diff available with all fixes to commit
    • all configurations are stored locally in the repository using default configuration files (.pylintrc, .flake8, etc); this means your favorite IDE will pick them up automatically to give you assistance in detecting and fixing errors
    • a wide variety of pre-commit plugins exist, which means we can easily benefit from them and progressively add more in the future
    The proposed configuration includes the following linters:
    • black, with default options (to facilitate usage)
    • auto fix trailing whitespace
    • auto fix newline at end of files
    • detect debug statements
    • flake8 with same options as before (except line length which is now the 88 black default)
    • pyupgrade, to encourage python 3 idioms
    • pylint with mandatory checks (with some more mandatory checks than before, for v13 only)
    • pylint with all checks (optional + mandatory), not failing
    • isort to automatically sort imports (except in __init__.py where import order might be significant)
    • run eslint as a pre-commit hook, with the same configuration as pylint-odoo except that all checks are warnings. This is the same as what pylint-odoo does (javascript checks are not blocking).
    You can see an example configuration in the storage project [3], the queue project [4] as well as partner-contact [5]. Look for the following files: .pre-commit-config.yaml, .flake8, .pylintrc, .eslintrc. Also look at the updated .travis.yml to see how pre-commit is run. To try it out,
    • checkout these branches
    • run 'pre-commit install'
    • start committing lint failures to see the effect.
    If you have suggestions to make on the linter configurations, you can make them on this MQT PR: https://github.com/OCA/maintainer-quality-tools/pull/613/files

    In practice, if there are no objections, the plan is to setup this configuration on all 13.0 branches this week, while there are not too many v13 modules merged. To do this, I will push all linter configuration files to 13.0 branches, as well as resetting the travis configuration to the default.

    When the configurations will need to evolve later, the maintenance of these configuration files will become a bot task. As before, there will be no possibility to configure linting rules per repo.

    Looking forward to reading your feedback.

    Best regards,

    -sbi



    by Stéphane Bidoul - 12:56 - 7 Oct 2019
  • [OXP] Odoo Merge Sprint
    Dear OCA developers,
    
    If you are coming to our Odoo Experience[1] event this week (just after
    the OCA Code Sprint), don't forget to come see us at the Merge Sprint
    room (in the Hocaille room).
    This will be the occasion to meet the Odoo developers and review
    together your pull requests and contribution to the source code of Odoo.
    
    Check the event page[2] for details.
    There is an agenda published there to meet developers specialised in
    specific applications, this way you are sure to meet somebody that will
    be able to answer your questions.
    
    See you there,
    
    Martin
    
    [1]
    https://www.odoo.com/event/odoo-experience-2019-2019-09-30-2019-10-04-1629/page/oxp19-homepage
    [2]
    https://www.odoo.com/event/odoo-experience-2019-2019-09-30-2019-10-04-1629/page/oxp19-merge-sprint
    
    
    -- 
    Martin Trigaux
    Odoo
    https://odoo.com
    https://github.com/mart-e
    
    

    by Martin Trigaux - 01:56 - 1 Oct 2019
  • Propose Héctor Villarreal as PSC of purchases
    Hi all,

    Here is his Github account. He has actively participated with a lot of contributions at purchase-workflow repository in the newest versions: https://github.com/OCA/purchase-workflow/pulls/hveficent and has migrated to latest version purchase_request among others.

    Regards,

    --
    Lois Rilo Antelo
    Eficent Business and IT Consulting Services, S.L.
    (+34) 679052448 | lois.rilo@eficent.com | http://www.eficent.com
    Twitter: lreficent_erp

    by Lois Rilo Antelo - 06:26 - 30 Sep 2019
  • Souheil Bejaoui for project & service PSC
    I want to propose https://github.com/sbejaoui for this PSC as he has been working a lot on all the contract stuff. You can see some os his PRs in:


    Regards.

    by Pedro M. Baeza - 04:26 - 30 Sep 2019
  • 13.0 Migration instructions
    Dear community,

    In https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-13.0 there’s “Squash administrative commits (if any) with the previous commit for reducing commit noise.”
    It should be understood as “Squash with previous administrative commits” or “Squash with any previous commit”?

    Kind regards,
    Alexey

    by Alexey Pelykh <alexey.pelykh@gmail.com> - 12:41 - 30 Sep 2019
  • Kenyan Localization Repo
    Hello Contributors,

    I would like to publish my work to OCA (l10n-kenya), I have created some modules for Kenyan Localization.

    Thanks.

    Duncan Kiplangat,
    Sunflower IT.

    by Kiplangat Dan <kiplangatdan@gmail.com> - 11:35 - 30 Sep 2019