Daily updates from Odoo
Tuesday, August 27, 2019
3 changes
Resolved issues and error corrections
This fixes a crash that could occur while calculating subscription line subtotals. The change keeps pricing calculations from losing draft record data, helping users create or update subscriptions more reliably.
Original PR description
This sudo does not seem to have a real use, but it currently crashes in master. The problem being that in _compute_price_subtotal self can be a NewId record which means it loses all it's values when sudoed. The crash then happens in res.currency.round since it needs to have a record (self.ensure_one) See https://github.com/odoo/odoo/commit/e270e9e0cc6574d2c6bdd29983d3b66d12d2ced7
Laurie Poiret's demo employee contract is now assigned to the correct Belgian company. This keeps salary and payroll demo data aligned with the newer multi-company payroll rules, avoiding confusion in test or demo scenarios.
Original PR description
In https://github.com/odoo/odoo/commit/1684ec555dcccfbd4fca9123902065e01a67c057 we introduced new multi company rules in hr_payroll. However we forgot to move the contract of Laurie Poiret in the new Belgian company.
Miscellaneous changes
This pull request reverses a previous internal change related to linting tests. It is not expected to affect day-to-day business workflows, but helps keep the codebase aligned with the team's current quality checks.