Thursday, August 15, 2024
1 change · saas-17.4
Resolved issues and error corrections
Creating a new partner now immediately shows the country-specific Indian fields when the company is based in India. This prevents confusion and avoids users having to save the partner first before seeing required local information.
Original PR description
Steps to reproduce: - Clean DB with only one Indian company - Create a new partner - The Indian fields are not shown --> NOT OK - Save the record - The Indian fields are now shown --> OK Explanation: This is because the compute method `_compute_fiscal_country_codes` is not called when creating a new record. It is only called when the record is saved. Solution: Set a default value to the field `fiscal_country_codes` task-id: none