Benvenuto!

Questo è il forum ufficiale dell'Associazione Odoo Italia. Dopo esserti registrato potrai partecipare ponendo domande o rispondendo a quelle esistenti. Non scordarti di compilare il tuo profilo e consultare le linee guida prima di iniziare a scrivere.

0

1
Lorenzo Battistini
Il 05/09/19, 12:15

2 strade:

  1. Con odoo enterprise, su https://upgrade.odoo.com/database/upload

  2. Con OpenUpgrade

La 1 è la più facile.

Per la 2 ti servono più competenze e quindi più tempo.


La tua risposta

0

ma per oddo entreprise basta fare l'abbonamento di un mese? ovvero 10 euro? o c'è da spendere di più?

perchè sinceremante ho provato a leggere un po' di documentazione di openupgrade, ma confesso che non ci ho capito una mazza, non ho capito se è un plug-in che lavora sull'interfaccia di odoo oppure uno script da utilizzare  da line di comando, non ho capito se vanno installate anche le librerie o sono due progetti paralleli.

Poi non ho capito se ti da un archivio da importare nella nuova versione di odoo oppure modifica direttamente il database installato .. in somma non è esattamente una guida per neofiti

Enrico




La tua risposta

2
Marcelo Frare
Il 15/12/19, 18:27

ti può aiutare il talk di Sergio:

https://www.youtube.com/watch?v=PYoQoh3zdl8


La tua risposta


0

Dunque ce l'ho  fatta su Mageia7,1 , seguendo un ottima guida che trovate qui:

https://agipme.fr/2018/10/odoo-10-ce-upgrade-to-version-11.html

il problema che avevo, essenzialmente era di installazione del software, che ho reinstallato  dando la path di installazione

pip3 install -t /usr/lib/python3.7/site-packages

e copiando le cartelle che non riuscivo a installare con pip

ho avuto un problema di installazione di un modulo che ho descritto qui

document_quick_access_folder_auto_classification

https://www.odoo-italia.org/forum/forum-1/question/11-errore-installazione-su-fedora29-727

Grazie



La tua risposta


0
Sergio Corato
Il 17/12/19, 16:47

Invece di far partire odoo con [repo di odoo]/odoo/odoo lo fai partire con [repo di openupgrade]/odoo/odoo


La tua risposta

0

Scusa ma di python sono un po' acerbo, cosa devo modificare?  qualche file di configurazione o qualche comando?

per far partire odoo io faccio semplicemente:

#service odoo start

forse dovrei dare tutta la path fino al bin di odoo , ovvero fino al bin di openupgrade?

per altro qui dice una procedura un po differente se ho capito

https://www.cier.tech/blog/odoo-tutorials-1/post/how-to-upgrade-odoo-with-automated-migration-script-27




La tua risposta

0
Sergio Corato
Il 17/12/19, 23:26

Lo script migrate.py è stato tolto nelle versioni recenti, potrebbe essere che funzioni ancora ma non l'ho mai usato, in ogni caso dovresti dare la path di avvio intera come hai intuito, aggiungendo i parametri -u all -d [nome_database] --stop

L'avvio come servizio è per l'uso standard, non è questo caso


La tua risposta

0

si ho visto , funzione deprecata non c'è più:

allora ho fatto questo :

#git clone https://github.com/OCA/OpenUpgrade.git
poi
#cd OpenUpgrade
#git checkout 11.0

#pip install -r requirements.txt
risultato questo errore :

