2025-08-11

25-07#

Tab cleanup#

Pydantic Architecture and v2 Features#

Samuel Colvin: How Pydantic V2 leverages Rust’s Superpowers is a talk about Pydantic v2 features and Python / Rust interop.

jj diff has underlines#

That’s expected behavior [1].

Run jj config edit --user and set

[colors]
# remove underlines
"diff token" = { underline = false }

Odoo “Failed to enable push notifications”#

Error retrieving push subscription.

The problem was a setting I did in Firefox (141):

  • about:config

  • dom.push.connection.enabled

Odoo Tables That Are Different to Their Model Name#

It seems like you can infer a model name like res.partner from its table name (res_partner). That is true for most models, but not all.

You can try this yourself by running click-odoo (recommended if you have click-odoo installed) or odoo shell.

In [1]: [(name, model._table) for name, model in env.items() if name.replace('.', '_') != model._table]
Out[1]:
[('ir.actions.actions', 'ir_actions'),
 ('ir.actions.act_window', 'ir_act_window'),
 ('ir.actions.act_window.view', 'ir_act_window_view'),
 ('ir.actions.act_window_close', 'ir_actions'),
 ('ir.actions.act_url', 'ir_act_url'),
 ('ir.actions.server', 'ir_act_server'),
 ('ir.actions.client', 'ir_act_client'),
 ('ir.actions.report', 'ir_act_report_xml'),
 ('project.task.stage.personal', 'project_task_user_rel')]