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
[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
# 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
'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
<?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
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
java.lang.ExceptionInInitializerError | |
at org.jruby.RubyIO.<clinit>(RubyIO.java:113) | |
at org.jruby.RubyInstanceConfig.setupEnvironment(RubyInstanceConfig.java:677) | |
at org.jruby.RubyInstanceConfig.<init>(RubyInstanceConfig.java:123) | |
at org.jruby.embed.internal.AbstractLocalContextProvider.<init>(AbstractLocalContextProvider.java:59) | |
at org.jruby.embed.internal.SingleThreadLocalContextProvider.<init>(SingleThreadLocalContextProvider.java:50) | |
at org.jruby.embed.ScriptingContainer.getProviderInstance(ScriptingContainer.java:260) | |
at org.jruby.embed.ScriptingContainer.<init>(ScriptingContainer.java:241) | |
at org.jruby.embed.ScriptingContainer.<init>(ScriptingContainer.java:227) | |
at org.typeexit.kettle.plugin.steps.ruby.RubyStepFactory.createScriptingContainer(RubyStepFactory.java:18) |
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/lib/ooor/persistence.rb b/lib/ooor/persistence.rb | |
index 18b2d02..1a55f3a 100644 | |
--- a/lib/ooor/persistence.rb | |
+++ b/lib/ooor/persistence.rb | |
@@ -90,6 +90,9 @@ module Ooor | |
@attributes ||= {} | |
@loaded_associations = {} | |
attributes.each do |key, value| | |
+if key.to_s == "id" | |
+ @attributes['id'] = value |
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
start Rails with the option to listen to any IP, for instance: | |
bundle exec rails s -b 0.0.0.0 | |
use the https://github.com/gliderlabs/hostlocal tool to create a new "loopback interface": | |
docker run --rm --privileged --net=host gliderlabs/hostlocal | |
start Voodoo | |
inside Voodoo, your host is accessible with the same ports (port 3000 for Rails dev for instance) but the host is now called; | |
hostlocal.io |
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
#in case of error such as: | |
# "no implicit conversion of nil into String" when doing wagon pull | |
#You can spot the source of the problem doing wagon pull -v | |
#this patch helps skipping ad identifying the faulty entry | |
# in locomotivecms_mounter-1.4.4/lib/locomotive/mounter/reader/api/content_entries_reader.rb around line 124: | |
def retrieve_file_path(content_type, field, attributes) | |
value = attributes[field.name] |