Daily updates from Odoo
Friday, July 8, 2022
2 changes
Resolved issues and error corrections
This update corrects how test helpers create spreadsheet documents so extra document details are applied properly. It helps keep spreadsheet-related document creation reliable while also simplifying some internal test code for easier maintenance.
Original PR description
`create` doesn't take additional keywords, so
create({...}, **values)
doesn't make sense. I expect the original goal was to allow callers of
`create_spreadsheet` to provide additional values for the document
being created.
Also a few stylistic improvements::
- sort and slice the last element rather than sorting in reverse and
taking the first (shorter and clearer)
- fold `**params` into a dict literal rather than layer a
`dict(..., **params)` call over a literal dictA payroll accounting test was adjusted to account for more precise hourly wage values. This prevents a small 8-cent discrepancy from causing test failures and helps keep Belgian payroll calculations reliably validated.