Ignoring gevent: markers 'sys_platform != "win32" and python_version < "3.7"' don't match your environment
Ignoring gevent: markers 'sys_platform == "win32" and python_version >= "3.7"' don't match your environment
Ignoring greenlet: markers 'python_version < "3.7"' don't match your environment
Ignoring lxml: markers 'sys_platform != "win32" and python_version < "3.7"' don't match your environment
Ignoring lxml: markers 'sys_platform == "win32"' don't match your environment
Ignoring Pillow: markers 'python_version < "3.7"' don't match your environment
Ignoring psutil: markers 'sys_platform == "win32"' don't match your environment
Ignoring psycopg2: markers 'sys_platform == "win32"' don't match your environment
Ignoring PyYAML: markers 'python_version < "3.7"' don't match your environment
Ignoring pypiwin32: markers 'sys_platform == "win32"' don't match your environment
Collecting git+https://github.com/OCA/openupgradelib.git@master (from -r requirements.txt (line 54))
  Cloning https://github.com/OCA/openupgradelib.git (to revision master) to /tmp/pip-req-build-slqvxp9m
  Running command git clone -q https://github.com/OCA/openupgradelib.git /tmp/pip-req-build-slqvxp9m
Requirement already satisfied (use --upgrade to upgrade): openupgradelib==3.0.0 from git+https://github.com/OCA/openupgradelib.git@master in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 54))
Collecting Babel==2.3.4
  Using cached https://files.pythonhosted.org/packages/b4/ec/acd307eac2e23f9cab1c8bdbe29b3b1d43215e31c32f8aa91b3a97925b5b/Babel-2.3.4-py2.py3-none-any.whl
Collecting decorator==4.0.10
  Using cached https://files.pythonhosted.org/packages/53/24/cc53f9f216dd5ef269e0af7c7651cbda162554a5b088621a205961c07a6f/decorator-4.0.10-py2.py3-none-any.whl
Collecting docutils==0.12
  Using cached https://files.pythonhosted.org/packages/c7/16/29d8de2404c5b90243b51f91315b3ce375169ceb48a68aeec0862e0143c4/docutils-0.12-py3-none-any.whl
Collecting ebaysdk==2.1.5
  Using cached https://files.pythonhosted.org/packages/db/7f/53245710a67cb9de1ad2a0e78c012c6e6e327b05dc8fb4b2e85a7ef0220b/ebaysdk-2.1.5.tar.gz
Requirement already satisfied: feedparser==5.2.1 in /usr/lib/python3.7/site-packages (from -r requirements.txt (line 5)) (5.2.1)
Collecting gevent==1.3.4
  Using cached https://files.pythonhosted.org/packages/7d/59/722687367ecfc4079486e902aa6b909f89423d9be478b6f1090f00915a05/gevent-1.3.4-cp37-cp37m-manylinux1_x86_64.whl
Collecting greenlet==0.4.13
  Using cached https://files.pythonhosted.org/packages/61/11/017924bbe9c4d081682aa0ae23f3b12f3889b690c07fba5c5511a00b8c65/greenlet-0.4.13-cp37-cp37m-manylinux1_x86_64.whl
Collecting html2text==2016.9.19
  Using cached https://files.pythonhosted.org/packages/22/c0/2d02a1fb9027f54796af2c2d38cf3a5b89319125b03734a9964e6db8dfa0/html2text-2016.9.19.tar.gz
Requirement already satisfied: Jinja2==2.10.1 in /usr/lib/python3.7/site-packages (from -r requirements.txt (line 12)) (2.10.1)
Collecting lxml==4.2.3
  Using cached https://files.pythonhosted.org/packages/de/4f/965d0a2469fe89c42424d22672075c0ce27d120470778c4d2fabee198e79/lxml-4.2.3-cp37-cp37m-manylinux1_x86_64.whl
Collecting Mako==1.0.4
  Using cached https://files.pythonhosted.org/packages/7a/ae/925434246ee90b42e8ef57d3b30a0ab7caf9a2de3e449b876c56dcb48155/Mako-1.0.4.tar.gz
Collecting MarkupSafe==0.23
  Using cached https://files.pythonhosted.org/packages/c0/41/bae1254e0396c0cc8cf1751cb7d9afc90a602353695af5952530482c963f/MarkupSafe-0.23.tar.gz
Requirement already satisfied: mock==2.0.0 in /usr/lib/python3.7/site-packages (from -r requirements.txt (line 18)) (2.0.0)
Collecting num2words==0.5.6
  Using cached https://files.pythonhosted.org/packages/aa/6e/6d026d15d1b0fd37a9dd42ecf559f36871cee67158aff5ba652d3130e8b9/num2words-0.5.6-py2.py3-none-any.whl
