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
| Inputs | Method | Outputs |
|---|---|---|
|
"""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}",
)
|
|
