Skip to Content

Contributors

  • Re: Form field conditional formatting
    I use the OCA/web web_tree_dynamic_colored_field module in a couple reports to highlight targets being missed or met.

    On Mon, Apr 22, 2024 at 3:22 AM Radovan Skolnik <notifications@odoo-community.org> wrote:
    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
    
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Adam Heinz - 01:43 - 22 Apr 2024
  • Re: Form field conditional formatting
    Hello Radovan,

    If you want to highlight fields you can use the decoration-* inside the Field declaration in the XML file of the view.


    I hope it helps. Best regards,
    José Vizcaya.

    On Mon, Apr 22, 2024, 03:22 Radovan Skolnik <notifications@odoo-community.org> wrote:
    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
    
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by josevizcaya0616 - 01:21 - 22 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
  • Re: Migration v14 -> v16
    Hello Nils,

    I've experienced the exact same issue before. Honestly I never did up before besides the fact that website broke the entire running instance with whichever theme you choose every time you restar the service.

    Although I found out that if you create a empty database and move onto it before entering the main database, the error solves ✨ magically ✨. 

    It's a pretty clumsy solution and if you are working with stuff like an IoT Box it won't work for you but for almost any use cases it does. I would love to find a better and real solution anyway.

    Best regards,
    José Vizcaya.

    On Sat, Apr 20, 2024, 06:57 Nils Coenen | NICO SOLUTIONS - ENGINEERING & IT <notifications@odoo-community.org> wrote:

    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.

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by josevizcaya0616 - 05:05 - 20 Apr 2024
  • AW: Migration v14 -> v16

    Hey Luis,

    that was the problem as stated in the previous reply.

     

    Thank you!

     

    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

             

    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.

     

    Von: Luis Omar López García <notifications@odoo-community.org>
    Gesendet: Samstag, 20. April 2024 16:48
    An: Contributors <contributors@odoo-community.org>
    Betreff: Re: Migration v14 -> v16

     

    ACHTUNG! Diese E-Mail stammt von außerhalb der Organisation. Klicken Sie nicht auf Links und öffnen Sie keine Anhänge, es sei denn, Sie kennen den Absender und wissen, dass der Inhalt sicher ist.

    Hello Nill,

     

    Have you tried adding -d <DBNAME> in the command line? 

     

    Cheers

     

    El sáb, 20 abr 2024 a las 6:57, Nils Coenen | NICO SOLUTIONS - ENGINEERING & IT (<notifications@odoo-community.org>) escribió:

    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.

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


     

    --

     Luis Omar López García

     +56954706938

     LinkedIn: Luis Omar Lopez

        


    by Nils Coenen - 05:00 - 20 Apr 2024
  • AW: Migration v14 -> v16

    Hey Holger,

    many thanks!

    This helped to find the problem.

    Even if the db was defined in the conf file i add with -c, i had to add -d DBNAME explicitly  to the script execution and everything is fine.

    I am not sure why this did not appear before, but thanks to your hint i was able to track the problem!

     

    Cheerio

    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

             

    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.

     

    Von: Holger Brunn <notifications@odoo-community.org>
    Gesendet: Samstag, 20. April 2024 15:17
    An: Contributors <contributors@odoo-community.org>
    Betreff: Re: Migration v14 -> v16

     

    ACHTUNG! Diese E-Mail stammt von außerhalb der Organisation. Klicken Sie nicht auf Links und öffnen Sie keine Anhänge, es sei denn, Sie kennen den Absender und wissen, dass der Inhalt sicher ist.

    the first exception is expected, the second is the one that's your problem. > "/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'): I'd set a breakpoint here and inspect the value of request. I suspect a Request object without an environment set, while it should be unbound at this point. Then you need to backtrace

     to see where this is set. -- Your partner for the hard Odoo problems https://hunki-enterprises.com


    by Nils Coenen - 05:00 - 20 Apr 2024
  • Re: Migration v14 -> v16
    Hello Nill,

    Have you tried adding -d <DBNAME> in the command line? 

    Cheers

    El sáb, 20 abr 2024 a las 6:57, Nils Coenen | NICO SOLUTIONS - ENGINEERING & IT (<notifications@odoo-community.org>) escribió:

    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.

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe



    --
     Luis Omar López García
     +56954706938
     LinkedIn: Luis Omar Lopez
        

    by luisomar242 - 04:46 - 20 Apr 2024
  • Re: Migration v14 -> v16
    the first exception is expected, the second is the one that's your problem.
    
    
    > "/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'):
    
    I'd set a breakpoint here and inspect the value of request. I suspect a 
    Request object without an environment set, while it should be unbound at this 
    point. Then you need to backtrace to see where this is set.
    
    
    -- 
    Your partner for the hard Odoo problems
    https://hunki-enterprises.com

    by Holger Brunn - 03:16 - 20 Apr 2024
  • AW: Migration v14 -> v16

    Hi Sergio,

    many thanks for the input. I just stripped the db down to discuss and website….

    The keyerror is still present. For me it looks like it could be an issue with some translations….?! Does that make sense?

     

    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

             

    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.

     

    Von: Sergio Corato <notifications@odoo-community.org>
    Gesendet: Samstag, 20. April 2024 14:12
    An: Contributors <contributors@odoo-community.org>
    Betreff: Re: Migration v14 -> v16

     

    ACHTUNG! Diese E-Mail stammt von außerhalb der Organisation. Klicken Sie nicht auf Links und öffnen Sie keine Anhänge, es sei denn, Sie kennen den Absender und wissen, dass der Inhalt sicher ist.

    Hi Nils,

    I don't know the solution, but to debug the problem I should try to uninstall some modules and re-launch the update all.

    Sergio

    Il sab 20 apr 2024, 12:57 Nils Coenen | NICO SOLUTIONS - ENGINEERING & IT <notifications@odoo-community.org> ha scritto:

    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.

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Nils Coenen - 02:16 - 20 Apr 2024
  • Re: Migration v14 -> v16
    Hi Nils,
    I don't know the solution, but to debug the problem I should try to uninstall some modules and re-launch the update all.
    Sergio

    Il sab 20 apr 2024, 12:57 Nils Coenen | NICO SOLUTIONS - ENGINEERING & IT <notifications@odoo-community.org> ha scritto:

    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.

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Sergio Corato - 02:11 - 20 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
  • Re: mrp_progress_button - V17
    Thanks Radovan and Jordi,

    Jordi I reached out to your email as per your suggestion. I think changing the syntax isn't the only issue.

    Thanks again. 
    Regards
    Rob

    On Tue, 9 Apr 2024, 15:52 Jordi Ballester Alomar, <notifications@odoo-community.org> wrote:
    Hi Rob, 

    Perhaps we can help to migrate this one. Please drop me an email to jordi.ballester at forgeflow.com to discuss further.



    On Tue, Apr 9, 2024 at 4:27 PM Radovan Skolnik <notifications@odoo-community.org> wrote:
    Hi,
    
    in v17 the syntax of views changed a bit. You need to change this line
    	attrs="{'invisible': [('state', '!=', 'confirmed')]}"
    to something like this:
    	invisible="state != 'confirmed'"
    
    Similarly
    	attrs="{'invisible': [('state', '!=', 'progress')]}"
    to
    	invisible="state != 'progress'"
    
    That should do the trick.
    
    Best regards
    
    	Radovan Skolnik
    
    On utorok 9. apríla 2024 16:17:37 CEST Rob Henderson wrote:
    
    
    
    > 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
    
    
    
    > 
    
    
    
    > _______________________________________________
    
    
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15 [1]
    
    
    
    > Post to: mailto:contributors@odoo-community.org
    
    
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe [2]
    
    
    
    > 
    
    
    
    > 
    
    
    
    > 
    
    
    
    > [1] https://odoo-community.org/groups/contributors-15
    
    
    
    > [2] https://odoo-community.org/groups?unsubscribe
    
    
    
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe



    --
    Jordi Ballester Alomar 
    CEO & Founder, ForgeFlow
    Spain: (+34) 629530707 | USA: (+1) 646 980 4659 | Denmark: (+45) 78 78 21 89 - Ext. 101


          



    The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Rob Henderson - 10:16 - 13 Apr 2024
  • Re: queue_job, how to set time limit for jobrunner
    Thanks a lot Tom for your recipe, this can be very helpful.

    Kitti

    On Sat, Apr 13, 2024, 9:12 PM Tom Blauwendraat <notifications@odoo-community.org> wrote:
    On 4/12/24 19:07, Stéphane Bidoul wrote:
    
    
    > If you need long running jobs, you need to launch a second Odoo 
    
    
    > instance on the same database with different time limits.
    
    Instead of starting the whole Odoo, it's also possible to start the 
    jobrunner as a separate service like this:
    
    python -c "import odoo; odoo.tools.config.parse_config(); from 
    odoo.addons import queue_job; runner = 
    queue_job.jobrunner.QueueJobRunner.from_environ_or_config(); runner.run()"
    
    I don't remember why we chose this or where I got it from, but it works.
    
    Maybe it helps! (Probably here you'd have to add an extra line of Python 
    to change the cpu_limit setting after parsing the config)
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Kitti Upariphutthiphong - 08:06 - 13 Apr 2024
  • Re: queue_job, how to set time limit for jobrunner
    On 4/12/24 19:07, Stéphane Bidoul wrote:
    
    > If you need long running jobs, you need to launch a second Odoo 
    
    > instance on the same database with different time limits.
    
    Instead of starting the whole Odoo, it's also possible to start the 
    jobrunner as a separate service like this:
    
    python -c "import odoo; odoo.tools.config.parse_config(); from 
    odoo.addons import queue_job; runner = 
    queue_job.jobrunner.QueueJobRunner.from_environ_or_config(); runner.run()"
    
    I don't remember why we chose this or where I got it from, but it works.
    
    Maybe it helps! (Probably here you'd have to add an extra line of Python 
    to change the cpu_limit setting after parsing the config)
    
    

    by Tom Blauwendraat - 04:11 - 13 Apr 2024
  • Re: queue_job, how to set time limit for jobrunner
    Hi Stephane

    Thanks for the confirmation. I also came across this README and it confirms what you say.


    Unlike the regular job runner, where jobs are dispatched to the HttpWorkers, jobs are processed on the CronWorker threads by the job runner crons. This is a design decision because:

    Thanks!
    Kitti



    On Sat, Apr 13, 2024 at 12:07 AM Stéphane Bidoul <notifications@odoo-community.org> wrote:
    Hi Kitti,

    The jobs triggered by queue_job run in regular workers. So limit_time_cpu/limit_time_real apply (the job runner actually launch them with an HTTP request).
    limit_time_real_cron is exclusively for Odoo regular cron jobs (Scheduled Actions).

    If you need long running jobs, you need to launch a second Odoo instance on the same database with different time limits.

    Best regards,

    -Stéphane

    On Fri, Apr 12, 2024 at 6:06 PM Kitti Upariphutthiphong <notifications@odoo-community.org> wrote:
    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.



    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Kitti Upariphutthiphong - 03:56 - 13 Apr 2024
  • Re: queue_job, how to set time limit for jobrunner
    Hi Kitti,

    The jobs triggered by queue_job run in regular workers. So limit_time_cpu/limit_time_real apply (the job runner actually launch them with an HTTP request).
    limit_time_real_cron is exclusively for Odoo regular cron jobs (Scheduled Actions).

    If you need long running jobs, you need to launch a second Odoo instance on the same database with different time limits.

    Best regards,

    -Stéphane

    On Fri, Apr 12, 2024 at 6:06 PM Kitti Upariphutthiphong <notifications@odoo-community.org> wrote:
    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.



    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Stéphane Bidoul - 07:06 - 12 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
  • Re: Partner Firstname 17.0 Migration
    Hi Friedrich

    The module is already migrated


    Best regards
    --------------------------------
    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

    Le mar. 9 avr. 2024, 03:42, friedrich.sauer@servicum.com <notifications@odoo-community.org> a écrit :

    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


    __________________________________________________

     

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Cyril VINH-TUNG - 06:41 - 9 Apr 2024
  • Re: mrp_progress_button - V17
    Hi Rob, 

    Perhaps we can help to migrate this one. Please drop me an email to jordi.ballester at forgeflow.com to discuss further.



    On Tue, Apr 9, 2024 at 4:27 PM Radovan Skolnik <notifications@odoo-community.org> wrote:
    Hi,
    
    in v17 the syntax of views changed a bit. You need to change this line
    	attrs="{'invisible': [('state', '!=', 'confirmed')]}"
    to something like this:
    	invisible="state != 'confirmed'"
    
    Similarly
    	attrs="{'invisible': [('state', '!=', 'progress')]}"
    to
    	invisible="state != 'progress'"
    
    That should do the trick.
    
    Best regards
    
    	Radovan Skolnik
    
    On utorok 9. apríla 2024 16:17:37 CEST Rob Henderson wrote:
    
    
    > 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
    
    
    > 
    
    
    > _______________________________________________
    
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15 [1]
    
    
    > Post to: mailto:contributors@odoo-community.org
    
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe [2]
    
    
    > 
    
    
    > 
    
    
    > 
    
    
    > [1] https://odoo-community.org/groups/contributors-15
    
    
    > [2] https://odoo-community.org/groups?unsubscribe
    
    
    
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe



    --
    Jordi Ballester Alomar 
    CEO & Founder, ForgeFlow
    Spain: (+34) 629530707 | USA: (+1) 646 980 4659 | Denmark: (+45) 78 78 21 89 - Ext. 101


          



    The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.

    by Jordi Ballester Alomar - 04:50 - 9 Apr 2024