Saturday, January 16, 2021
1 change · master
Miscellaneous changes
- When searching for the last added transactions in the system, the search was not correct as it was searching on all entries. It should search on entries on a particular journal and with the same account.online.account. This caused problem in case there was multiple synchronization from different banks and one of them uses a provider relying on that information (ponto in this case). Also the default sort of account.bank.statement.line is by date asc which in our case is wrong as we want
Original PR description
- When searching for the last added transactions in the system, the search was not correct as it was searching on all entries. It should search on entries on a particular journal and with the same…
- When searching for the last added transactions in the system, the search was not correct as it was searching on all entries. It should search on entries on a particular journal and with the same account.online.account. This caused problem in case there was multiple synchronization from different banks and one of them uses a provider relying on that information (ponto in this case). Also the default sort of account.bank.statement.line is by date asc which in our case is wrong as we want the latest entry before a given date. - Balance was never updated because it was written after the break from the loop. - Also add db_uuid to all call so that we can prevent error in case database has been duplicated by the user on saas/paas (db_uuid is different when duplicating). The error happening when duplicating database is the following: when one database renew its refresh_token the second database has a signature error and can't connect anymore. As a matter of fact, online synchronization is not supposed to work with the same credentials on two different database. Forward-Port-Of: odoo/enterprise#15700