Coder Social home page Coder Social logo

payment_bitcoin's People

Contributors

gonxi avatar rubencabrera avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

thirdkiller

payment_bitcoin's Issues

ZeroDivisionError

En el proceso de realizar una compra sencilla de un artículo, al pinchar en el botón "Pay Now" tras elegir bitcoin como método de pago, se produce un error 500 de servidor, siendo esta la última línea del error:

File ".../payment_bitcoin/models/bitcoin.py", line 111, in _bitcoin_form_validate
amount_in_bitcoin = tx.amount / rate_silent
ZeroDivisionError: float division by zero

En res.currency aparece este aviso en la definición del campo rate_silent:

Do not use for computation ! Same as rate field with silent failing

Está pasando porque el valor que se le asigna a rate_silent en el xml de data no se está guardando correctamente. El campo rate_silent está definido como campo calculado (function en la api vieja) y se calcula a partir de las líneas de tasa cambio (res.currency.rate).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.