Skip to content

Commit

Permalink
Merge PR #1458 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by sbidoul
  • Loading branch information
shopinvader-git-bot committed Nov 16, 2023
2 parents c8739dc + aa399ce commit b370d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shopinvader_search_engine_product_stock/schemas/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ class ProductProduct(BaseProduct, extends=True):
@classmethod
def from_product_product(cls, odoo_rec):
obj = super().from_product_product(odoo_rec)
obj.stock = odoo_rec.stock_data
obj.stock = odoo_rec.stock_data if odoo_rec.stock_data else {}
return obj

0 comments on commit b370d1b

Please sign in to comment.