This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Parâmetros da Requisição: | |
{"company_id":110,"name_partner":"Dirceu","amount_tax":0,"lines":[{"product_id":66,"default_code":"5CM","qty":1,"price":9.1,"components":[{"product_id":null,"default_code":"MLKI","qty":1},{"product_id":null,"default_code":"CTP1","qty":1},{"product_id":null,"default_code":"NRMT","qty":1}]}],"statement_ids":{"journal_id":0,"amount":9.1,"note":"256855","card_type":"visa_electron","installment":0},"email":null,"user_id":0,"pricelist_id":0,"partner_id":0,"cnpj_cpf":false,"payment_type":"CONTACTLESS_EMV"} | |
# Retorno: | |
Diário 1034 não existe ou não está definido nas configurações do POS. | |
# Justificativa | |
# Por algum motivo a requisição não está enviando o diário (journal_id == 0); | |
# Quando enviado com o diário obtivemos o seguinte retorno em produção: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Erro: | |
Odoo Server Error | |
Traceback (most recent call last): | |
File "/opt/odoo/odoo/odoo/http.py", line 656, in _handle_exception | |
return super(JsonRequest, self)._handle_exception(exception) | |
File "/opt/odoo/odoo/odoo/http.py", line 314, in _handle_exception | |
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) | |
File "/opt/odoo/odoo/odoo/tools/pycompat.py", line 87, in reraise | |
raise value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Erro: | |
Odoo Server Error | |
Traceback (most recent call last): | |
File "/opt/odoo/odoo/odoo/models.py", line 1128, in _validate_fields | |
check(self) | |
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 351, in _check_xml | |
self.postprocess_and_fields(view.model, view_doc, view.id) | |
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 1138, in postprocess_and_fields | |
self.raise_view_error(message, view_id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Odoo Server Error | |
Traceback (most recent call last): | |
File "/opt/odoo/odoo/odoo/models.py", line 1128, in _validate_fields | |
check(self) | |
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 351, in _check_xml | |
self.postprocess_and_fields(view.model, view_doc, view.id) | |
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 1138, in postprocess_and_fields | |
self.raise_view_error(message, view_id) | |
File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 568, in raise_view_error | |
raise ValueError(message) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80 default_server; | |
#rewrite ^/.*$ https://$host$request_uri? permanent; #Uncomment this line in case you want to use https only | |
#server_name {{ODOO_DOMAIN}}; | |
include odoo_params; | |
location /longpolling { | |
proxy_pass http://127.0.0.1:8072; | |
} | |
location / { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Ryan Cole | |
# Website: https://ryanc.me | |
# GitHub: https://github.com/MGinshe | |
# Usage: | |
# Place this file in /etc/nginx/sites-enabled/ | |
# Make sure you edit the DOMAIN_HERE and SSL_CERTIFICATE, and DB_FILTER sections | |
# | |
# Note: This config file is designed to be used with the Odoo dbfilter_from_header module | |
# https://apps.openerp.com/apps/modules/9.0/dbfilter_from_header/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream odoo-server { | |
server 0.0.0.0:8069; | |
} | |
upstream odoo-server-im { | |
server 0.0.0.0:8072 weight=1 fail_timeout=0; | |
} | |
server { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 443; | |
server_name fhisa.tabla.si; | |
access_log /var/log/nginx/fhisa.access.log; | |
error_log /var/log/nginx/fhisa.error.log; | |
ssl on; | |
ssl_certificate /etc/nginx/ssl/fhisa.crt; | |
ssl_certificate_key /etc/nginx/ssl/fhisa.key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Corey Goldberg, Dec 2012 | |
# | |
import os | |
import sys | |
import xml.etree.ElementTree as ET | |
NewerOlder