Could not get content for todoo_calculator.scss defined in bundle 'web.assets_backend'.

I had Bahmni working on server A. I crased during the installation of the upgraded version from 0.92 to 0.93. Bahmni stopped to work and I did succeed in making it works again.

We decided to backup the database and deploy a fresh installation on Server B.

Server A: Bahmni 0.92, CentOS 7.6

Server B: Bahmni 0.92, CentOS 7.6

Backup from Server A

bahmni -i local backup --backup_type=db --options=postgres

After successfully installing a fresh Bahmni on Server B, I can connect to Odoo with the basic menus.

I then restore the Server A posgres database on Server B

bahmni -i local restore --restore_type=db --options=postgres --strategy=pitr --restore_point=20220926-143025F

After doing this I can sign in to odoo but the error appears:

Could not get content for /todoo_calculator/static/src/scss/todoo_calculator.scss defined in bundle ‘web.assets_backend’.

I tried this and and restored again but the same error appears: bahmni -i local stop

yum remove -y bahmni-erp psql -Upostgres -c “drop database if exists odoo;” bahmni -i local --only bahmni-erp install bahmni -i local start

This is the log file:

2022-11-30 14:28:46,320 30547 ERROR odoo odoo.modules.registry: Model atom.event.worker has no table. 2022-11-30 14:28:46,340 30547 ERROR odoo odoo.modules.registry: Model order.save.service has no table. 2022-11-30 14:28:46,341 30547 ERROR odoo odoo.modules.registry: Model reference.data.service has no table. 2022-11-30 14:28:46,342 30547 ERROR odoo odoo.modules.registry: Model product.uom.service has no table. 2022-11-30 14:28:46,342 30547 ERROR odoo odoo.modules.registry: Model drug.data.service has no table. 2022-11-30 14:28:48,401 30547 ERROR odoo odoo.modules.registry: Model atom.event.worker has no table. 2022-11-30 14:28:48,423 30547 ERROR odoo odoo.modules.registry: Model order.save.service has no table. 2022-11-30 14:28:48,424 30547 ERROR odoo odoo.modules.registry: Model reference.data.service has no table. 2022-11-30 14:28:48,425 30547 ERROR odoo odoo.modules.registry: Model product.uom.service has no table. 2022-11-30 14:28:48,425 30547 ERROR odoo odoo.modules.registry: Model drug.data.service has no table. 2022-11-30 14:32:15,769 30547 INFO odoo odoo.sql_db: Connection to the database failed 2022-11-30 14:32:21,039 30547 INFO odoo odoo.sql_db: Connection to the database failed 2022-11-30 14:34:15,913 30547 INFO odoo odoo.sql_db: bad query: UPDATE ir_module_module SET state=‘installed’ WHERE state IN (‘to remove’, ‘to upgrade’) 2022-11-30 14:34:23,164 30547 INFO odoo odoo.sql_db: bad query: UPDATE ir_module_module SET state=‘installed’ WHERE state IN (‘to remove’, ‘to upgrade’) 2022-11-30 14:35:16,478 30547 CRITICAL odoo odoo.modules.module: Couldn’t load module hw_escpos 2022-11-30 14:35:16,479 30547 CRITICAL odoo odoo.modules.module: invalid syntax (main.py, line 19) 2022-11-30 14:35:16,488 30547 ERROR odoo odoo.modules.registry: Failed to load registry Traceback (most recent call last): File “/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/registry.py”, line 83, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File “/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py”, line 373, in load_modules force, status, report, loaded_modules, update_module, models_to_check) File “/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py”, line 270, in load_marked_modules perform_checks=perform_checks, models_to_check=models_to_check File “/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py”, line 138, in load_module_graph load_openerp_module(package.name) File “/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/module.py”, line 367, in load_openerp_module import(‘odoo.addons.’ + module_name) File “/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/module.py”, line 81, in load_module execfile(modfile, new_mod.dict) File “/opt/bahmni-erp/odoo/addons/hw_escpos/init.py”, line 4, in import controllers File “/opt/bahmni-erp/odoo/addons/hw_escpos/controllers/init.py”, line 4, in import main File “/opt/bahmni-erp/odoo/addons/hw_escpos/controllers/main.py”, line 14, in from … escpos import * File “/opt/bahmni-erp/odoo/addons/hw_escpos/escpos/escpos.py”, line 20, in import qrcode File “/usr/lib/python2.7/site-packages/qrcode-7.3.1-py2.7.egg/qrcode/init.py”, line 1, in from qrcode.main import QRCode File “/usr/lib/python2.7/site-packages/qrcode-7.3.1-py2.7.egg/qrcode/main.py”, line 19 f"Invalid box size (was {size}, expected larger than 0)“) ^ SyntaxError: invalid syntax 2022-11-30 14:35:16,494 30547 ERROR odoo odoo.addons.base.ir.ir_cron: Call of self.env[u’calendar.alarm_manager’].get_next_mail(*()) failed in Job #9 Traceback (most recent call last): File “/opt/bahmni-erp/odoo/addons/base/ir/ir_cron.py”, line 114, in _callback if self.pool != self.pool.check_signaling(): File “/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/registry.py”, line 406, in check_signaling self = Registry.new(self.db_name) File “/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/registry.py”, line 83, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File “/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py”, line 373, in load_modules force, status, report, loaded_modules, update_module, models_to_check) File “/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py”, line 270, in load_marked_modules perform_checks=perform_checks, models_to_check=models_to_check File “/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/loading.py”, line 138, in load_module_graph load_openerp_module(package.name) File “/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/module.py”, line 367, in load_openerp_module import(‘odoo.addons.’ + module_name) File “/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/modules/module.py”, line 81, in load_module execfile(modfile, new_mod.dict) File “/opt/bahmni-erp/odoo/addons/hw_escpos/init.py”, line 4, in import controllers File “/opt/bahmni-erp/odoo/addons/hw_escpos/controllers/init.py”, line 4, in import main File “/opt/bahmni-erp/odoo/addons/hw_escpos/controllers/main.py”, line 14, in from … escpos import * File “/opt/bahmni-erp/odoo/addons/hw_escpos/escpos/escpos.py”, line 20, in import qrcode File “/usr/lib/python2.7/site-packages/qrcode-7.3.1-py2.7.egg/qrcode/init.py”, line 1, in from qrcode.main import QRCode File “/usr/lib/python2.7/site-packages/qrcode-7.3.1-py2.7.egg/qrcode/main.py”, line 19 f"Invalid box size (was {size}, expected larger than 0)”) ^ SyntaxError: invalid syntax

