Daily updates from Odoo
Wednesday, August 14, 2024
1 change · master
Resolved issues and error corrections
The Partner Ledger report now correctly shows entries when users filter by an individual contact rather than a company. This prevents empty reports and helps users review financial activity for the specific partner they selected.
Original PR description
Steps to reproduce:
- Go to Partner Ledger report
- Choose individual in partners filtering instead of company
- Cannot show report filtered by individual
Current behaviour:
- Show empty report
Expected behaviour:
- Show report related to the individual only
Explanation:
The account.move.line partner_id will set as commercial_partner_id. Therefore in _get_options_partner_domain(self, options), the domain ('partner_id', 'in', partner_ids) only filtered on the commercial partner, not on the individual partner.