origin/12.0
ADHOC Odoo odoo-support Modules
Test me on odoo.sh: https://www.odoo.sh/project/ingadhoc-odoo-support/builds
**Adhoc SA** - www.adhoc.com.ar
odoo Support Management Modules
License: GNU Lesser General Public License v3.0
origin/12.0
ADHOC Odoo odoo-support Modules
Test me on odoo.sh: https://www.odoo.sh/project/ingadhoc-odoo-support/builds
I took me a while to figure out the cause. Now I'm sure it's because of adhoc_modules
.
I'm working on a dev database that's a copy of my production database, where this module is installed. While trying to run tests with openerp-server --test-enable
I've encountered this error:
2016-11-05 14:37:54,323 1 CRITICAL binderplus openerp.service.server: Failed to initialize database `binderplus`.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/service/server.py", line 936, in preload_registries
registry = RegistryManager.new(dbname, update_module=update_module)
File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 370, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 326, in load_modules
modobj.button_upgrade(cr, SUPERUSER_ID, ids)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/module/module.py", line 559, in button_upgrade
if dep.state == 'unknown':
File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 835, in __get__
self.determine_value(record)
File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 937, in determine_value
self.compute_value(recs)
File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 893, in compute_value
self._compute_value(records)
File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 885, in _compute_value
self.compute(records)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 266, in wrapper
return new_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 443, in new_api
result = [method(rec, *args, **kwargs) for rec in self]
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/module/module.py", line 822, in _compute_state
self.state = self.depend_id.state or 'unknown'
File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 851, in __set__
value = self.convert_to_cache(value, record)
File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 1429, in convert_to_cache
raise ValueError("Wrong value for %s: %r" % (self, value))
ValueError: Wrong value for ir.module.module.dependency.state: u'ignored'
As you can see, the test routine doesn't recognize the module.dependency.state
introduced by adhoc_modules
, so it throws an error.
My first thought was to just uninstall this module on my dev database. But it turns out it can't be uninstalled. It hangs the instance and never commits the changes.
So, basically, there are two bugs with this module:
I installed that module but i can see it in app:
I also installed server_mode
and i can see it:
What's the problem?
I reviewed all permissions:
ls -l addons ✔ 3191 11:34:40
total 104
drwxr-xr-x 7 salahaddin users 4096 abr 8 23:49 backend_theme_v11
drwxr-xr-x 9 salahaddin users 4096 abr 10 22:54 database_tools
drwxr-xr-x 5 salahaddin users 4096 jun 5 12:31 odoo-s3
drwxr-xr-x 9 salahaddin users 4096 jun 5 12:20 plm
drwxr-xr-x 6 salahaddin users 4096 jun 5 12:20 plm_auto_internalref
drwxr-xr-x 5 salahaddin users 4096 jun 5 12:20 plm_automated_convertion
drwxr-xr-x 6 salahaddin users 4096 jun 5 12:20 plm_automate_normal_bom
drwxr-xr-x 7 salahaddin users 4096 jun 5 12:20 plm_automatic_weight
drwxr-xr-x 5 salahaddin users 4096 jun 5 12:20 plm_box
drwxr-xr-x 6 salahaddin users 4096 jun 5 12:20 plm_client_customprocedure
drwxr-xr-x 5 salahaddin users 4096 jun 5 12:20 plm_compare_bom
drwxr-xr-x 8 salahaddin users 4096 jun 5 12:20 plm_cutted_parts
drwxr-xr-x 6 salahaddin users 4096 jun 5 12:20 plm_date_bom
drwxr-xr-x 5 salahaddin users 4096 jun 5 12:20 plm_engineering
drwxr-xr-x 7 salahaddin users 4096 jun 5 12:20 plm_pack_and_go
drwxr-xr-x 5 salahaddin users 4096 jun 5 12:20 plm_product_description_language_helper
drwxr-xr-x 6 salahaddin users 4096 jun 5 12:20 plm_project
drwxr-xr-x 5 salahaddin users 4096 jun 5 12:20 plm_report_language_helper
drwxr-xr-x 4 salahaddin users 4096 jun 5 12:20 plm_sale_fix
drwxr-xr-x 6 salahaddin users 4096 jun 5 12:20 plm_spare
drwxr-xr-x 5 salahaddin users 4096 jun 5 12:20 plm_suspended
drwxr-xr-x 6 salahaddin users 4096 jun 5 12:20 plm_web_revision
drwxr-xr-x 4 salahaddin users 4096 abr 10 22:54 server_mode
drwxr-xr-x 5 salahaddin users 4096 feb 26 13:44 theme_extensia
drwxr-xr-x 7 salahaddin users 4096 jun 5 10:36 web_environment_ribbon
drwxr-xr-x 6 salahaddin users 4096 jun 5 10:36 web_responsive
All is right.
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-12.0
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-11.0
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-10.0
El Database_Tools tiene por defecto la ruta de la base de backups como /var/odoo/backups/ pero no crea backups ni tira errores cuando ejecutamos el boton de "crear backup ahora", pero viendo la redirección del docker del data_dir/ vemos que con cambiar por /var/lib/odoo/backups/ empieza a andar todo perfecto. Es algo muy menor, y probablemente en una instalación local sin docker funcione bien, pero por ahi se puede leer en la instalacion del modulo el directorio del entorno y guardarlo como default.
Saludos!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.