Giter Club home page Giter Club logo

invoice-payment-gateway's Introduction

invoice-payment-gateway

Build Status Downloads Latest Version Development Status Coveralls

Authors and Contributors

This module was built at Openlabs.

Professional Support

This module is professionally supported by Openlabs. If you are looking for on-site teaching or consulting support, contact our sales and support teams.

invoice-payment-gateway's People

Contributors

aroraumang avatar param107 avatar prakashpp avatar tarunbhardwaj avatar

Watchers

 avatar  avatar  avatar  avatar

invoice-payment-gateway's Issues

AttributeError: 'NoneType' object has no attribute 'lines'

The following error happens, when

  • creating a sale
    • using invoice method 'On order processed'
    • using shipment method 'On order processed'
  • to be able to process the sale it is required to add a payment
  • when adding the payment via the 'Add payment' wizard on sale, it is possible to continue and process the sale successfully
    but
  • when going to the related invoice and using 'Pay using transaction' , this basically tries ot do the same payment again, but supposedly doesn't find any lines to process (see below).

So probably this should be improved by

  • fixing pay_using_transaction to not fail on missing lines
  • doing the automatic reconcialiation of invoice and payment, when the payment was created before the invoice (which seems the usual workflow when this module is installed).

What do you think?

[Tue Mar 31 16:27:17 2015] ERROR:trytond.protocols.dispatcher:Exception calling wizard.account.invoice.pay_using_transaction.execute from 1@::1:36384/nereid_webshop34
Traceback (most recent call last):
  File "/home/mathiasb/.virtualenvs/nereid-webshop34/local/lib/python2.7/site-packages/trytond/protocols/dispatcher.py", line 161, in dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/home/mathiasb/.virtualenvs/nereid-webshop34/local/lib/python2.7/site-packages/trytond/wizard/wizard.py", line 249, in execute
    return wizard._execute(state_name)
  File "/home/mathiasb/.virtualenvs/nereid-webshop34/local/lib/python2.7/site-packages/trytond/wizard/wizard.py", line 280, in _execute
    result = self._execute(transition())
  File "/home/mathiasb/.virtualenvs/nereid-webshop34/local/lib/python2.7/site-packages/trytond/modules/invoice_payment_gateway/invoice.py", line 265, in transition_pay
    self.start.invoice.pay_using_transaction(transaction)
  File "/home/mathiasb/.virtualenvs/nereid-webshop34/local/lib/python2.7/site-packages/trytond/modules/invoice_payment_gateway/invoice.py", line 47, in pay_using_transaction
    for line in payment_transaction.move.lines:
AttributeError: 'NoneType' object has no attribute 'lines'

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.