Collecting ofxparse==0.16
  Using cached https://files.pythonhosted.org/packages/7e/76/eb1a55f44d266cc87d094f2eee5349f412c2034f1c844722b2d2be3614c4/ofxparse-0.16.tar.gz
Collecting passlib==1.6.5
  Using cached https://files.pythonhosted.org/packages/2d/a7/1a3363e5d531d438267a79d43d4b8d224655adef489e98fc96678fe16ed1/passlib-1.6.5-py2.py3-none-any.whl
Collecting Pillow==6.1.0
  Using cached https://files.pythonhosted.org/packages/a4/da/2bd281c875686230eabc13d20ab590ea617563b0e746abfb0698c4d5b645/Pillow-6.1.0-cp37-cp37m-manylinux1_x86_64.whl
Collecting psutil==4.3.1
  Using cached https://files.pythonhosted.org/packages/78/cc/f267a1371f229bf16db6a4e604428c3b032b823b83155bd33cef45e49a53/psutil-4.3.1.tar.gz
Collecting psycopg2==2.7.3.1
  Using cached https://files.pythonhosted.org/packages/6b/fb/15c687eda2f925f0ff59373063fdb408471b4284714a7761daaa65c01f15/psycopg2-2.7.3.1.tar.gz
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-22xsjle1/psycopg2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-22xsjle1/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-22xsjle1/psycopg2/pip-egg-info
         cwd: /tmp/pip-install-22xsjle1/psycopg2/
    Complete output (14 lines):
    running egg_info
    creating /tmp/pip-install-22xsjle1/psycopg2/pip-egg-info/psycopg2.egg-info
    writing /tmp/pip-install-22xsjle1/psycopg2/pip-egg-info/psycopg2.egg-info/PKG-INFO
    writing dependency_links to /tmp/pip-install-22xsjle1/psycopg2/pip-egg-info/psycopg2.egg-info/dependency_links.txt
    writing top-level names to /tmp/pip-install-22xsjle1/psycopg2/pip-egg-info/psycopg2.egg-info/top_level.txt
    writing manifest file '/tmp/pip-install-22xsjle1/psycopg2/pip-egg-info/psycopg2.egg-info/SOURCES.txt'
    Error: pg_config executable not found.
   
    Please add the directory containing pg_config to the PATH
    or specify the full executable path with the option:
   
        python setup.py build_ext --pg-config /path/to/pg_config build ...
   
    or with the pg_config option in 'setup.cfg'.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


La tua risposta

0
Sergio Corato
Il 18/12/19, 16:05

Odoo 11 va su python3, accertati che pip sia pip3, poi può dipendere da molte cose, os che stai usando, ecc.


La tua risposta

0

si stesso errore con pip3; obbiettivamente ho una distribuzione poco adatta, mageia7 che  si basa ancora su pithon2.7  e fa un po di casino ; infatti quando installa le librerie con pip me le installa su /usr/local/lib/python3.7

ma lavora su /usr/lib/python3.7

dice che dovrei cambiare una path di installazione infatti,  il problema è dove.

Enrico


La tua risposta


0

installata la versione successiva, nel mio caso la 11,  ho installato anche tutti i moduli dalla fattura pa, 

carico archivio del database vecchio con i file nell'interfaccia di avvio di odoo

credo si debba installare openupgrade

e le relative librerie con

$ pip install git+git://github.com/OCA/openupgradelib.git
$ pip install git+git://github.com/OCA/openupgrade.git

poi dice di sostituire nel parametro di avvio il repo di Odoo in suo con quello di openugrade

qui non ho capito cosa devo fare?

enrico


La tua risposta

Resta informato

Informazioni sulla comunità

Forum ufficiale dell'Associazione Odoo Italia Leggi le linee guida

Strumenti di richiesta

27 follower

Statistiche

Richiesta del: 02/09/19, 16:34
Vista: 3937 volte
Ultimo aggiornamento: 03/01/20, 20:00