跳至内容
菜单
此问题已终结
2 回复
1728 查看

I've deleted the web.base.url entry in settings-technical-system parameters.

Now I get this error:

Error message:

Error to render compiling AST
TypeError: unsupported operand type(s) for +: 'bool' and 'str'
Template: web.frontend_layout
Path: /t/html/head/t[6]/t[1]
Node: 
            

The error occured while rendering the template web.frontend_layout and evaluating the following expression: 

Any idea on how to solve this problem.

形象
丢弃
最佳答案

Hi, The below two solutions worked with me.

You can add a record from DB by using insert statement as below, don't forget to set the URL as yours:

insert into ir_config_parameter (key,value,create_uid,create_date,write_uid,write_date)
values('web.base.url','http://localhost:8069/',1,'2022-06-15 00:00:00',1,'2022-06-15 00:00:00')

Also, You can stop Odoo service and  run Odoo from command line and upgrade base module. This will upgrade all modules

From the path of odd-bin file you can run:

python3 odoo-bin -c [Path to Odoo config file] -u base -d [Your DB Name]


形象
丢弃
编写者

Thanks Mr. Waleed.
Actually I don't have access to odoo via terminal, I just accidentally removed that line and logged out. Any easier way to access odoo (say in a debug mode)?
One more question please, what's the exact odoo config file?

Hi Ali, To fix this issue you need an access to the the server or DB through any DB browser like pgadmain or any other browser. (You have to ask the system admin to solve it)

Odoo config file or Configuration file is one of the most important file in odoo. This file contains the parameters to run the Odoo like Host, super admn password, DB , DB User , DB password, ..etc More details: https://www.odoo.com/documentation/15.0/administration/install/deploy.html#id3

编写者

I really appreciate it Sir.
I hope I get the full access to the server.

编写者

I got the credentials to access cloud.digitalocean.com where odoo is installed, but how can I access the DB?

编写者

Thank you Thank You Thank You
Your solution is amazing, you saved my life. EVERYTHING IS UP AND RUNNING AGAIN.

编写者

Can I ask you another question, please?
The reason I deleted the web.base.url is the unaligned interface views of odoo.
I guess a style sheet is missing or corrupt.

编写者 最佳答案

I found a solution for the styling problem, in developer mode go to the bug icon in the upper right menu and select regenerate assets bundles.


形象
丢弃