Tuesday, September 27, 2022
2 changes
Resolved issues and error corrections
This fix prevents an error when users create an asset from a project’s Assets button. It ensures the asset form receives the right type information, allowing project-related asset creation to work reliably.
Original PR description
1. Go to Projects -> edit 2. Click on the "Assets" smart button 3. Try to create an asset -> Traceback This happens because the `asset_type` depends on the context and it is better to explicitly pass it to the view. task-2927428
Intrastat reports now show the product origin country name correctly instead of displaying raw translation data. This prevents confusing country labels and helps users read reporting information accurately.
Original PR description
Due to the recent jsonb fields update, the product origin country name as retrieved by the sql intrastat query is in the form of a json string e.g. {'en_US': 'Algeria'}
To correct this we use the ->> operator to parse the json in the field and retrieve the correctly translated value for the country name.