Sunday, November 17, 2024
2 changes · 18.0
Resolved issues and error corrections
Quotation documents linked to a specific company will now only be available within that company, while documents intended for all companies remain shared. This prevents users from seeing or using company-specific quotation content in the wrong company context, improving consistency for multi-company sales operations.
Original PR description
A quotation document can be linked either to a single company, or to all companies. However, this information was ignored, and all quotation documents were available in all companies, regardless of their linked companies. This change enforces consistent multi-company behavior, i.e. quotation documents are only available in their linked companies. opw-4087354
This update corrects how expense payment journal entries and the related outstanding company expense account are handled, so the interface and validation messages better match what users can actually configure. It also makes expense tests more reliable by avoiding dependence on record creation order.
Original PR description
## [FIX] hr_expense: Fix payment journal entry optional This fixes issues that arose since https://github.com/odoo/odoo/commit/2609fc2e38b8a82c773f27f910f2030b5d704633 In https://github.com/odoo/odoo/commit/2609fc2e38b8a82c773f27f910f2030b5d704633, the tests were edited but failed to reflect the changes that the user would be able to do from the interface. This also improves the error & field name for the new outstanding expense account, which was mistakenly mentioning employee expense instead of company ones ## [FIX] hr_expense: Fix tests account.move order determinism Fix a test where the sorting would be done depending on the account.moves creation order, because the moves would share all but the last element of their _order 'date desc, name desc, invoice_date desc, id desc' which would break for no valid reason if this order is changed. By changing the date, this make sure the test can always reliably access the moves in the same order. task-id: 4214018