Skip to content

Instantly share code, notes, and snippets.

View litnimax's full-sized avatar

Max litnimax

View GitHub Profile
@litnimax
litnimax / USAGE_AND_TESTING.md
Created August 5, 2026 13:23
Odoo Capability Atlas (odoo-atlas) — how to use and test odoo2specs + generate

Odoo Capability Atlas — how to use and test

Repo: https://github.com/litnimax/odoo-atlas
Branch: main

Two products in one monorepo:

Product Role
odoo2specs Authoring harness: read Odoo addons RO → extract → candidates → independent review → export capabilities.db
@litnimax
litnimax / system-overview.md
Created August 4, 2026 21:07
odoo2angee-engine system overview (2026-08-04)

odoo2angee-engine — System Overview

Version: 0.1.0.dev0
Date: 2026-08-04
Python: ≥ 3.14
Repository: https://github.com/litnimax/odoo2angee-engine
Status: first vertical slices implemented; M13 engine-side complete, Paseo v3 UI pending

This document describes the current system as implemented: ownership, architecture, data flow, commands, artifacts, trust boundaries, and how

@litnimax
litnimax / angee-odoo-capability-gaps.md
Last active August 4, 2026 09:45
Пробелы в возможностях Angee для сохранения семантики аддонов Odoo

Пробелы в возможностях Angee для сохранения семантики аддонов Odoo

Статус: исходное исследование
Дата: 2026-08-04
Базовая версия Odoo: 19.0, коммит 7d3a7fac27332f440404383f41cc113bf3face53
Базовая версия Angee: коммит ee92a36cd2f6fc2e6c44f854648acdfe344cb18e
Базовая версия arpee: коммит aed6fba6fd474e2281c6f963f1742e426eed3307
Базовая версия pilot-target: коммит 65438afd8ec6e46d305b64a4da53fbf8cffaf202

1. Итог

@litnimax
litnimax / get_odoo_conf.py
Created February 6, 2024 08:21
Fetch Asterisk Plus SIP peers script (with caching)
#!/usr/bin/env python3
import argparse
import logging
import logging.config
import os
import sys
import yaml
from datetime import datetime
import requests
@litnimax
litnimax / gist:4af059f018f819494268e5724bd02d8f
Last active March 3, 2023 22:44
Odoo: suppress warnings WARNING 8_orders.x.x odoo.addons.base.models.ir_cron: Skipping database 8_x.x as its base version is not 16.0.1.3.
import logging
import psycopg2
import threading
import odoo
class BadVersion(Exception):
pass
class BadModuleState(Exception):
pass
@litnimax
litnimax / main.py
Created July 11, 2020 07:51 — forked from mlaitinen/main.py
Odoo 12 Prometheus instrumentation
##############################################################################
#
# Author: Miku Laitinen / Avoin.Systems
# Copyright 2019 Avoin.Systems
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
[options]
#
# WARNING:
# If you use the Odoo Database utility to change the master password be aware
# that the formatting of this file WILL be LOST! A copy of this file named
# /etc/odoo/openerp-server.conf.template has been made in case this happens
# Note that the copy does not have any first boot changes
#-----------------------------------------------------------------------------
# Odoo Server Config File - TurnKey Linux
@litnimax
litnimax / add-minion.sh
Created January 11, 2020 12:13 — forked from Silvenga/add-minion.sh
Remotely Authorize and Provision a Salt Minion
#!/bin/bash
# apt-get install sshpass
# http://docs.saltstack.com/en/latest/topics/tutorials/preseed_key.html
BOOTSTRAP=/srv/minion-bootstrap.sh
LOG_LOCATION=/tmp/minion-bootstrap.log
TMP=/tmp/salt
if [[ -z "$1" ]] || [[ -z "$2" ]] ; then
@litnimax
litnimax / psqlfix.txt
Last active November 7, 2019 04:27
Change postgres default template0 to UTF8 encoding
update pg_database set datallowconn = TRUE where datname = 'template0';
\c template0
update pg_database set datistemplate = FALSE where datname = 'template1';
drop database template1;
create database template1 with template = template0 encoding = 'UTF8';
update pg_database set datistemplate = TRUE where datname = 'template1';
template1
update pg_database set datallowconn = FALSE where datname = 'template0';
@litnimax
litnimax / 1.py
Created May 26, 2018 13:54
Odoo many2many groupby example
@api.model
def read_group(self, domain, fields, groupby, offset=0, limit=None, orderby=False, lazy=True):
if not '_context_' in groupby:
return super(Task, self).read_group(domain, fields, groupby,
offset, limit, orderby, lazy)
else:
# Get the list of contexts
res = []
for c in self.env['nibbana.context'].search(
[('create_uid','=', self.env.user.id)]):