Daily updates from Odoo
Monday, March 31, 2025
2 changes · master
Resolved issues and error corrections
Rental sales now use the same company rules as standard sales when choosing products. This prevents users in subsidiary companies from seeing inconsistent product options and makes rental order entry more reliable.
Original PR description
The `company_id` part of the product_id/product_tmpl_id domain on sale order lines has been removed by odoo/odoo@b0f0fd2ee3dcc3bbb24a123d4a1b38d17d0ce8c9 but not adapted in rental, leaving to an inconsistency between the two apps. This commit (and the community counterpart) refactor the domains of those fields to rely on the standard `check_company` logic, simplifying the logic and avoiding inconstitencies.
The German financial reports now calculate prior-year profit or loss and current-year net income more accurately on the balance sheet. This helps businesses relying on German localization reports see correct carried-forward and annual result figures for fiscal reporting.
Original PR description
Profit and loss from previous year was not well calculated on the balance sheet. With this commit, we change the date scope for the `Net profit/loss for the year` line from `normal` to `from_fiscalyear`. We also change the way we calculate `Profit carried forward/loss carried forward` and `Net income/loss for the year` lines. opw-3663626