This file contains hidden or 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
ActiveMerchant::Billing::Base.mode = :test | |
Ooor.new(url: "http://154023-9-0-72d03e.runbot8.odoo.com", database: "154023-9-0-72d03e-all", username: "admin", password: "admin", models: ["payment.acquirer"]) | |
gateway = OdooMerchant.gateway_for(:authorize) | |
amount = 1000 # $10.00 | |
# The card verification value is also known as CVV2, CVC2, or CID |
This file contains hidden or 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
<?xml version="1.0"?> | |
<enviNFe xmlns="http://www.portalfiscal.inf.br/nfe" versao="3.10"> | |
<idLote>189</idLote> | |
<indSinc>1</indSinc> | |
<NFe xmlns="http://www.portalfiscal.inf.br/nfe"> | |
<infNFe Id="NFe13140311707347000195650030000004591064552496" versao="3.10"> | |
<ide> | |
<cUF>13</cUF> | |
<cNF>06455249</cNF> | |
<natOp>Venda</natOp> |
This file contains hidden or 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
'5a2b33f164986a31227c1863271e5a70a60e364f' |
This file contains hidden or 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
# see https://www.odoo.com/forum/help-1/question/where-are-document-attachments-stored-529 | |
session.open() | |
attachment_obj=session.env['ir.attachment'] | |
def migrate_attachment(att): | |
# 1. get data | |
data = att.read(['datas'])['datas'] | |
# 2. Re-Write attachment |
This file contains hidden or 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
[buildout] | |
auto-checkout = * | |
extensions = mr.developer | |
parts = openerp | |
versions = versions | |
sources = sources | |
find-links = http://download.gna.org/pychart/ | |
http://pydot.googlecode.com/files/pydot-1.0.28.tar.gz | |
[sources] |
This file contains hidden or 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
diff --git a/l10n_br_account_payment_mode/models/payment_mode.py b/l10n_br_account_payment_mode/models/payment_mode.py | |
index 8c25c5f..6bf678a 100644 | |
--- a/l10n_br_account_payment_mode/models/payment_mode.py | |
+++ b/l10n_br_account_payment_mode/models/payment_mode.py | |
@@ -26,10 +26,10 @@ from openerp import models, fields | |
class PaymentMode(models.Model): | |
_inherit = 'payment.mode' | |
- payment_order_type = fields.Selection( | |
- selection_add=[ |
This file contains hidden or 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
diff --git a/l10n_br_account_payment_boleto/boleto/document.py b/l10n_br_account_payment_boleto/boleto/document.py | |
index c851239..cf674e9 100644 | |
--- a/l10n_br_account_payment_boleto/boleto/document.py | |
+++ b/l10n_br_account_payment_boleto/boleto/document.py | |
@@ -92,7 +92,7 @@ class Boleto: | |
self.boleto.especie = \ | |
move_line.currency_id and move_line.currency_id.symbol or 'R$' | |
self.boleto.quantidade = '' # str("%.2f" % move_line.amount_currency) | |
- self.boleto.numero_documento = move_line.name.encode('utf-8') | |
+ self.boleto.numero_documento = move_line.id #move_line.name.encode('utf-8') |
This file contains hidden or 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
<editix:emitType xmlns:editix="http://www.portalfiscal.inf.br/nfe"> | |
<editix:CPF>12345678901</editix:CPF> | |
<editix:xNome>Raphael</editix:xNome> | |
<editix:enderEmit xmlns:editix="http://www.portalfiscal.inf.br/nfe"> | |
<editix:xLgr>NKwaAJ5ZJ49aQYmqBvxMhBzkGUqvtXnqusGEtjDzKCXPGwrEZCS8LGKHyBbV</editix:xLgr> | |
<editix:nro>11mzXHR8rZTgfE35EqfGhiShiIwQfLCAziFDXVgs3EjLSPkZkCvfGNLMEf5y</editix:nro> | |
<editix:xCpl>Fr3gSvoAeKbGpQD3r98KFeB50P3Gq14XBVsv5fpiaBvJ3HTOpREiwYGs20Xw</editix:xCpl> | |
<editix:xBairro>67LQFlXOBK0JqAE1rFi2CEyUGW5Z8QmmHhzmZ9GABVLKa9AbV0uFR0onl7nU</editix:xBairro> | |
<editix:cMun>9999999</editix:cMun> | |
<editix:xMun>s1Cr2hWP6bptQ80A9vWBuTaODR1U82LtKQi1DEm3LsAXu9AbkSeCtfXJVTKG</editix:xMun> |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
from odoo import models, fields | |
from . import sped | |
from . import leiauteNFelib as nfe | |
"""Exibilidade do ISS:1-Exigível;2-Não incidente;3-Isenção;4-Exportação;5-Imunidade;6-Exig.Susp. Judicial;7-Exig.Susp. ADM""" | |
indISS = [('1', '1'), ('2', '2'), ('3', '3'), ('4', '4'), ('5', '5'), ('6', '6'), ('7', '7')] | |
"""Origem do processo, informar com: |
This file contains hidden or 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
apply the following patch to Odoo: | |
diff --git a/odoo/cli/command.py b/odoo/cli/command.py | |
index cf9a410..7de4208 100644 | |
--- a/odoo/cli/command.py | |
+++ b/odoo/cli/command.py | |
@@ -42,7 +42,11 @@ def main(): | |
args = args[1:] | |
# Default legacy command |