Files
enterprise-addons/website_sale_renting/models/product_pricing.py
T

13 lines
337 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class ProductPricing(models.Model):
_inherit = 'product.pricing'
def _get_tz(self):
if website := self.env["website"].get_current_website(fallback=False):
return website.tz
return super()._get_tz()