19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:32:12 +01:00
parent 79f83631d5
commit 73afc09215
6267 changed files with 1534193 additions and 1130106 deletions

View file

@ -0,0 +1,12 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class LoyaltyHistory(models.Model):
_inherit = 'loyalty.history'
def _get_order_portal_url(self):
if self.order_id and self.order_model == 'sale.order':
return self.env['sale.order'].browse(self.order_id).get_portal_url()
return super()._get_order_portal_url()