Migration of base_transaction_id

Port the module to v8.
Use the new API where it has been used in the base model (account.invoice)
and the old API where the base model is still using it.