← Back to team overview

openerp-expert-accounting team mailing list archive

Re: Cancel state for account entries

 

On 03/31/2012 01:26 AM, Ovnicraft wrote:
Hello i want to read your opinion about this, some entries are manually enter or generated from invoice document, but when and invoice is cancelled entries are deleted.
I consider better keep entries and set to cancel state.


Hi Christian,

given the fact that the moves currently are a (one way computable) function of the invoice contents, you can only preserve the original moves while the invoice remains unchanged. So you could retract the move lines when canceling the invoice, then offer a new transition from state 'cancel' to state 'confirm' in which you repost the original moves. But you would have to delete the moves after all when moving from state 'cancel' to state 'draft' instead.

That should not be too hard to accomplish, but is it what you want?

Cheers,
Stefan.

--
Therp - Maatwerk in open ontwikkeling

Stefan Rijnhart - Ontwerp en implementatie

mail: stefan@xxxxxxxx
tel: +31 (0) 614478606
http://therp.nl
https://twitter.com/therp_stefan



References