39 lines
1.3 KiB
Python
39 lines
1.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import api
|
|
from odoo.models import AbstractModel
|
|
|
|
|
|
class PublisherWarrantyContract(AbstractModel):
|
|
_name = "publisher_warranty.contract"
|
|
_description = 'Publisher Warranty Contract'
|
|
|
|
@api.model
|
|
def _get_message(self):
|
|
# Telemetry disabled - return empty data; no information sent to Odoo server
|
|
return {}
|
|
|
|
@api.model
|
|
def _get_sys_logs(self):
|
|
"""
|
|
Utility method to send a publisher warranty get logs messages.
|
|
Telemetry disabled - returns empty result without making network requests.
|
|
"""
|
|
# Telemetry disabled - return empty result to prevent data transmission to Odoo server
|
|
return {"messages": []}
|
|
|
|
def update_notification(self, cron_mode=True):
|
|
"""
|
|
Send a message to Odoo's publisher warranty server to check the
|
|
validity of the contracts, get notifications, etc...
|
|
|
|
Telemetry disabled - no communication with Odoo server. Returns True
|
|
immediately without sending any data.
|
|
|
|
@param cron_mode: If true, catch all exceptions (appropriate for usage in a cron).
|
|
@type cron_mode: boolean
|
|
"""
|
|
# Telemetry disabled - do not send any information to Odoo server
|
|
return True
|