Archives
- By thread 1419
-
By date
- August 2019 59
- September 2019 118
- October 2019 165
- November 2019 97
- December 2019 35
- January 2020 58
- February 2020 204
- March 2020 121
- April 2020 172
- May 2020 50
- June 2020 158
- July 2020 85
- August 2020 94
- September 2020 193
- October 2020 277
- November 2020 100
- December 2020 159
- January 2021 38
- February 2021 87
- March 2021 146
- April 2021 73
- May 2021 90
- June 2021 86
- July 2021 123
- August 2021 50
- September 2021 68
- October 2021 66
- November 2021 74
- December 2021 75
- January 2022 98
- February 2022 77
- March 2022 68
- April 2022 31
- May 2022 59
- June 2022 87
- July 2022 141
- August 2022 38
- September 2022 73
- October 2022 152
- November 2022 39
- December 2022 50
- January 2023 93
- February 2023 49
- March 2023 106
- April 2023 47
- May 2023 69
- June 2023 92
- July 2023 64
- August 2023 103
- September 2023 91
- October 2023 101
- November 2023 94
- December 2023 46
- January 2024 75
- February 2024 79
- March 2024 104
- April 2024 63
- May 2024 40
- June 2024 160
- July 2024 80
- August 2024 70
- September 2024 62
- October 2024 121
- November 2024 117
- December 2024 89
- January 2025 59
- February 2025 104
- March 2025 96
- April 2025 107
- May 2025 52
- June 2025 72
- July 2025 60
- August 2025 81
- September 2025 124
- October 2025 63
- November 2025 22
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.Here's how it works: https://www.odoo.com/documentation/17.0/developer/reference/frontend/javascript_reference.html#decorationsI 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: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
Nils Coenen
Inhaber
Phone: +49 (0)4298-4667492
NICO SOLUTIONS – ENGINEERING & IT
Dr.-Ruckert-Str. 1G, DE-28865 LilienthalConfidentiality 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
Nils Coenen
Inhaber
Phone: +49 (0)4298-4667492
NICO SOLUTIONS – ENGINEERING & IT
Dr.-Ruckert-Str. 1G, DE-28865 LilienthalConfidentiality 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 -> v16ACHTUNG! 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ó:
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
Nils Coenen
Inhaber
Phone: +49 (0)4298-4667492
NICO SOLUTIONS – ENGINEERING & IT
Dr.-Ruckert-Str. 1G, DE-28865 LilienthalConfidentiality 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
Skype: luisomar3@hotmail.com
Github: https://github.com/luisomar3
LinkedIn: Luis Omar Lopez
_______________________________________________
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 - 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
Nils Coenen
Inhaber
Phone: +49 (0)4298-4667492
NICO SOLUTIONS – ENGINEERING & IT
Dr.-Ruckert-Str. 1G, DE-28865 LilienthalConfidentiality 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 -> v16ACHTUNG! 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 backtraceto see where this is set. -- Your partner for the hard Odoo problems https://hunki-enterprises.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 Nils Coenen - 05:00 - 20 Apr 2024 -
Re: Migration v14 -> v16
Hello Nill,Have you tried adding -d <DBNAME> in the command line?CheersEl sáb, 20 abr 2024 a las 6:57, Nils Coenen | NICO SOLUTIONS - ENGINEERING & IT (<notifications@odoo-community.org>) escribió: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
Nils Coenen
Inhaber
Phone: +49 (0)4298-4667492
NICO SOLUTIONS – ENGINEERING & IT
Dr.-Ruckert-Str. 1G, DE-28865 LilienthalConfidentiality 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+56954706938Skype: luisomar3@hotmail.comGithub: https://github.com/luisomar3LinkedIn: 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
Nils Coenen
Inhaber
Phone: +49 (0)4298-4667492
NICO SOLUTIONS – ENGINEERING & IT
Dr.-Ruckert-Str. 1G, DE-28865 LilienthalConfidentiality 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 -> v16ACHTUNG! 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:
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
Nils Coenen
Inhaber
Phone: +49 (0)4298-4667492
NICO SOLUTIONS – ENGINEERING & IT
Dr.-Ruckert-Str. 1G, DE-28865 LilienthalConfidentiality 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_______________________________________________
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.SergioIl sab 20 apr 2024, 12:57 Nils Coenen | NICO SOLUTIONS - ENGINEERING & IT <notifications@odoo-community.org> ha scritto: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
Nils Coenen
Inhaber
Phone: +49 (0)4298-4667492
NICO SOLUTIONS – ENGINEERING & IT
Dr.-Ruckert-Str. 1G, DE-28865 LilienthalConfidentiality 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
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
Nils Coenen
Inhaber
Phone: +49 (0)4298-4667492
NICO SOLUTIONS – ENGINEERING & IT
Dr.-Ruckert-Str. 1G, DE-28865 LilienthalConfidentiality 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, 

Dakshal Jethava Associate Software Engineer M: +91 -6355750829 P: +91 -9409265218/ EXTN: 1001 E: dakshal.jetava@brainvire.com W: www.brainvire.com






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.RegardsRobOn 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 AlomarCEO & Founder, ForgeFlowSpain: (+34) 629530707 | USA: (+1) 646 980 4659 | Denmark: (+45) 78 78 21 89 - Ext. 101www.forgeflow.com | Email: jordi.ballester@forgeflow.com | Twitter: /jordibforgeflow | Linkedin: https://www.linkedin.com/company/forgeflow/
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.KittiOn 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 StephaneThanks 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!KittiOn 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éphaneOn 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 thanksKitti 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éphaneOn 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 thanksKitti 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 thanksKitti U.
by Kitti Upariphutthiphong - 06:06 - 12 Apr 2024 -
Re: Partner Firstname 17.0 Migration
Hi FriedrichThe module is already migratedBest 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.comLe 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
__________________________________________________
_______________________________________________
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 AlomarCEO & Founder, ForgeFlowSpain: (+34) 629530707 | USA: (+1) 646 980 4659 | Denmark: (+45) 78 78 21 89 - Ext. 101www.forgeflow.com | Email: jordi.ballester@forgeflow.com | Twitter: /jordibforgeflow | Linkedin: https://www.linkedin.com/company/forgeflow/
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