One ornery fallout of our recent migration from OpenERP to Tryton is the fact we ignored the need to set invoice.move to the accounting move generated, we only set move.origin back to the invoice.
I did a psql one-liner to set invoice.move, which seems fine … one can now navigate to the move from the invoice.
The issue is for the payments made under Tryton with invoices migrated.
The invoice state does not pick up the fact that the primary move line may now be reconciled.
Now, if I de-reconcile and re-reconcile the primary move line then the invoice state is correctly set.
Naturally I’m not too warm to do this with a few hundred invoices, any hint on getting these invoices to process more automatically the reconciled state of the move?
It would be nice to avoid patching Invoice.process() but perhaps that’s the only way?
or some tryton-console magic? (since amount to pay is ‘0’ in this case, is it reasonable simply to force the state to ‘paid’?)
Thanks in advance