Skip to Content

Contributors

  • server-tools pull request help
    Dear OCA maintainers
    
    Could someone please check out my pull request trying to migrate 
    iap_alternative_provider to odoo 17.
    The module is very small and truly minor changes have been made, but a 
    client needs this functionality for a dependent module.
    Here is the URL of the pull request: 
    https://github.com/OCA/server-tools/pull/2914
    
    Thank you for your assistance.
    Best regards,
    Luka Zorko
    
    
    
    

    by "luka zorko" <lukaz@guru.si> - 04:11 - 23 Apr 2024
  • purchasing a set of products
    Hi!
    We have several products which we purchase together. For example some 
    laptops are purchased together with RAM and a SSD, but which are 
    separate products for us in Odoo. I can't expect from our purchase 
    department to remember all the components. To make purchasing error 
    prone and easy, we configured a laptop *kit* which BOM contains a laptop 
    *barebone*, RAM, SSD. So our purchase department can simply buy the 
    laptop kit and don't need to remember which components are included in 
    which product.
    
    In general this setup works but it has the following shortcomings:
    
    The reordering rules need to be configured for the barebone product. 
    Once the minimum amount is reached a PO will be created automatically. 
    The purchase department needs to remember to replace the barebone laptop 
    with the barebone kit. Obviously deactivating "Can be Purchased" can't 
    be applied here. We support this by stating "DON'T BUY" in the product 
    barebone's name.
    
    Generally, the amount of products and BOMs is doubling, increasing the 
    overall complexity.
    
    Do you have any better idea how to deal with such situation?
    
    Best regards,
    Jan
    

    by Jan Suhr - 03:11 - 23 Apr 2024
  • Form field conditional formatting
    Hello,
    
    I am looking for something to allow me to conditionally highlight (i.e. decoration would be sufficient - no need for custom CSS styles) form(!) fields. I have a feeling there is something or I am missing something very obvious but I am at lost here. Any suggestions?
    
    Thank you very much. Best regards
    
    	Radovan Skolnik
    
    
    

    by Radovan Skolnik - 09:21 - 22 Apr 2024
  • Migration v14 -> v16

    Dear Contributors,

    i am struggling with a migration. 

     

    From 14 to 15 it went very well and smooth. After fixing some minor issues, updating Odoo 15 with  -u all is performed without any issues left.

     

    After migrating to V16, the database is accessible without any problems. I can update all installed modules one by one by updating them from the app module. 

     

    Anyway… When i run the update of all modules with -u all in v16 i am getting a keyerror with the dbname:

     

    2024-04-20 10:31:48,171 44842 INFO DBNAME odoo.addons.base.models.ir_module: module website: loading translation file de for language de_DE 

    2024-04-20 10:31:49,257 44842 WARNING DBNAME odoo.modules.loading: Transient module states were reset 

    2024-04-20 10:31:49,258 44842 ERROR DBNAME odoo.modules.registry: Failed to load registry 

    Traceback (most recent call last):

      File "/Users/user/PycharmProjects/odoo/v16/odoo-server/odoo/modules/registry.py", line 64, in __new__

        return cls.registries[db_name]

      File "<decorator-gen-8>", line 2, in __getitem__

      File "/Users/user/PycharmProjects/odoo/v16/odoo-server/odoo/tools/func.py", line 87, in locked

        return func(inst, *args, **kwargs)

      File "/Users/user/PycharmProjects/odoo/v16/odoo-server/odoo/tools/lru.py", line 34, in __getitem__

        a = self.d[obj]

    KeyError: 'DBNAME'

     

    During handling of the above exception, another exception occurred:

     

    Traceback (most recent call last):

      File "/Users/user/PycharmProjects/odoo/v16/odoo-server/odoo/modules/registry.py", line 90, in new

        odoo.modules.load_modules(registry, force_demo, status, update_module)

      File "/Users/user/PycharmProjects/odoo/v16/odoo-server/odoo/modules/loading.py", line 484, in load_modules

        processed_modules += load_marked_modules(cr, graph,

      File "/Users/user/PycharmProjects/odoo/v16/odoo-server/odoo/modules/loading.py", line 372, in load_marked_modules

        loaded, processed = load_module_graph(

      File "/Users/user/PycharmProjects/odoo/v16/odoo-server/odoo/modules/loading.py", line 304, in load_module_graph

        module.write({'state': 'installed', 'latest_version': ver})

      File "/Users/user/PycharmProjects/odoo/v16/odoo-server/addons/website/models/ir_module_module.py", line 79, in write

        if request and request.db and request.context.get('apply_new_theme'):

      File "/Users/user/PycharmProjects/odoo/v16/odoo16env/lib/python3.8/site-packages/werkzeug/local.py", line 348, in __getattr__

        return getattr(self._get_current_object(), name)

      File "/Users/user/PycharmProjects/odoo/v16/odoo-server/odoo/http.py", line 1266, in context

        return self.env.context

    AttributeError: 'NoneType' object has no attribute 'context'

     

     

    I tried it on 2 different machines to make sure, that the enviroment is not the culprit.

    Before digging deeper and deeper, i am trying to ask you if somebody knows what to do now!

     

    Any hint is highly appreciated. 

     

    All the best

    Nils

     

    Ein Bild, das Text, Computer, Person, Menschliches Gesicht enthält.

Automatisch generierte Beschreibung

    Nils Coenen

    Inhaber

    Phone: +49 (0)4298-4667492 

    Web: www.nico-solutions.de  

    Email: nils.coenen@nico-solutions.de

    signature_1178921532   signature_2579273939   signature_2533642704   signature_3939821989

    NICO SOLUTIONS – ENGINEERING & IT
    Dr.-Ruckert-Str. 1G, DE-28865 Lilienthal

    Confidentiality Note: This email may contain confidential and/or private information. If you received this email in error please delete and notify sender.


    by Nils Coenen - 12:56 - 20 Apr 2024
  • Odoo v17 barcode app issues
    hello,

    I am facing an issue related to the barcode mobile app in odoo v17.
    step to produce this issue.
    1. create a purchase order with one product having 15 quantities and confirm it.
    2. go to the barcode application and open its receipt.
    3. now scan the product and add 10 quantities.
    4. go back or refresh the page then it's updating the demand quantity from 15 to 10.
    5. so when I open that receipt again it's not allowing me to proceed with the remaining 5 quantities.

    so I checked this issue and found that the odoo base has not defined 'reserved_uom_qty' in stock.move.line.
    is there anything related to this?
    can you guys please help me out with this issue?


    --
    Thanks and Regards,
    LogoLogo
    Dakshal Jethava
    Associate Software Engineer 
    M: +91 -6355750829
    P: +91 -9409265218/ EXTN: 1001
    E: dakshal.jetava@brainvire.com
    W: www.brainvire.com
    Facebook icon LinkedIn icon Twitter icon Blog
    Inc MagazineDeloitteSilicon Valley's Fastest Growing  CompanyReviewed on clutchGreat Place to Work

    Disclaimer: The information transmitted by this email is intended only for the person or entity to which it is addressed. This email may contain proprietary, business-confidential and/or privileged material. Please consider the environment before printing.


    by dakshal - 02:51 - 17 Apr 2024
  • queue_job, how to set time limit for jobrunner
    Dear community,

    So far, when there is a job queue that spend long time to run, it seem time limit now follow "limit_time_cpu".

    Which surprise me, because I though it should follow "limit_time_real_cron" as in Odoo cron.

    limit_time_cpu which is for http request, normally not a high value, i.e, 60 seconds. But to accommodate the long running job, I am forced to expand the value which can be harmful.

    Am I missing something?

    Many thanks
    Kitti U.




    by Kitti Upariphutthiphong - 06:06 - 12 Apr 2024
  • mrp_progress_button - V17
    Hi

    Newbie message. Can anyone provide any info on whether there will be a V17 version of the module:
    mrp_progress_button

    I have successfully used the V15 version in V16, but not so good in V17.

    Is there somewhere I can ask for a paid upgrade if this is not a priority?

    Regards
    Rob

    by Rob Henderson - 04:16 - 9 Apr 2024
  • Partner Firstname 17.0 Migration

    Hi all, 

    my company uses the partner_firstname module in odoo 16E. We are currently in the process of upgrading to 17. Therefore, I am interested in the development roadmap for the official version 17 release of the partner_firstname module. It is not yet published on the official OCA or Odoo App Stores, however, there is a folder in the v17 Git branch of the OCA modules. Git Link

    I would appreciate any information on the timeline or wheather the Git module is still ready to be used.

    Thanks in advance!

    Friedrich Sauer


    _________________________________________


    Friedrich Sauer

    Head of Technology Operations

    _________________________________________



    Servicum GmbH

    Energiewende im Handwerk

    +49 172 1324603

    friedrich.sauer@servicum.com


    __________________________________________________

     


    by Friedrich Sauer - 03:41 - 9 Apr 2024
  • Fwd: Inquiry Regarding Migration of Apps to Odoo Version 17
    Dears

    I hope this email finds you well. I am reaching out to inquire about the migration status of the following apps to Odoo Version 17:

    1. Product Multi Company (https://apps.odoo.com/apps/modules/15.0/product_multi_company/)
    2. Sale Delivery State (https://odoo-community.org/shop/sale-delivery-state-6342#attr=11239)

    We are currently in need of these apps for our new clients, and it's crucial for us to have them compatible with the latest version of Odoo. Could you please provide an update on when these apps are expected to be migrated to Odoo Version 17?

    Your prompt response would be greatly appreciated as it will help us plan accordingly for our upcoming projects. Thank you very much for your attention to this matter.

    Looking forward to hearing from you soon.

    Best regards,

    --
    Melhores Cumprimentos | Best Regards
    Person Banner
    Website www.arxi.pt Phone +351 244 237 810
    (chamada para a rede fixa nacional)
    Linkedin Facebook
    Person
    Warning Esta mensagem contém informação de natureza confidencial e é exclusivamente dirigida ao(s) destinatário(s) indicado(s). Se por engano receber este e-mail agradecemos que não o copie nem o reenvie e que nos notifique do ocorrido através do email de resposta. Qualquer uso do seu conteúdo é um ato ilegal.
    Warning This message contains confidential information and is addressed exclusively to the designated addressee. If you received this email by mistake we appreciate that you do not copy or resend it and that you notify us of via the reply email. Any use of its content is strictly illegal.

    by Andrea Delgado - 03:27 - 3 Apr 2024
  • Stock quant history
    Dear contributors,

    Using odoo 14.0, we would like to consult physical stock in the past date  for analysis and reporting. Consulting those stock should let user  to group and/or filter by product/location/lot information.

    Odoo's stock module provide Inventory Report (which displays current stock: `stock.quant`s at now()) where users are able to click on the `Inventory at Date` button which redirect users to product view with selected date in context to re-compute quantities at that time without able to filter by lot.

    I've seen `stock_quantity_history_location` and `stock_report_quantity_by_location` in OCA/stock-logistics-reporting repo but don't fit our needs.

    Ideally we would like to recreate stock.quant for a given date according to a possible set of criteria set by the users (restricted by locations / lot / product).

    Does anyone work on something like this on any odoo version? Does it make sense to suggest a new module `stock_quant_history like this in the OCA/stock-logistics-reporting repo? Any suggestions/advice you'll like to share are welcome!

    Regards,

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

    by Pierre Verkest - 02:20 - 3 Apr 2024
  • Tree/List item "open modal form"

    Dear community,


    I'm looking for a module that implements a feature similar to enabling "open_form_view" on a tree/list, yet that opens the form as a modal overlay and allows editing.

    The use case: on products, there are extra fields with HTML values ("product details") that are copied to the sale order line and may be modified (alike "sale description").
    For obvious UX reasons, having HTML fields in a tree/list is not great, yet editing them somehow is still needed.

    I've considered alternative of setting  editable to False does not do the trick as that form does not have all the fields exposed that are visible in the tree/list.

    If no such thing exists, I'm considering making a base_list_item_open module that would expand or alter the open_form_view approach.

    Cheers to all,
    Alexey

    by Alexey Pelykh - 09:35 - 2 Apr 2024
  • Contribution

    Bonjour à l'équipe OCA,

    Je souhaite pouvoir rejoindre les discords OCA et commencer à contribuer !

    A vous lire,

    Bien à tous,

    --
    Cordialement,

    ak


    by Aymeric KREMER - 12:27 - 2 Apr 2024
  • subscription or contracts?
    Hi!
    I would like to use some functionality of recurring sales and/or 
    recurring invoices. Looking at [1] I see "contract*" and 
    subscription_oca. Both seem to do pretty much the same and I'm wondering 
    which one to use.
    
    Subscriptions seem to be a bit easier to use. But are there any 
    technical aspects which one solution can do but not the other?
    
    It seems that subscription_oca matches the official documentation [2] so 
    maybe it's an OCA maintained former Odoo SA implementation? And 
    contracts are an independent implementation? In this case which one has 
    the more promising future path?
    
    Best regards,
    Jan
    
    [1] https://github.com/OCA/contract/
    [2] 
    https://www.odoo.com/documentation/15.0/applications/sales/subscriptions.html
    

    by Jan Suhr - 10:21 - 29 Mar 2024
  • Group based editable tree vs form pop up edition?
    Dear Odoo experts,

    CONTEXT:
    More and more we are being contacted by companies who already use Odoo in some countries and would like to use it in Brazil too using the multi-companies approach. For service companies it's nearly possible (and a no go for industries because still too many side effects to deal with).

    As we isolated most of the fiscal craziness in the l10n_br_fiscal module with its own tables and UI, we can inject the Brazilian localization pretty smoothly in other modules (specially through our l10n_br_account module mediation).

    PROBLEM:
    What is still a problem is about half of the users in a Brazilian company need to check or even edit many fiscal parameters in orders lines or invoice lines (see screenshots).

    So we used to force the popup form based edition for these lines, that is we inherit the tree element and remove the editable="bottom" attribute. 

    This however is very invasive for the non Brazilian users (because it is slower, because they might have customized the tree view). It also causes friction with some other modules that expect the default inline tree edition.

    To fix this I recently made a POC where we would have advanced Brazilian fiscal groups where users would see use these popup forms while many users would use the default inline tree edition.

    The problem is that it was using the groups_id in ir.ui.view to enable or not the group based view selection. But this feature has been removed in Odoo v16 to make the view caching easier:

    Do you have an alternative solution to suggest for v16? As views will be cached without group consideration I imagine the selection between editable tree and form will need to happen on the client side... 
    I tried to add a groups=... on the attribute tag that overrides the editable property but it is not effective...

    Do you know a simple Javascript approach?
    Alternatively would could have a button in the tree that would open the form popup. Ideally that would be a Javascript action that doesn't require saving the form (a server side action would also have trouble finding a proper non inline form view to inherit). Such a Javascript button to switch the view could even be a generic OCA module. Any pointers on how to do it?

    Thank you.


    --
    Raphaël Valyi
    Founder and consultant


    by "Raphaël Valyi" <rvalyi@akretion.com> - 05:16 - 27 Mar 2024
  • Issues when running tests
    Hello,

    I am trying to run tests in my Odoo instance by adding --test enable but I'm having some issues. I am not used to run tests so I'm probably just missing something.

    When I try to run tests for module sale_product_multi_add by launching command:

    python3 odoo-bin -c odoo.conf -d dbname -u sale_product_multi_add --test-enable 

    tests immediately fails because `self.env.ref()` cannot read external ids for master-datas. You can see the complete log in attached .txt

    I have also tried to run the same command for module sale_product_brand_exception which also checks for master-data and I got the same error.

    It seems like an issue with the environment, but addons path is defined in odoo.conf and working well outside of tests. I have also tried to pass --addons-path parameter in the CLI command but the result didn't changed.

    I hope I have provided enough informations, if not, let me know.
    Do you have any suggestions?

    Thanks,
    Fra B.


    Privo di virus.www.avast.com

    by Francesco Ballerini - 08:57 - 26 Mar 2024
  • Manufacturing Operations - Duration UoM
    Hello, Community. 

    For some types of manufacturing the Operation Duration can be planned in days, rather than in minutes. 

    Are there any OCA modules available which will override the default Duration of the BoM / Operations? 

    Thank you.

    by Arthur Franklin Smith - 04:35 - 23 Mar 2024
  • Stock valuation based on warehouse/location - food for thought ;-)
    Hi,
    
    today I have had an interesting conversation about Odoo's shortcoming regarding stock valuation. I was told it is common practice and in some cases part of the legislation in here to have a different stock valuation in different warehouses/locations. For example I commonly purchase a certain type of notebook which I store in a warehouse A from which I also sell it. Now I have won a big contract to supply 500 of such notebooks somewhere. I contact my supplier, arrange a big discount for the 500 notebooks and have them sent to warehouse B (a project warehouse). The requirement would be that the valuation of stock in warehouse B is different (based on that heavily discounted purchase) from the one in warehouse A and these 2 shouldn't mix.
    
    Have you ever encountered such requirement? Is this common situation? I do not really need to solve this but it just got me curious. I guess it should be possible to create such a thing but that would mean patching stock_account, purchase_stock, stock_landed_costs and mrp_subcontracting_[purchase|dropshipping] and we would have possible as many stock valuation layer entries for each product as warehouses/locations that we deal with separately. Any inputs/comments would be welcome.
    
    Best regards
    
    	Radovan Skolnik
    
    
    
    

    by Radovan Skolnik - 07:01 - 20 Mar 2024
  • [POS][16.0]Any way to sell a same product in different UoM
    Hi everyone,

    I'm wondering if there is any way to have a product in the pos where you can choose the UoM you want tu use for the order.
    I' would like to prevent the creation of  a second product with different UoM and managing the inventory of 2 product.

    Anyone already faced the same issue ?

    Regards

    Vertical seprator

    Florent THOMAS

    ☎ +33 972 457 755
    florent.thomas@mind-and-go.com

    Mind & Go
    14, Rue Pierre Cartelet | 66000 PERPIGNAN

    Logo Mind And Go Facebook Mind And Go Twitter Mind And Go LinkedIn Mind And Go

    by Florent THOMAS - 11:22 - 20 Mar 2024
  • Help! Screen recording tool being discountinued
    Hi all, 

    my question is not odoo-related but very relevant for operations in my company. 

    We've been using this tool for screen recording and sharing: https://recordit.co/ 

    Unfortunately it will be discontinued by the end of the month and I'm looking for a replacement. 

    This tool was specifically user friendly as installing the desktop app (mac/win covering 99% of customers) it allowed for:

    - having a quick shortcut to screen recording
    - when recording ended, a link was automatically generated for sharing the video
    - no storage limit or preservation issues (links would still be working after months)

    Now for this last point we'd be ok with paying a premium storage plan or something like that, the important thing is to provide anyone working with us an easy way to quickly record and share screen recording. 

    What are your suggestions?

    Thanks!

    --

    Francesco Foresti
    Sicurpharma Srl
    +39 333 8123 790

    by Francesco Foresti - 11:21 - 19 Mar 2024
  • Introducing a new module: changing the title of the browser window
    Dear ladies and gentlemen,

    My name is Stefan Pannier and I work as a project manager for the company "Intero Technologies GmbH" in Stralsund. We have many developers with a wide range of experience. Many of them have been working with Odoo for several years.
    We just want to start getting more involved with the OCA. In your description says something about availability. What exactly do you mean by that?

    We would like to present a new module at the OCA and get to know this process so that we can publish other modules.

    New module:
    The new module is for the project "Web" and it is about changing the title of the browser window. The standard "Odoo" is replaced by a text of your choice. The new title can be set for each company.

    Is it the right repository?
    Does it make sense to include this module in the OCA?

    Best regards

    Stefan Pannier
    Projektmanager

     
    Tel.: +49 3831 44557-0
    E-Mail: s.pannier@intero-technologies.de
     
    Intero Technologies GmbH
    Heinrich-Heine-Ring 76
    18435 Stralsund
    twitter iconxing iconfacebook iconlinkedin icon
     
    Logo Gold
     
    Weitere Standorte der Intero Technologies GmbH
    Bessemerstraße 82
    12103 Berlin
    Simon-von-Utrecht-Straße 1
    20359 Hamburg
     
    Kleiststraße 23
    65187 Wiesbaden
    Charles-Darwin-Ring 4
    18059 Rostock
     
    Sperberweg 28
    50829 Köln
    Von-Harnack-Straße 27-28
    06712 Zeitz
     
     
     
    Geschäftsführer: Frank Löffler, Lars Lifson USt-Id: DE 251251697, AG Stralsund HRB 7076
     
    Alle Informationen zum Datenschutz gem. Art. 13 finden Sie hier. Auf Wunsch senden wir Ihnen diese Informationen gerne auch per PDF oder in gedruckter Form zu.

    by oca@intero-technologies.de - 10:26 - 19 Mar 2024