Skip to content

Instantly share code, notes, and snippets.

View avadnc's full-sized avatar

avadnc avadnc

  • Guadalajara, Jalisco
View GitHub Profile

📌 Cambios en Dolibarr 22.0.0 (vs 21.0) Para usuarios:

NUEVO: El módulo WebPortal pasa a ser estable.

NUEVO: Módulo Subtotal (#33502) - en desarrollo.

NUEVO: Envío de kits con dispatcher v2 (#33750).

NUEVO: Ticket: mostrar archivos vinculados a actioncomm (#32325).

<?php
/* Copyright (C) 2016 Xebax Christy <xebax@wanadoo.fr>
* Copyright (C) 2016 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2016 Jean-François Ferry <jfefe@aternatik.fr>
* Copyright (C) 2023 Romain Neil <contact@romain-neil.fr>
* Copyright (C) 2025 William Mead <william@m34d.com>
*
* This program is free software you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
@avadnc
avadnc / migration_doli19_to_doli18.py
Created July 16, 2025 18:51
Migration Script with WS from 19 to 18
#!/usr/bin/env python3
"""
Middleware para migración de Dolibarr v19 a v18
Autor: Script de migración
"""
import requests
import json
import logging
import time
<?php
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
<?php
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
<?php
require_once DOL_DOCUMENT_ROOT . '/core/modules/facture/modules_facture.php';
require_once DOL_DOCUMENT_ROOT . '/product/class/product.class.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/company.lib.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/pdf.lib.php';
dol_include_once('/cfdixml/lib/cfdixml.lib.php');
dol_include_once('/cfdixml/lib/phpqrcode/qrlib.php');
dol_include_once('/cfdixml/vendor/autoload.php');
<?php
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
Actividad,Nombre,Duracion,inicio,fin,actividad predesesora
1,Implementacion Proceram,156 days?,01/07/2024 08:00,27/03/2025 17:00,
2,Etapa 1: Capacitacion General,25 days?,01/07/2024 08:00,12/08/2024 17:00,
3,1.1 Carga/creacion de terceros,10 days,01/07/2024 08:00,16/07/2024 17:00,
4,1.1.1 Creacion de clientes,5 days,01/07/2024 08:00,08/07/2024 17:00,
5,1.1.1.1 Carga manual de clientes,2 days,01/07/2024 08:00,03/07/2024 17:00,
6,1.1.1.2 Carga masiva de clientes,3 days,03/07/2024 08:00,08/07/2024 17:00,5
7,1.1.2 Creacion de proveedores,5 days,01/07/2024 08:00,08/07/2024 17:00,
8,1.1.2.1 Carga manual de proveedores,2 days,01/07/2024 08:00,03/07/2024 17:00,
9,1.1.2.2 Carga masiva de proveedores,3 days,03/07/2024 08:00,08/07/2024 17:00,8
<?php
/* Copyright (C) 2024 Alex Vives <avives@nubenet.digital>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
  • USER_CREATE = User creation

  • USER_MODIFY = User modification

  • USER_NEW_PASSWORD = User password change

  • USER_ENABLEDISABLE = User enable/disable

  • USER_DELETE = User deletion

  • ACTION_MODIFY = Action modification

  • ACTION_CREATE = Action creation

  • ACTION_DELETE = Action deletion