Skip to content

Instantly share code, notes, and snippets.

asientos_con_diferencias = set()
for line in records:
analytic = line.analytic_account_id
if analytic:
try:
categ_line = line.x_studio_categ_cost
categ_analytic = analytic.x_studio_categ_cost
except Exception:
continue
@name1984
name1984 / python
Created January 20, 2025 17:47
error en deploy
2025-01-20 17:28:05,807 18 ERROR t28364_spc170 odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
File "/home/odoo/instance/odoo/odoo/modules/registry.py", line 110, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 477, in load_modules
processed_modules += load_marked_modules(env, graph,
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 365, in load_marked_modules
loaded, processed = load_module_graph(
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 228, in load_module_graph
load_data(env, idref, mode, kind='data', package=package)
@name1984
name1984 / python
Created January 7, 2025 15:06
error cambiar utilidad
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/instance/odoo/odoo/models.py", line 5887, in ensure_one
_id, = self._ids
ValueError: too many values to unpack (expected 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
@name1984
name1984 / python
Created November 13, 2024 22:13
error
2024-11-13 19:51:23,362 18 CRITICAL updates_grupo_v170 odoo.service.server: Failed to initialize database `updates_grupo_v170`.
Traceback (most recent call last):
File "/home/odoo/instance/odoo/odoo/tools/convert.py", line 556, in _tag_root
f(rec)
File "/home/odoo/instance/odoo/odoo/tools/convert.py", line 462, in _tag_record
self._tag_record(child_rec, extra_vals={inverse_name: record.id})
File "/home/odoo/instance/odoo/odoo/tools/convert.py", line 462, in _tag_record
self._tag_record(child_rec, extra_vals={inverse_name: record.id})
File "/home/odoo/instance/odoo/odoo/tools/convert.py", line 456, in _tag_record
record = model._load_records([data], self.mode == 'update')
@name1984
name1984 / python
Created November 12, 2024 17:01
mostrar
apr_ids = apr_obj = env['account.partial.reconcile']
am_obj = env['account.move']
aml_obj = env['account.move.line']
act = {
'name': 'Todos los apuntes de la Facturas + CABA + Pago',
'type': 'ir.actions.act_window',
'res_model': 'account.move.line',
'target': 'current',
'view_mode': 'tree,form,pivot'
@name1984
name1984 / python
Created November 5, 2024 17:33
Error envio de facturas
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/tools/safe_eval.py", line 391, in safe_eval
return unsafe_eval(c, globals_dict, locals_dict)
File "ir.actions.server(393,)", line 1, in <module>
AttributeError: 'account.move' object has no attribute 'cron_auto_send_invoices'
During handling of the above exception, another exception occurred:
{
"meta": {
"date": "2024-10-31T21:13:03.032Z",
"object_count": 1,
"type": "invoices"
},
"data": [
{
"ref": "24MB20002MX2UJC7Z",
"partner_id": {
{
"meta": {
"date": "2024-11-01T17:03:23.918Z",
"object_count": 1,
"type": "invoices"
},
"data": [
{
"ref": "24BC00149US2QUX29",
"partner_id": {
@name1984
name1984 / python
Created October 18, 2024 19:20
Error
OwlError: An error occured in the owl lifecycle (see this Error's "cause" property)
OwlError@https://prod170.spc02.deployv.com/web/assets/815f24f/web.assets_web.min.js:684:1
handleError@https://prod170.spc02.deployv.com/web/assets/815f24f/web.assets_web.min.js:916:101
handleError@https://prod170.spc02.deployv.com/web/assets/815f24f/web.assets_web.min.js:1545:29
initiateRender@https://prod170.spc02.deployv.com/web/assets/815f24f/web.assets_web.min.js:1006:19
Caused by: Error: "account.analytic.line"."x_plan5_id" field is undefined.
Field.parseFieldNode@https://prod170.spc02.deployv.com/web/assets/815f24f/web.assets_web.min.js:7698:231
parseFieldNode@https://prod170.spc02.deployv.com/web/assets/815f24f/web.assets_web.min.js:9269:119
@name1984
name1984 / Json
Created October 17, 2024 22:33
cancelación
{
"meta": {
"date": "2024-10-15T17:36:32.069Z",
"type": "cancel_invoice"
},
"data": {
"move_type": "out_invoice",
"cancel_invoice_id": "24BB30001US9QUSST",
"customer_amount": 50,
"multicurrency": {