Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: eCommerce

Entity: product.feed

Compute Method: _compute_url

View 19.0 View 20.0
Inputs Method Outputs
  • target
  • website_id
  • id
  • access_token
"""Compute the full feed url."""
for feed in self:
            match feed.target:
-                 case 'gmc':
-                     path = '/gmc.xml'
+                 case "gmc":
+                     path = "/gmc.xml"
                case _:
                    raise NotImplementedError

            feed.url = urls.urljoin(
                feed.website_id.get_base_url(),
-                 f'{path}?feed_id={feed.id}&access_token={feed.access_token}',
+                 f"{path}?feed_id={feed.id}&access_token={feed.access_token}",
            )
  • url

Back to entity