Sunday, October 20, 2019
5 changes · master
Miscellaneous changes
Tests can fail when they are run at the moment when `fields.Date.today` is different from `fields.Date.context_today`. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#39078
Original PR description
Tests can fail when they are run at the moment when `fields.Date.today` is different from `fields.Date.context_today`. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#39078
The demo certificates for the VAT TCM970625MB1 now are not available for finkok to allow cancel a CFDI. Now the cancellation process in demo, is send directly to the SAT, and only support some CSDs, in this case EKU9003173C9 is one of the VAT for that certificates. Wiki from finkok = https://wiki.finkok.com/doku.php?id=pruebas User: integracion Pass: 1nT36R4c!0N Extra: The PAC indicated that the CSD content when is send to cancel not must have` \n`, this to allow encode in b64, t
Original PR description
The demo certificates for the VAT TCM970625MB1 now are not available for finkok to allow cancel a CFDI. Now the cancellation process in demo, is send directly to the SAT, and only support some CSDs, in this case EKU9003173C9 is one of the VAT for that certificates. Wiki from finkok = https://wiki.finkok.com/doku.php?id=pruebas User: integracion Pass: 1nT36R4c!0N Extra: The PAC indicated that the CSD content when is send to cancel not must have` \n`, this to allow encode in b64, then was replace that by '' before to send to cancel. (Based on the invoice method) Forward-Port-Of: odoo/enterprise#6283 Forward-Port-Of: odoo/enterprise#6166
The SOAP provided by banxico to get the exchange rate now was disabled, and now must be used REST to get the exchange rate. Here the Banxico Doc that was used to get the rate: https://www.banxico.org.mx/SieAPIRest/service/v1/;jsessionid=e330efad50bb0388c61e1fd255d7 https://www.banxico.org.mx/SieAPIRest/service/v1/doc/consultaDatosSerieRango Considerations: Banxico provides the way to get the tokens to allow get the exchange rate, and each token has some limits, only could be used 1000
Original PR description
The SOAP provided by banxico to get the exchange rate now was disabled, and now must be used REST to get the exchange rate. Here the Banxico Doc that was used to get the rate:…
The SOAP provided by banxico to get the exchange rate now was disabled, and now must be used REST to get the exchange rate. Here the Banxico Doc that was used to get the rate: https://www.banxico.org.mx/SieAPIRest/service/v1/;jsessionid=e330efad50bb0388c61e1fd255d7 https://www.banxico.org.mx/SieAPIRest/service/v1/doc/consultaDatosSerieRango Considerations: Banxico provides the way to get the tokens to allow get the exchange rate, and each token has some limits, only could be used 10000 times in the day. By default was generated the token d03cdee20272f1edc5009a79375f1d942d94acac8348a33245c866831019fef4, but could be generated a new by each customer and added how system parameter with the key banxico_token, to avoid conflicts. Is used the date from today - 1 for the next reason: In Mexico, Banxico provides the exchange rate regularly to 12:00 p.m., but that rate must be used the next day, to have consistence with all the entries. Then, if I get the exchange rate now, I need get the exchange rate from yesterday, because Odoo get the more new rate in the system. Then is better execute the cron every day to the first hour of the day. Extra: Banxico not provide the exchange rate in weekend days. Forward-Port-Of: odoo/enterprise#6274 Forward-Port-Of: odoo/enterprise#6214
In case we match several documents, a traceback is raised. opw-2089290 Forward-Port-Of: odoo/enterprise#6275 Forward-Port-Of: odoo/enterprise#6266
Original PR description
In case we match several documents, a traceback is raised. opw-2089290 Forward-Port-Of: odoo/enterprise#6275 Forward-Port-Of: odoo/enterprise#6266
Before this commit: - When we try to open a report that is not linked to an existing view, a traceback appears. After this commit: - Instead of a traceback, an User Error is raised. OPW-2079729 Co-authored-by: @pka-odoo <pka@odoo.com> Forward-Port-Of: odoo/enterprise#6259
Original PR description
Before this commit:
- When we try to open a report that is not linked to an existing
view, a traceback appears.
After this commit:
- Instead of a traceback, an User Error is raised.
OPW-2079729
Co-authored-by: @pka-odoo <pka@odoo.com>
Forward-Port-Of: odoo/enterprise#6259