Hello @gabykant, The error log shows that there are some issues with the database schema and some tables are missing.

Try the below steps:

  1. Login to Odoo
  2. Navigate to Apps on the menu bar.
  3. Click on any one of the Bahmni App eg. Bahmni Account and hit on Upgrade in the page that opens. This will fix any missing schemas across apps.

I did this but still not working. I reinstall all third party module.

And now I’ having another error while accessing the Point of Sales.

This is the log

2022-12-08 06:56:24,918 1943 ERROR ? werkzeug: 154.198.211.138 - - [08/Dec/2022 06:56:24] code 400, message Bad request syntax ("\x16\x03\x01\x01\t\x01\x00\x01\x05\x03\x03 \xb5(\xbe\xb4\x8d\xab\x9d\xb40'\x93_>\xa9\xc0\x98\xf1\xf7\xf8z\xb8\xe5\x1c\x12\x9 40\xf1\x9d\tq \xbf\xfc\xba\xca\xe0\x1c\x88\xd7wCAc\xbe\xcfWN\x0c\xd9\x12c\xad\xe6\xdc\xf8.\x95p\xebVu\xbd\x0b\x00&\xcc\xa8\xcc\ xa9\xc0/\xc00\xc0+\xc0,\xc0\x13\xc0\t\xc0\x14\xc0") 2022-12-08 11:02:50,684 1943 ERROR odoo odoo.http: Exception during JSON request handling. Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 642, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 684, in dispatch result = self._call_function(**self.params) File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 334, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/service/model.py", line 101, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 327, in checked_call result = self.endpoint(*a, **kw) File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 942, in __call__ return self.method(*args, **kw) File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/http.py", line 507, in response_wrap response = f(*args, **kw) File "/opt/bahmni-erp/odoo/addons/web/controllers/main.py", line 895, in call_kw return self._call_kw(model, method, args, kwargs) File "/opt/bahmni-erp/odoo/addons/web/controllers/main.py", line 887, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/api.py", line 687, in call_kw return call_kw_model(method, model, args, kwargs) File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/api.py", line 672, in call_kw_model result = method(recs, *args, **kwargs) File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/models.py", line 1338, in load_views for [v_id, v_type] in views File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/models.py", line 1338, in <dictcomp> for [v_id, v_type] in views File "/usr/lib/python2.7/site-packages/odoo-10.0.post20190619-py2.7.egg/odoo/models.py", line 1417, in fields_view_get xarch, xfields = View.postprocess_and_fields(self._name, etree.fromstring(result['arch']), view_id) File "/opt/bahmni-erp/odoo/addons/base/ir/ir_ui_view.py", line 919, in postprocess_and_fields self.raise_view_error(message, view_id) File "/opt/bahmni-erp/odoo/addons/base/ir/ir_ui_view.py", line 477, in raise_view_error raise ValueError(message) ValueError: Field iface_order_mgmt` does not exist

Error context: View pos.config.form.view [view_id: 798, xml_id: point_of_sale.view_pos_config_form, model: pos.config, parent_id: n/a]