Tryton - Issues

 

Message47061

Author Timitos
Recipients
Date 2019-02-15.17:15:45
Content
The error message with id "msg_stripe_receivable" is ambiguous when comparing the message and the related code.

In the code there is a check: "if self.kind != 'receivable' [0]
But the error message says: You cannot use stripe journal "%(journal)s" on receivable payment "%(payment)s". [1]

So the code checks if the kind of the payment is NOT 'receivable' but the error message says that a journal if process_method 'stripe' cannot be used on payments of type 'receivable'.

So if the error message is correct the code needs to be fixed. Please confirm that and i will provide a patch.

[0] http://hg.tryton.org/modules/account_payment_stripe/file/tip/payment.py#l139
[1] http://hg.tryton.org/modules/account_payment_stripe/file/d5b4ecf0099a/message.xml#l10
History
Date User Action Args
2019-02-15 17:15:46Timitossetmessageid: <1550247346.09.0.21589704426.issue8121@tryton.org>
2019-02-15 17:15:46Timitoslinkissue8121 messages
2019-02-15 17:15:45Timitoscreate

Showing 10 items. Show all history (warning: this could be VERY long)