Skip to content

Instantly share code, notes, and snippets.

View celm1990's full-sized avatar

Carlos Lopez celm1990

View GitHub Profile
@celm1990
celm1990 / prod.yaml
Last active July 30, 2025 18:56
Configuracion Odoo Traefik usando Doodba
hostname: "dominio.com"
labels:
doodba.domain.main: "dominio.com"
traefik.enable: "true"
traefik.domain: "dominio.com"
traefik.forbiddenCrawlers-0.frontend.headers.customResponseHeaders:
"X-Robots-Tag:noindex, nofollow"
traefik.forbiddenCrawlers-0.frontend.rule: Host:dominio.com;Path:/web,/web/{anything:.*},/website/info,/website/info/{anything:.*}
traefik.main-0.frontend.rule: Host:dominio.com
traefik.longpolling-0.frontend.rule: Host:dominio.com;Path:/websocket,/websocket/{anything:.*}
return self.env.ref('account_batch_payment.action_print_batch_payment').report_action(self, config=False)
@celm1990
celm1990 / DocumentTypeButton.js
Created July 5, 2023 17:49
l10n_latam_pos(JS)
odoo.define("l10n_latam_pos.DocumentTypeButton", function (require) {
"use strict";
const PosComponent = require("point_of_sale.PosComponent");
const ProductScreen = require("point_of_sale.ProductScreen");
const {useListener} = require("@web/core/utils/hooks");
const Registries = require("point_of_sale.Registries");
class DocumentTypeButton extends PosComponent {
setup() {
@celm1990
celm1990 / pos_config.py
Created July 5, 2023 17:46
l10n_latam_pos
from odoo import fields, models
class PosConfig(models.Model):
_inherit = "pos.config"
l10n_latam_document_type_ids = fields.Many2many(
"l10n_latam.document.type",
"pos_config_latam_document_type_rel",
"pos_config_id",
@celm1990
celm1990 / odoo_calculate_workers.sh
Created August 22, 2021 23:19
Analyzes the characteristics of the server and helps calculate the number of workers and memory for each
#!/bin/bash
# CONST 1GB
CONST_1GB="1024*1024*1024"
# VARIABLE WORKERS
CMD_W=0