invoice report is not saved to the cache
As discussed on IRC [1] there is an issue where the invoice report is not saved
to the cache on invoice confirmation.
The problem is that the decorator of .open() sets the state *after* .open()
returns so when .parse() is called the invoice is still in draft state and not
written to "invoice_report_cache".
Despite the hack of setting the state directly from .open(), I don't see any
other solution than adding an argument to the decorator in order to call a
method after the state change. Any Ideas?
[1] http://www.tryton.org/~irclog/2013-01-23.log.html