← Back to team overview

openerp-community team mailing list archive

Re: Reopen a paid invoice

 

Hi Markus,

 
I made a fonction to cancel invoice on an old version (4.2) with a wkf transition back from paid to open (forget about this one it is too old, Pedro's one should be much easier to migrate to 8.0).

 
Obviously, the paid activity has to be changed from "flow_stop" to normal.

This worked perfectly, but...

As the invoice wkf is a subflow of the sale order one, this had a drawback: the wkf engine needs a flow stop activity to get out of the subflow and carry on in the parent wkf. When the invoice was paid, the order wkf could not progress anymore.

I had to hack the wkf engine to overcome this problem. My opinion is that this has not to be considered as a bug in Odoo, as we do use it normally in this case.

I do not know if this still happens with new versions, but be careful to include this test in your dev, so as you are sure you have no side effect taking out the flow_stop activity.

 
Regards,

 
Eric Flaux

ABF Osiell

Immeuble Omega

Rue Jean-Marie David

ZAC de la Teillais

35740 PACE

Tél: 09.72.30.30.29

Mob: 06.84.49.86.71

E-mail:eric.flaux@xxxxxxxxxx

www.osiell.com

 

 
-----Message initial-----
De:Markus Schneider <markus.schneider@xxxxxxxxxx>
Envoyé:mar. 08-07-2014 18:16
Sujet:[Openerp-community] Reopen a paid invoice
À:openerp-community@xxxxxxxxxxxxxxxxxxx; 
Hi community,

My situation:
A customer has a order paying with a external payment gateway. We
generating a invoice and we see the money on our bank account we
reconcile the invoice as paid. Everything fine.

The problem:
Now it is possible that the customer can go to his bank and return his
money. In this case, we want to add a new account.move and link it to
the existing invoice and set them back to unpaid. (Reconsile it later if
he pay with a other payment method or send him payment reminder and all
the payment follow-up stuff).

Hint:
We don't want to modified the existing account.move and avoid cancel in
accounting.

Question:
Has someone implement a module doing this or something similar?

Kind Regards

Markus

-- 
Dipl.-Comp.-Math. Markus Schneider
Softwareentwickler

initOS GmbH & Co. KG
An der Eisenbahn 1
21224 Rosengarten

Mobil:   +49 (0)172 2303699
Phone:   +49 (0)4105 5615613
Fax:     +49 (0)4105 5615610

Email:   markus.schneider@xxxxxxxxxx
Web:     http://www.initos.com

Geschäftsführung:
Dipl. Wirt.-Inf. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke
Haftende Gesellschafterin: initOS Verwaltungs GmbH

Sitz der Gesellschaft: Rosengarten – Klecken
Amtsgericht Tostedt, HRA 201840
USt-IdNr: DE 275698169
Steuer-Nr: 15/205/21402

_______________________________________________
Mailing list: https://launchpad.net/~openerp-community
Post to     : openerp-community@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp

References