Open sdouma opened 1 year ago
Hi @sdouma. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
Found this #3275 after checking through m2 issues. Been over a year and it is P1 and low risk
Summary (*)
When \Magento\InventoryApi\Api\Data\StockExtension implements the extension interface it will break adding any other extension attribute because it isn't going to build in generated. Even if you override the class and interface, magento bases on the generated interface, so when Magento\Ui\DataProvider builds the item data through the hydrate interface, it will base the extension attributes on \Magento\InventoryApi\Api\Data\StockExtension not the preference.
note: I do see the TODO but this has been causing issues for 4 years.
Examples (*)
\Magento\InventoryApi\Api\Data\StockExtension
Proposed solution
Don't implement the interface.