Friday, October 11, 2024
2 changes · saas-17.4
Resolved issues and error corrections
This fix prevents tiny rounding differences in manufacturing work center costs from creating accounting entries where debits and credits are off by one cent. It improves reliability of production cost posting and avoids manual corrections for affected manufacturing transactions.
Original PR description
labour_credit_line_vals were not properly rounded/summed, and could result in a difference between credit & debit of $0.01.  This happened because the credit value rounded up twice, and instead of having -0.005 + 0.005 => 0, we had -0 + 0.01 => +0.01. The issue could also happen with a cost share, if the workcenter_cost * cost_share = x.xx5. Hence, we needed to refactor how the workcenter_cost is computed to ensure that 'Original Credit Value = New Credit Value + Labor Credit Value'. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Adds automated checks for the German POS certification integration with Fiskaly. These tests mock external Fiskaly API calls, helping ensure the module keeps working correctly without depending on live services.
Original PR description
This commits add the first test for the fiskaly module. This tests mock all the call made to the api so that we can make sure the module is working correctly. opw-4171641