Skip to Content
  • requirements.txt: Repository Level vs Module Level
    Hi all,

    As i see, usually in OCA repositories "requirements.txt" file with pip dependencies is located in the root of the repository and contains a list of all python dependencies for all addons in the repository. This way it works fine, when we clone full repository, and install all dependencies for all modules there, thus when user will try to install new module on DB, 99% that all python dependencies will be satisfied.

    But, let's take for example repository partner-contact repository for Odoo 12.0 and let's try to add the module 'partner_email_check' to odoo server. For this task, i will use [odoo-helper-scripts](https://github.com/katyukha/odoo-helper-scripts) that can automatically resolve repository dependencies (including those specified by oca_dependencies.txt). So, at first i would try to fetch (clone) repository partner-contact, and in this case system will automatically fetch 42 OCA repositories following 'oca_requirements.txt', and also it will try to install python dependencies mentioned in requirements.txt. It is good for development. But installation this way on prod, may lead to a lot of unneeded modules, that polutes system with strange dependencies that are in some cases may be not installable (for example because of system dependencies).

    To solve this reason, we started to use 'assembly' approach, that assumes that we have to create separate git repository with only addons needed on server. But in this case, if assembly repo created automatically, there is no way to get python requirements for module, if it is not specified in module directory. Looking for python dependencies in manifest is also not good, because there are python packages exists, that has different name for package and python module inside package.

    So, may be it have sense to place requirements.txt inside module directory? Thus module's requirements will be always delivered with module, that will make easier installation of module. Also, i think this way, it will be much easier to generate setup.py files for modules, that will contain info about module's python dependencies.

    Possible drawbacks may be in case, when different versions of python dep will be specified in different modules. But same is applicable for repositories.

    What do you think about this?

    With regards,
    Dmytro Katyukha

    by dmytro.katyukha - 10:56 - 11 Feb 2021
  • Any module that verify numbers, i.e., employee's citizen ID
    Dear community,

    I have a requirement to validate hr.employee's citizen ID format in my country, but I think it would be nicer if we can just extend some base modules to be more generic.

    So far, I found this, https://github.com/OCA/partner-contact/tree/13.0/partner_identification, which can verify numbers but onlty to res.partner.

    Are the more generic base module to be used with other models yet, (or at least for hr.employee)

    Thank you,
    Kitti



    by Kitti Upariphutthiphong - 06:25 - 11 Feb 2021
  • Stock valuation and property propagation on Odoo 12
    Hi everyone,

    I need some technical help to understand if the problem comes from my production environment or if it's an Odoo bug.

    Starting working with stock valuation, I found that the product's `property_valuation` were not updated after changing it from the category.
    Technically `_compute_valuation_type` is never called when saving the category form whereas the `api.depends` decorator clearly sets `categ_id.property_valuation` as a dependency.
    That's a big issue because all my products stay in `manual_periodic` even if their category is set to `real_time`.

        @api.one
        @api.depends('property_valuation''categ_id.property_valuation')
        def _compute_valuation_type(self):
            self.valuation = self.property_valuation or self.categ_id.property_valuation

    Can someone try to set a breakpoint here to see if this computation function is called in its environment ?
    odoo/addons/stock_account/models/product.py:L48

    Thank you for your time.

    --
    Yann PAPOUIN, Ingénieur R&D | DEC

    by Yann Papouin - 12:40 - 11 Feb 2021
  • Accelerated approval of pull requests

    Dear OCA-Maintainers,

     

    i am reaching out to you to request accelerated approval of two pull requests i recently created:

     

     

    Both pull requests only contain simple migrations, no features were added, which need to be reviewed.
    I am contacting you since it is critical for my organsation to have the resulting Wheels in Wheelhouse soon.

    Many thanks in advance, you are doing a great job!  

     

    Best regards,

    Bastian Guenther | BI ERP Developer | AMETRAS intelligence GmbH

     


    by "Bastian Guenther" <Bastian.Guenther@ametras.com> - 11:55 - 5 Feb 2021
  • Review PR, that fixes web_view_searchpanel for 12.0
    Hi all,

    I would like to ask someone to review my PR related to the web_view_searchpanel module, that fixes incorrect behavior in case there is an extra search domain present in action.


    My question is to decide whether it makes sense to depend on the OCA module for this functionality, or maybe it would be better to fork it and use my own version.

    Thanks,

    With regards,
    Dmytro Katyukha

    by dmytro.katyukha - 05:51 - 4 Feb 2021
  • oca/oca.recipe.odoo repository?
    Hi all,
    
    I'd like to fork https://github.com/anybox/anybox.recipe.odoo which has been 
    inactive/externally maintained (amongst others by Stefan Rijnhart and me) to a 
    repo under the OCA umbrella, namely oca/oca.recipe.odoo.
    
    We had the discussion before in
    https://odoo-community.org/groups/contributors-15/contributors-27171
    where the issue of branding was raised, that's why I suggest the new name. 
    This way we also don't clash with the original on pypi etc.
    
    Please don't let this devolve into a discussion about what to use for builds/
    deployment, OCA can host various alternatives in my opinion.
    
    The fork will probably happen anyways, but I prefer to have it under the OCA 
    organization rather than some specific one just for that.
    
    Best regards,
    Holger Brunn
    
    
    -- 
    Your partner for the hard Odoo problems
    https://hunki-enterprises.com

    by Holger Brunn - 11:01 - 4 Feb 2021
  • Off line module or third party ?
    Hello,

    Some of my prospect need the off line possibility, would you be so kind as to inform me regarding the existing module or the best contractor ?

    Best regards

     Véronique

    Véronique Piveteau
    Helpdesk manager - Consultante
    veronique.piveteau@auguria.fr
    +33 6 81 45 58 53
    auguria.fr
    LinkedIn| Facebook| Twitter

    by "Véronique Piveteau" <veronique.piveteau@auguria.fr> - 10:51 - 1 Feb 2021
  • How to test v14 upgrade scripts
    Hi all,

    we are porting to 14.0 the OCA/l10n-italy modules and developing some upgrade scripts, like this

    Our doubt: is this testable?
    In general, is it possible to test v14 upgrade scripts before OpenUpgrade is available for v14?

    Thanks!

    --

    by Lorenzo Battistini. - 10:06 - 29 Jan 2021
  • Odoo2Odoo

    Dear Community

    According to https://odoo-community.org/groups/contributors-15/contributors-153784?mode=thread&date_begin=&date_end=

    and

    https://odoo-community.org/groups/contributors-15/contributors-84164?mode=thread&date_begin=&date_end=

    the subject has been discussed before...

    Nowadays, could you please give your experience on bidirectional partial replication of Odoo data between 2 databases ?

    Our use case is :

    - Main database on land (accounting, inventory, sales, website...)

    - Secondary database on a boat that loses Internet connexion for several hours (point_of_sale only)

    We already tested https://github.com/JayVora-SerpentCS/SerpentCS_Contributions/tree/13.0/base_synchro it's very slow and have a few issues

    We are going to test bucardo.org with Multi Master Replication but it does not look like the perfect solution

    Would you go to an ESB for such a small use case ?

    Thanks in advance

    Best regards

    --
    Cordialement
    --------------------------------
    Cyril VINH-TUNG
    INVITU
    Computer & Network Engineering
    BP 32 - 98713 Papeete - French Polynesia
    Tél: +689 40 46 11 99
    contact@invitu.com
    www.invitu.com

    P Please consider the environment before printing this e-mail!


    by Cyril VINH-TUNG - 10:56 - 25 Jan 2021
  • Right way to do a new OCA module that depends on EE's LGPL module.
    Dear community,

    Got some questions about licensing.

    There are modules that we want to extend but they are in EE14 --> "approvals", "approvals_purchase".
    Where approvals is a simple module for approving something. And approvals_purchase allow creating purchase order at the end of process.

    They are quite simple. But what we need is to create modules "approvals_purchase_request" and "approvals_hr_expense".

    I have checked that "approvals", although in EE source code, its license is in CE, LGPL.

    What is the right way to deal with this?
    1. Just include approvals in OCA and continue the new module (as it is LGPL, not sure)
    2. We can't use "approvals", and so, we have to first create something similar to it, may be renaming it, add/remove some feature etc. and make it pure OCA module first before continue our needing module.

    Thank you!
    Kitti U.


    by Kitti Upariphutthiphong - 04:31 - 25 Jan 2021
  • Repository for repair module
    Hello, 

    I'll be working on a module to make a procurement from a repair order in the repair module for V14. But I don't know in which repository I can make the PR, I have searched in OCA Shop and I found modules related to repair in field-service and manufacture repositories.

    Where is the best repo to add this module?

    Thanks in advance

    by Jesús Alan Ramos Rodriguez - 09:00 - 20 Jan 2021
  • Muli Cloud and Hybrid Cloud for Odoo Solutions
    Hi Contributors,


    I've been 4 months researching about IaC with Terraform for Odoo implementations at multi cloud level.

    I've also been researching in hybrid cloud with kubernetes for Odoo solutions.

    This research is cover by the open source project "TerradooCloud" (https://github.com/TerradooCloud), where I want offer a documentation reference for all the possible deployments scenarios for Odoo on Cloud.

    Recently, Google Cloud launch a course and already have a docs for SAP (https://cloud.google.com/solutions/sap/docs).

    This is like my intends to build for Odoo instead for SAP.

    At this moment, I don't have more time to spend in this research, I only can offer management of GitHub projects and reviews, but due to it is a very big and ambitious project, only can be possible with contributors interested.

    Now, I'm focusing in IoT and electronics, so I continue with microk8s and Odoo for server side of IoT, but my focus will be in electronics side.

    If there are anyone interested in participate in this project is already invited to be a member of the organization, but with external PRs is the best way to participate.

    Thank you very much, I hope this project will be interested to anyone,

    JuanDCG.

    by Juan Del Castillo Gómez - 01:36 - 20 Jan 2021
  • Header sorting in form view
    Dear community,

    I'm looking for an addon or a way to keep user sorting choices.

    As you know, you can click on a One2Many or Many2Many header (of a stored field) to sort the lines but any action in the form (validate something or encoding quantities, etc.) reload it and reset the user sort.

    I don't have a great JS expertise that's why I'm asking here before starting to work on a new module/hook dedicated to this feature.

    Thank you.
    --
    Yann Papouin

    by Yann Papouin - 11:11 - 11 Jan 2021
  • Sales terms
    Hi there !

    I wish you the best for 2021 !

    I'm on the way to add terms.template model to be able to define different terms template on
    Sale Order (maybe on invoice as well later) so that users can choose the template that will populate terms ( note fields as Html field).  Expected behaviour is what happens with email template, the user chooses a term template, the note field will be populated and the user can change it afterwards.

    Do you know a such module exists if not what do you think to create a such module in Sale Workflow repo

    Regards,

    --
    Pierre Verkest
    06 81 12 25 20
    Github: petrus-v - Twitter: petrusv84 - Linkedin: pierre-verkest

    by Pierre Verkest - 11:16 - 7 Jan 2021
  • A module to add methods to convert datetime between UTC and user's timezone
    I think I've seen somewhere under OCA a module to add generic methods to convert datetime between UTC and user's timezone, but I somehow can't find it now.  A pointer would be appreciated.

    -- 
    Yoshi Tashiro


    by Yoshi Tashiro - 04:40 - 6 Jan 2021
  • Odoo e2e testing with Cypress.
    Dear community,

    Just recently, I played around with Cypress e2e testing. https://www.cypress.io/

    And it looks interesting especially for functional end to end testing. Test script is in JS, but it looks easy enough to apply with Odoo. 
    Anyone have experiences using cypress with Odoo already?

    Kitti U.

    by Kitti Upariphutthiphong - 04:56 - 31 Dec 2020
  • use "%d" in nginx with "dbfilter_from_header" module

    hi all,

    How may I pass the equivalent of "dbfilter = ^%d.*" (odoo conf file option) to a nginx proxy_set_header for dbfilter (using module dbfilter_from_header (odoo 13)?

    I tried to use "<subdomain>" or $subdomain in my expression but It doesn't get substituted before being sent to odoo.
    i.e. unsuccessfully tried:
    proxy_set_header X-Odoo-dbfilter \b(?<subdomain>.*)\b\S+; 
    proxy_set_header X-Odoo-dbfilter \b(?\<subdomain\>.*)\b\S+; 
    proxy_set_header X-Odoo-dbfilter \b(?\$subdomain.*)\b\S+; 
    proxy_set_header X-Odoo-dbfilter ^%d.*;


    anyone can help?

    the use case is that I would like to set this dbfilter for only some defined range of subdomains.

    TIA 



     --
    Yves Goldberg
    odooOfficial Partner - OCA delegate
    Open Source ERP, CRM & CMS
    T +972 (3) 720 8818
    +972 (55) 966 1405
    +32 (2) 588 2500
     
     
    --


    by Yves Goldberg - 11:00 - 31 Dec 2020
  • Mailing list IoT PSC
    Hi community,

    Are there any mailing list of IoT PSC ?

    Or we can use the new discussions feature of github ?

    Thanks,

    Juan.

    by Juan Del Castillo Gómez - 04:11 - 24 Dec 2020
  • OCA and security notices

    Hi community,

    Yesterday a security notices has been published.

    Stefan has begun to bring one security fix to OCB with this PR

    It raises what seems to be an important point about the handling of the security fixes for the unsupported Odoo version on OCB. Will this should be taken in charge by OCA, as OCB is under OCA umbrella or it'll remain on the goodwill of the community's members ? I don't have any problem with one of the possible responses.

    My point is how do we takle the minimum about this topic. I mean how do we organize the contribution members on this topics ?

    My first idea will be to open an issue on OCB for each security notice and organize the work as it done for modules migration. What do you think ? Creating a PSC team security could be another idea.

    Finding the security issues seems to be easy but at this point we don't have a tracking on the ones that are brought back on the unsupported version on OCB.

    Here at Coop IT Easy we'll probably focus on the versions affecting our customers it means 9.0 as 11.0 and later are still supported.

    Regards,

    Housine


    Virus-free. www.avast.com

    by Houssine BAKKALI - 11:46 - 23 Dec 2020
  • Pywebdriver in the OCA
    Hello everyone,
    
    
    As some of you might know, at Akretion we use a replacement tool for
    the IoT box, which is called Pywebdriver.
    
    We are currently maintaining it with other OCA members like Acsone or
    GRAP.
    
    We thought this could be a good idea to have this tool under the OCA
    umbrella to ease the workflows around it.
    
    
    Since this differs from the usual repositories the OCA manages, I
    created an issue to discuss around this possible inclusion:
    https://github.com/akretion/pywebdriver/issues/57
    
    
    Looking forward to read from you about this !
    
    
    
    -- 
    Pierrick Brun
    Akretion
    
    

    by Pierrick Brun - 03:15 - 22 Dec 2020