Skip to Content

Contributors

  • db not yet committed when overriding create/update.
    Hello,
    I send a webhook when an event occurs in Odoo.
    The problem I have is that when overriding create/update; and triggering my webhook, the data is not yet committed in the db.
    (the external system is sending in it's response that the record is not found in the case of create and get the old field value -before changes- for an update).

    I tried to use env.cr.flush() and/or env.cr.commit() both in my automated action and in my code before the webhook but nothing seems to work.
    Any other way I could check?
    Thank you
     --
    Yves Goldberg
    --


    by Yves Goldberg - 11:46 - 21 Jun 2024
  • Tree view with preview - is it possible?

    Hello,


    is there some view or widget or a way to display something like a split screen where one part would be holding a tree view of objects and second part would having a form view (read only is sufficient) of selected (clicked) record from the first part?


    I seem to remember seeing something like that somewhere but cannot remember where. Any hints / pointers are greatly welcome.


    Best regards


        Radovan Skolnik


    by Radovan Skolnik - 11:21 - 21 Jun 2024
  • x2many fields vertical scrollbar?

    Hi, 


    I am managing a situation where we often have a lot of lines on some main apps x2many fields (sale, picking, invoice, purchase..).


    It's not really handy when we are in a range of 60-200 lines, I just discovered that I could permanently increase the "limit" attribute on the tree-view.


    That would partially solve the problem, but in my opinion another part of the issue is that if you increase the "pager limit" to contain all lines, all the elements after the field will be pushed down in the view.

    It would be nice to have a vertical scrolling so that we can let's say set a limit of 500 lines (so they will all be loaded in the same pager) then have a limited height and be able to vertically scroll through the lines.


    Do you know any way to achieve this? Maybe someone already made a module for that?


    Have a nice day,
    Francesco Ballerini

    by Francesco Ballerini - 10:06 - 21 Jun 2024
  • Technical Question: Restart Odoo process after res.partner model change
    Hello Odoo contributors,
    
    I am developing, deploying and fixing Odoo for a while and there is one 
    issue I haven't bothered enough to come up with a proper solution or 
    strategy.
    
    The problem is simple: I have an Odoo instance running with a module 
    that extends the res.partner model. The res.partner code of this module 
    is updated with a new field. The Odoo server is restarted and exits with 
    a "column does not exist" error.
    
    The same procedure works for modules that extend other models than 
    res.partner or res.user. As I understand the res.partner (and other) 
    tables are queried when the Odoo process starts. The SQL queries fail, 
    because the model code does not match the database schema.
    
    The solution to the problem seems obvious, before starting the Odoo 
    server with the new code you install module (odoo-bin -i ...). However, 
    automating this step in a deployment pipeline is difficult as you don't 
    know which module needs to be updated. Always updating the base module 
    seems like an overkill.
    
    Do you know this problem? Have you solved this problem?
    
    I would be glad to hear from you.
    
    Regards,
    
    Janik
    
    Here is a guide to reproduce the issue with https://odoo.build/:
    
    1. Init a new datbase and start the Odoo server: `task start db; task 
    init-db; task start native`
    
    2. Install the contacts module: `task install-module contacts`
    
    3. Stop the Odoo process.
    
    4. Add a new field to the res.partner code: `vi 
    odoo/odoo/addons/base/models/res_partner.py`
    
    ```python
    
    xy = fields.Char()
    
    ```
    
    5. Start the Odoo server: `task start native`
    
    It fails with:
    
    ```
    
    ...
    
    psycopg2.errors.UndefinedColumn: column res_partner.xy does not exist
    LINE 1: ..."message_bounce", "res_partner"."name" AS "name", "res_partn...
    ```                                                        ^
    
    
    -- 
    We are hiring: https://www.mint-system.ch/jobs
    Send application to: jobs@mint-system.ch
    
    CTO Mint System GmbH
    Tel: +41 44 244 7222
    
    

    by Janik von Rotz - 05:22 - 20 Jun 2024
  • 16.0 translations

    Hi guys,

    We do have a customer which would like to translate a term used in a python method in a odoo module.
    I know translations have changed a lot in 16.0, that and now field translations are stored as jsonb values.

    To give you more context, here's a bit of code https://github.com/odoo/odoo/blob/16.0/addons/l10n_din5008_sale/models/sale.py#L12-L32

    Our customer isn't happy with the german translation of "Salesperson", which is "Vertriebsmitarbeiter", and would like "Kundenberater" instead.

    In the previous versions of odoo, it was possible to create a `l10n_extra` folder, and drop a new translation for the term, and that's it.

    Now it's not possible anymore, and I'm looking for ways of doing it.
    For instance, if some python code is raising an exception with some translated text that you're unhappy with, you cannot change it.

    I noticed there was a few issues on this matter on github.com/odoo/odoo

    I'm guessing that we aren't near close of having a solution from Odoo, and was wondering if there was anything in OCA about this?

    Thanks!

    ---

    Matthieu Méquignon


    by Matthieu Méquignon - 04:04 - 20 Jun 2024
  • Create New Sale Order from Picking Backorder
    Hello, I need exactly this module 


    but for Odoo version 14. Do we have something similar? 

    Regards,
    Francesco Ballerini

    by Francesco Ballerini - 11:03 - 20 Jun 2024
  • OCA Mailing-list and Weblate rate limit issue
    Hello everyone,

    First, this message has already been posted on transbot@odoo-community.org but after looking on https://odoo-community.org/groups, it looks like there is only 1 mailing-list now ? all others are dropped ?
    Secondly, did you know that you can login on https://odoo-community.org with admin/admin ?

    So I'm reposting here my message:

    I started working on translating some modules in the maintenance repository.
    But now I'm stuck (10 min cooldown ) when I want to add a new FR translation with this error:

    Your request was rejected because you have performed too many operations recently. You have been signed out, please sign in and try again later.



    Technically, only 8 translations have been created this morning (17 jun 2023) before this auto-signout appears, and it looks like it is related to this rate limits:

    I can create 2 translations every 5 minutes ... that's too long but the lockout period (10 minutes) is worse because it looks like it is reset after each attempt ...
    Could you decrease this rate ( RATELIMIT_LANGUAGE_ATTEMPTS ) to the minimum or at least 1 minute ? because this step is recurrent and it is really frustrating to be locked out when so many modules needs translating for a few words

    Thank you,

    by Yann Papouin - 11:14 - 18 Jun 2024
  • OCA apps lift to 17.0
    Hi!

    I would like to know if you are planning on lifting below apps to 17.0.

    I have a customer that is using them and they will upgrade to 17.0 very soon. So I need to know if these apps will be lifted by OCA or not. Thanks.

    stock_move_change_source_location
    product_net_weight
    product_pricelist_simulation
    product_pricelist_simulation_margin
    account_statement_import_camt
    account_statement_import_camt54
    stock_move_location
    crm_phonecall

    Vänliga hälsningar / Kind Regards
    Cathrine Niklasson

    Phone: +46 737146240





    by Linserv Consulting AB - 09:08 - 18 Jun 2024
  • One email address for sales, another for invoices
    Hi, 

    has anyone implemented a solution for the following use case: 

    Customer1 should receive quotation/SO emails at purchases@customer1.com, and invoice emails at accounting@customer1.com

    I didn't find something for this on partner-contact or accounting

    Thanks!

    Francesco

    --

    Francesco Foresti
    Sicurpharma Srl
    +39 333 8123 790

    by Francesco Foresti - 03:26 - 17 Jun 2024
  • Please share your thoughts on the use of `x_` prefix for custom fields in Odoo

    Hello Odoo contributors,

    I'd love to hear your opinion on whether or not one should consistently prefix custom fields and models with `x_`. While there are valid reasons to do so, this convention is either not general or often overlooked in the community. Please share your insights on ir ir when it is required and why it may be missing from some guidelines (e.g., https://www.odoo.com/documentation/17.0/contributing/development/coding_guidelines.html#). I'd really love discuss this topic to enhance our common understanding and best practices in the Odoo ecosystem. Thank you for sharing your opinions

    Best regards,
    Frederik

    Hint: Daniel Reis for instance claims "The field name field entry must start with the x_ prefix. This is mandatory for models and fields created from the developer tools. Customizations made through addon modules don't have this limitation."  in https://subscription.packtpub.com/book/business-and-other/9781800200067/2/ch02lvl1sec09/adding-a-custom-field-to-a-model and Odoo itself pretends "Custom model names must start with x_."  in https://www.odoo.com/documentation/17.0/developer/reference/external_api.html but leaves the convention unaddressed in https://www.odoo.com/documentation/17.0/contributing/development/coding_guidelines.html#

    For whom it may concern: SAP is requiring similar prefixes since very early versions of its ABAP programming and costumization iterface https://help.sap.com/doc/saphelp_snc700_ehp01/7.0.1/en-US/c5/e4ade6453d11d189430000e829fbbd/content.htm?no_cache=true

    -- 
    Dr.-Ing. Frederik Kramer
    Geschäftsführer
    
    initOS GmbH
    Innungsstraße 7
    21244 Buchholz i.d.N.
    
    Tel:   +49 (0) 4181 13503 12
    Fax:   +49 (0) 4181 13503 10
    Mobil: +49 (0) 179 3901819
    
    Email: frederik.kramer@initos.com
    Internet: www.initos.com
    
    Geschäftsführung:
    Dr.-Ing. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke
    
    Sitz der Gesellschaft: Buchholz i.d.N.
    Amtsgericht Tostedt, HRB 205226
    USt-IdNr.: DE815580155
    Steuer-Nr: 15/200/53247

    by Frederik Kramer - 12:16 - 17 Jun 2024
  • OCA Weblate, why the lack of speed?
    
    
    Greetings!
    I've done plenty of translating for Odoo in Sweden. Modules and 
    documentation for Odoo mainly in Transifex but also some for OCA, using 
    Weblate.
    
    I like the tool Weblate. Sometimes it's more helpful than Transifex!
    
    But I've always wondered why it's so slow. I often get the "500 time 
    out" -error and it's more frequently before lunch than after!
    
    Who's in charge? What's the plan, if any...?
    
    I assume others has experienced the same. I'm new to this e-mailing list 
    and maybe this has been discussed recently? If so, my apology for 
    highlighting the issue!
    
    regards,
    
    // jakob
    
    
    
    
    
    -- 
    Med vänlig hälsning / Best regards/ 顺祝商祺,
    Jakob Krabbe
    
    VERTEL AB | Jakob Krabbe | jakob.krabbe@vertel.se
    +46 (0)13 99 19 480 | +46 (0) 709 24 54 75 | vertel.se
    

    by Jakob Krabbe - 09:06 - 17 Jun 2024
  • dms not published at apps.odoo.com
    
    Greetings!
    In a project, we depend on an OCA module, dms
    
    https://github.com/OCA/dms/tree/14.0
    
    
    When posting our project, we keep getting errors and we suspect that the 
    unpublished OCA project dms is the reason!
    
    https://apps.odoo.com/apps/modules/browse?series=14.0&price=Free&search=dms
    
    What's the procedure!? Who's in charge!? Would it be possible to publish?
    
    // jakob
    
    
    
    
    
    -- 
    Med vänlig hälsning / Best regards/ 顺祝商祺,
    Jakob Krabbe
    
    VERTEL AB | Jakob Krabbe | jakob.krabbe@vertel.se
    +46 (0)13 99 19 480 | +46 (0) 709 24 54 75 | vertel.se
    

    by Jakob Krabbe - 02:41 - 14 Jun 2024
  • apologies for mass PR creation
    Hello everyone,
    
    I asked yesterday Vincent to fix the name of Camptocamp in the manifest 
    of the OCA addons, without realizing the impact this would have on the CI.
    
    We are sorry for the disruption caused, and I should have checked before 
    acting about the proper way to do this. Please accept our humble apologies.
    
    Now if you have a recommendation on how to deal with the update in the 
    proper way, we will be happy to get your feedback.
    
    Kind regards,
    
    
    -- 
    Alexandre Fayolle
    

    by Alexandre Fayolle - 12:21 - 14 Jun 2024
  • Contributors Odoo community
    Good afternoon,
     
    I am writing to the Association to estimate my income as an OCA collaborator, to participate in everything that the community demands and needs and can help us collaborate in this important collaborative project.
    Best regards from Seville (Spain)
     
    Jose Luis Baños
    CEO I Senior Lean Service Consultan
     

    by Jose Luis Baños - 06:50 - 13 Jun 2024
  • Collaborate with OCA
    Good afternoon,
    
    I am writing to the Association to estimate my income as an OCA collaborator, to participate in everything that the community demands and needs and can help us collaborate in this important collaborative project.
    
    Best regards from Seville (Spain)
    
    Jose Luis Baños 
    CEO I Senior Lean Service Consultan
    
    

    by "Jose Baños Bellido" <jlbb1955@icloud.com> - 06:26 - 13 Jun 2024
  • Medical vertical
    G'day all, hope this week is treating all of you well!
    
    I wanted to check what's up with medical vertical repo - clearly it's abandoned and I guess there was a just reason to do that (as in, use X instead of Odoo).
    So whoever worked with medical domain - please chime in.
    
    Cheers,
    Alexey

    by Alexey Pelykh - 06:16 - 12 Jun 2024
  • Module to notify via mail of new login
    Hi,

    we are looking for an odoo module that will send an email to the user each time a new login is done (similar to what happens with social media, banking, etc.).

    Is there something ready-available in OCA?

    Thanks!

    --

    Francesco Foresti
    Sicurpharma Srl
    +39 333 8123 790

    by Francesco Foresti - 11:16 - 12 Jun 2024
  • OCA Days 2024 - Call for Speakers and Early Bird Member Registration
    Hello OCA Contributors

    I hope this message finds you well.

    As you know our OCA Days 2024 are coming up in few months time:
    OCA Days 2024
    30th September - 1st October
    Val Benoit, Liège

    I just wanted to remind our paid upOCA members, that the Early Bird registration for OCA Days 2024 finishes at the end of June, after that the price increases:
    If you aren't an OCA member already, you can still become one here for €50, then you can take advantage of the early bird discount.

    If you don't wish to become a member but would still like to attend the OCA Days 2024 - you can purchase a:
    Our call for speakers is also open, if you have a proposal to submit, we would love to hear from you. Just fill in the form on this page.

    Please, if you have any questions, do not hesitate to get in touch.
    Rebecca
    --
    Rebecca Gellatly
    General Secretary
    Odoo Community Association

    by Rebecca Gellatly (OCA) - 02:31 - 11 Jun 2024
  • odoo14 website mega-menu unexpected mobile behaviour?
    Hello,

    In odoo14 website if we add a mega-menu to the navbar then switch to mobile simulation, we get a non-expanded drop-down menu by default (see attachment megamenu1.png), I've made this screenshot made from OCA runboat.

    I'm having some sort of bug from mobile simulation in my current database: my custom mega-menu is loaded as already expanded when the website navbar is loaded.

    A few weeks ago, in a previous version of the database, that mega menu drop-down was properly loaded as non-expanded.

    I've noticed that this behaviour also applies if I create an entirely new mega-menu, so it's not strictly related to the specific item.

    I have tried to regenerate asset bundles and use the "-u all" command in order to resync database, however this pretty standard procedure didn't help for this situation.

    Do you have any hint to solve this problem?

    Thank you

    --
    Francesco Ballerini

    by Francesco Ballerini - 04:05 - 10 Jun 2024
  • contribution request
    Hi, I am Mohamed!

    I am using web_notify module for version 17 as I had to upgrade it from version 16, and there was no any module for version 17.

    I would like to contribute to your repository in order to add the upgraded module for version 17, thanks 🙏

    by Mohamed Alkobrosly - 10:46 - 10 Jun 2024