Skip to content

Instantly share code, notes, and snippets.

View ivanporras's full-sized avatar
🏠
Working from home

Ivan Porras ivanporras

🏠
Working from home
View GitHub Profile
@ivanporras
ivanporras / Installing Odoo on AWS
Created April 28, 2021 17:00 — forked from bjsion/Installing Odoo on AWS
Installing Odoo ERP on AWS using RDS and EC2
# Installing Odoo on AWS
These are the steps I ran to get Odoo up and running on AWS using the free tiers (for now).
## Setup servers
### Create DB
Create an Postgres DB on Amazon RDS:
https://us-east-2.console.aws.amazon.com/rds/home?region=us-east-2#launch-dbinstance:ct=dbinstances:
### Create Server
Instalar librerias
sudo apt-get install python-m2crypto
Install library xmllint: apt-get install libxml2-utils
sudo pip install requests-toolbelt
sudo apt-get install python-qrcode
sudo apt-get install python-qrtools
Install sudo apt-get install python-pip
sudo apt-get install python-xmltodict
2017-11-08 23:52:30,935 3080 ERROR ODAvicampo odoo.addons.l10n_mx_einvoice_payment.metodos: Traceback (most recent call last):
File "metodos.py", line 255, in get_cfdi
File "<decorator-gen-293>", line 2, in action_get_stamp_sifei
File "/odoo/odoo-server/odoo/api.py", line 369, in loop
result = [method(rec, *args, **kwargs) for rec in self]
File "metodos.py", line 477, in action_get_stamp_sifei
UserError: (u'Advertencia !!!\nOcurri\xf3 un error al intentar obtener el Timbre. \n\nC\xf3digo: CRP999\nError: Error no clasificado: El valor del atributo MetodoDePagoDR debe contener el valor de PPD \nMensaje: El Comprobante no cumple con el estandar XML (Conforme al W3C) o con la estructura XML (XSD y complementos aplicables)', '')
#Open odoo-bin debugg
sudo su odoo
python /odoo/odoo-sever/odoo-bin -c /etc/odoo.conf
#If Errno 98 Address already in use
ps -fA | grep python
kill <number process>
2017-11-06 13:35:33 => Traceback (most recent call last):
File "metodos.py", line 1197, in invoice_validate
File "<decorator-gen-287>", line 2, in action_get_stamp_sifei
File "/odoo/odoo-server/odoo/api.py", line 369, in loop
result = [method(rec, *args, **kwargs) for rec in self]
File "metodos.py", line 258, in action_get_stamp_sifei
File "metodos.py", line 337, in create_qr_image
UserError: (u'Advertencia !!!\nNo se pudo crear el C\xf3digo Bidimensional. Error [Errno 2] No such file or directory', '')
Odoo no muestra iconos
2017-11-04 19:40:31,137 8614 WARNING ODAvicampo odoo.models.schema: Table 'res_company': unable to set a NOT NULL constraint on column 'regname' !
If you want to have it, you should update the records and execute manually:
ALTER TABLE res_company ALTER COLUMN regname SET NOT NULL
2017-11-04 19:40:31,174 8614 WARNING ODAvicampo odoo.models.schema: Table 'res_company': unable to set a NOT NULL constraint on column 'rfc' !
If you want to have it, you should update the records and execute manually:
ALTER TABLE res_company ALTER COLUMN rfc SET NOT NULL
2017-11-04 09:46:50 => Traceback (most recent call last):
File "metodos.py", line 1197, in invoice_validate
File "<decorator-gen-287>", line 2, in action_get_stamp_sifei
File "/odoo/odoo-server/odoo/api.py", line 369, in loop
result = [method(rec, *args, **kwargs) for rec in self]
File "metodos.py", line 234, in action_get_stamp_sifei
UserError: (u"Advertencia !!!\nOcurri\xf3 un error al intentar obtener el Timbre. \n\nC\xf3digo: 301\nError: cvc-enumeration-valid: Value '' is not facet-valid with respect to enumeration '[601, 603, 605, 606, 608, 609, 610, 611, 612, 614, 616, 620, 621, 622, 623, 624, 628, 607, 629, 630, 615]'. It must be a value from the enumeration.\nMensaje:
El Comprobante no cumple con el estandar XML (Conforme al W3C) o con la estructura XML (XSD y complementos aplicables)", '')