Skip to Content

Contributors

  • Prevent accidental emails to external addresses
    Hello,

    A concern came up, about Odoo users accidentally send out email to external email addresses, such as customers or vendors.
    To goal is not the prevent this from happening, such as in a blacklist/whitelist feature, but to avoid that from happening accidentally.

    I'm not sure should looks like.
    One idea could be having a dialog box confirmation before posting a message mentioning an external user.
    Maybe we could external email from chatter messages, and only allow it from a Action menu send email option.

    On the OCA i've only found "mail_restrict_follower_selection" (https://github.com/OCA/social/tree/13.0/mail_restrict_follower_selection).
    But I'm not sure this is the solution I want to go to.
    At least it may not be enough on itself.


    Did some of you faced the same issue?
    Any thoughts, solutions, tips you can share?


    Thanks!

    --
    Daniel Reis
    Managing Director
    M: +351 919991307
    E: DReis@OpenSourceIntegrators.com
    Av Doutor Desidério Cambournac 12 • 2710-553 Sintra, Portugal



    by Daniel Reis - 07:31 - 25 Feb 2021
  • Convert quantity from an UoM to another one
    I'd like to propose a new module in product-attribute repo to convert from an UoM to another one, I would suggest "base_uom_converter" or "uom_converter".

    This conversion would work in oneway as it requires a scale to use it.

    For instance, as a developer, I'm generating sales orders from business code. I know that the sale is regarding a given distance of something "D", the work force can be translated from a scale where distance "D" would be the scale entry. The expected result "R" would be the amount of time with a given formula:
    R (hours) = scale line fix amount (hours)  + D (meter) * scale line coef ( hours / meter).

    I guess this could be hooked to the existing system while we change the uom on a sale order line but this is not the intent of this module from my point of view, that's why I suggest base_uom_converter !

    Does this exist already ? Does the OCA want to maintain such a module ?
    --
    Pierre Verkest
    06 81 12 25 20
    Github: petrus-v - Twitter: petrusv84 - Linkedin: pierre-verkest

    by Pierre Verkest - 04:01 - 24 Feb 2021
  • Issue with runbot
    Dear friends,
     
    I have checked that sometimes, when accessing runbot, we are redirected to runbot main site and we are unable to access the runbot machine. After a little investigation, it seems related to runbot1-3 as the main problem. It seems like a redirect is defined somewhere (maybe on nginx?).
     
    I don't know if this happens to everyone.
     
    Kind regards,
     
    Enric Tobella Alomar
    etobella@creublanca.es
     
    Centros Médicos Creu Blanca
    Tel: 902 202 230
     
    Tanto este mensaje como los documentos que, en su caso, lleve como anexos,
    pueden contener información reservada y/o confidencial, destinada exclusivamente
    para el uso del destinatario o la persona responsable de entregarlo al mismo,
    estando su uso no autorizado prohibido legalmente.
    Su contenido no constituye un compromiso para Creu Blanca (la empresa remitente)
    salvo ratificación escrita por ambas partes. En caso de su recepción por error,
    rogamos nos lo comunique por igual vía, se abstenga de realizar copias del mensaje
    o documentos adjuntos, remitirlo o facilitarlo a un tercero, y proceda en su defecto,
    a su eliminación.




    Tanto este mensaje como los documentos que, en su caso, lleve como anexos,
    pueden contener información reservada y/o confidencial, destinada exclusivamente
    para el uso del destinatario o la persona responsable de entregarlo al mismo,
    estando su uso no autorizado prohibido legalmente.
    Su contenido no constituye un compromiso para Creu Blanca (la empresa remitente)
    salvo ratificación escrita por ambas partes. En caso de su recepción por error,
    rogamos nos lo comunique por igual vía, se abstenga de realizar copias del mensaje
    o documentos adjuntos, remitirlo o facilitarlo a un tercero, y proceda en su defecto,
    a su eliminación.

    by Enric Tobella Alomar - 11:46 - 22 Feb 2021
  • Migrating content from Wordpress to Odoo
    Hi

    I'm faced with the task of moving a website from Wordpress to Odoo. I have a backup of the old site, is there any way to move the pages from the Wordpress site to Odoo? And mass upload of the images from the old site?

    I've experimented with parsing and processing the backup file, so I have some of the content on my computer, but it would be nice to be able to mass upload it to Odoo, so the webmaster can work on the formatting of the pages.



    Torvald Baade Bringsvor
    Bringsvor Consulting AS - Developer, consultant, allrounder

    Tel (+47) 4548 2848

    by Torvald Bringsvor - 03:30 - 21 Feb 2021
  • Odoo shared filesystem/sync

    Dear OCO community,

    I did a weekend project a while back creating a file system for Odoo. Basically if allows you to attach a directory/file to and odoo object.

    The advantage is that you can very much like with the old FTP file sharing infrastructure attach files to say invoices, order by simply saving them to the appropriate directory.

    The difference is that this is a file system on linux so no uploading and it therefore works with everything (email apps, scanning aps etc).

    It is alpha quality and slow but can easily converted into a sync app and the filesystem speed can very easily be increased.

    I will gladly contribute this to OCA base if there are interest. If not just an interesting idea consider.

    Regards

    Jacobus

    --
    Email Signature
    Logo
    Jacobus Erasmus | Director
    a: IvyWeb (Pty) Ltd | 23 Rayner Avenue, Kilnerpark, Pretoria, 0186 | South Africa
    e: jacobus@ivyweb.co.za | w: www.ivyweb.co.za
    m: +27 84 251 6888 | p: +27 84 251 6888

    by Jacobus Erasmus - 06:30 - 18 Feb 2021
  • RFC management system - manage partner contacts
    Hi all,
    following a discussion started on my PR https://github.com/OCA/management-system/pull/286, I desire to receive some opinion on the best way to manage additional contacts on partner connected to management system.
    My initial proposal was to do a new module mgmtsystem_nonconformity_partner because I need that contact for quality.
    Enric suggest to add the contact to the base mgmtsystem_system module.
    Another option is to create a module for each system like mgmtsystem_quality, mgmtsystem_safety and so on. 
    Then we think that may be better to have a dedicated module for all possible system-specific contact, ie mgmtsystem_partner to use for adding system-specific contacts.
    What do you think?

    Stefano Consolaro
    www.mymage.it

    by Stefano Consolaro - 11:26 - 12 Feb 2021
  • Supplier discount on all products supplied
    Hello,
    
    we purchase from multiple suppliers. From each one we have a pricelist where 
    list prices for customers are listed. Then there is discount we have for 
    current year - it changes each year. That defines our price for purchase from 
    the supplier.
    So I am looking for something that would allow just to change the supplier's 
    discount for current year and all the purchase prices would be recalculated.
    
    I guess this should exist but cannot find anywhere. Am I missing something? 
    Thank you
    
    Best regards
    
    	Radovan
    
    
    

    by Radovan Skolnik - 04:16 - 11 Feb 2021
  • 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