[IMP] maintenance_project_task_domain, maintenance_server_data, maintenance_service_http_monitoring, maintenance_create_requests_from_project_task: pre-commit execution
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class OsDistribution(models.Model):
|
||||
_name = 'os.distribution'
|
||||
_name = "os.distribution"
|
||||
|
||||
name = fields.Char('Name', compute="_compute_name")
|
||||
distrib_name = fields.Char('Distrib Name', required=True)
|
||||
distrib_version = fields.Char('Distrib Version')
|
||||
name = fields.Char("Name", compute="_compute_name")
|
||||
distrib_name = fields.Char("Distrib Name", required=True)
|
||||
distrib_version = fields.Char("Distrib Version")
|
||||
|
||||
@api.depends("distrib_name","distrib_version")
|
||||
@api.depends("distrib_name", "distrib_version")
|
||||
def _compute_name(self):
|
||||
for distrib in self:
|
||||
distrib.name = ""
|
||||
if distrib.distrib_name != "":
|
||||
distrib.name = distrib.distrib_name
|
||||
if distrib.distrib_version != "":
|
||||
distrib.name = distrib.name + ' ' + distrib.distrib_version
|
||||
distrib.name = distrib.name + " " + distrib.distrib_version
|
||||
|
||||
Reference in New Issue
Block a user