Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Cristian Salamea [vauxoo] ovnicraft

🎯
Focusing
View GitHub Profile
View main.py
def portal_purchase_order_details(self, c_id, upload=None, **kw):
...
...
...
order.write(po_values)
order.save_quoted_lines()
if upload:
View gist:c944bbd0242789e04e37b825fb9b7861
2020-06-23 10:28:56,747 250 ERROR undefinedCapacitacion_jal097100 odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
File "/home/odoo/instance/odoo/odoo/modules/registry.py", line 83, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 373, in load_modules
force, status, report, loaded_modules, update_module, models_to_check)
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 270, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 182, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
View gist:4cc6e19074cc8636b34ddfbbcccd0e73
bad query: INSERT INTO "account_momentospresupuestales" ("id", "mir_id", "directo", "tipogasto_id", "accountmove_id", "fuentefinanciamiento_origen_id", "fechaaplicacion", "unidadresponsable_id", "crossoveredbudget_id", "ejercicio_id", "fuentefinanciamiento_id", "comprometido", "purchase_estructura_contable_id", "res_id", "model_id", "periodo_id", "departamento_id", "destino_id", "purchase_order_id", "programa_id", "partidas_id", "programapresupuestario_id", "subfunciongasto_id", "requisition", "create_uid", "write_uid", "create_date", "write_date") VALUES(nextval('account_momentospresupuestales_id_seq'), 20740, false, 10334, 100558, 816, '2020-06-22', 20785, 6, 58, 808, 52.2, 2863, 239, 337, 28, 1898, 20904, 239, 17430, 7427, 21568, 22366, 431, 1, 1, (now() at time zone 'UTC'), (now() at time zone 'UTC')) RETURNING id
View erro.py
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 136, in load_module_graph
migrations.migrate_module(package, 'pre')
File "/home/odoo/instance/odoo/odoo/modules/migration.py", line 157, in migrate_module
migrate(self.cr, installed_version)
File "/home/odoo/instance/extra_addons/odoogrp-core/grp_expense/migrations/10.0.2.0.0/pre-migration.py", line 25, in migrate
update_data(cr)
File "/home/odoo/instance/extra_addons/odoogrp-core/grp_expense/migrations/10.0.2.0.0/pre-migration.py", line 18, in update_data
;"""
File "/home/odoo/instance/odoo/odoo/sql_db.py", line 154, in wrapper
return f(self, *args, **kwargs)
View gist:bcf75e5356ea9dc0d5693a6a03734259
return self.method(*args, **kw)
File "/home/odoo/src/odoo/odoo/http.py", line 507, in response_wrap
response = f(*args, **kw)
File "/home/odoo/src/odoo/addons/report/controllers/main.py", line 42, in report_routes
html = report_obj.with_context(context).get_html(docids, reportname, data=data)
File "/home/odoo/src/odoo/addons/report/models/report.py", line 138, in get_html
return report_model.render_html(docids, data=data)
File "/home/odoo/src/odoo/addons/mrp/report/mrp_bom_cost_report.py", line 47, in render_html
return self.env['report'].render('mrp.mrp_bom_cost_report', {'lines': res})
File "/home/odoo/src/odoo/addons/report/models/report.py", line 123, in render
View gist:46877b724ea3717260f407fd432f52f4
2020-05-23 04:57:31,648 197 CRITICAL updates_jal039100 odoo.service.server: Failed to initialize database `updates_jal039100`.
Traceback (most recent call last):
File "/home/odoo/instance/odoo/odoo/service/server.py", line 914, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "/home/odoo/instance/odoo/odoo/modules/registry.py", line 83, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 373, in load_modules
force, status, report, loaded_modules, update_module, models_to_check)
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 270, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
View e.py
Traceback (most recent call last):
File "/home/odoo/instance/odoo/odoo/modules/registry.py", line 83, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 348, in load_modules
modules.button_upgrade()
File "/home/odoo/instance/odoo/odoo/addons/base/module/module.py", line 554, in button_upgrade
raise UserError(_('You try to upgrade the module %s that depends on the module: %s.\nBut this module is not available in your system.') % (module.name, dep.name,))
UserError: (u'Intenta actualizar el m\xf3dulo l10n_mx_edi_payslip que depende del m\xf3dulo: hr_family.\nPero este m\xf3dulo no est\xe1 disponible en su sistema.', '')
2020-05-20 16:27:49,355 157 CRITICAL tBD2_MPIO_GDL_TEST_jal039100 odoo.service.server: Failed to initialize database `tBD2_MPIO_GDL_TEST_jal039100`.
Traceback (most recent call last):
View gist:8610b927b478ca2b299a1473b484c932
2020-05-05 15:30:02,250 255 INFO ? odoo: database: jal097dev@172.17.0.1:5432
2020-05-05 15:30:02,271 255 INFO ? odoo.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069
2020-05-05 15:30:02,300 255 INFO tconsultoria_jal097100 odoo.modules.loading: loading 1 modules...
2020-05-05 15:30:02,512 255 INFO tconsultoria_jal097100 odoo.modules.registry: module base: creating or updating database tables
2020-05-05 15:30:03,567 255 WARNING tconsultoria_jal097100 odoo.modules.loading: Transient module states were reset
2020-05-05 15:30:03,569 255 ERROR tconsultoria_jal097100 odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
File "/home/odoo/instance/odoo/odoo/modules/registry.py", line 83, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 318, in load_modules
View qweb erro
External ID not found in the system: vauxoo.demo_with_vauxoo_ec
Traceback (most recent call last):
File "/home/odoo/instance/odoo/odoo/tools/cache.py", line 88, in lookup
r = d[key]
File "/home/odoo/instance/odoo/odoo/tools/func.py", line 69, in wrapper
return func(self, *args, **kwargs)
File "/home/odoo/instance/odoo/odoo/tools/lru.py", line 44, in __getitem__
a = self.d[obj].me
KeyError: ('ir.model.data', <function IrModelData.xmlid_lookup at 0x7f50a6b8cea0>, 'vauxoo.demo_with_vauxoo_ec')
You can’t perform that action at this time.