18.0-improve-equipment-model #8

Merged
stephansainleger merged 3 commits from 18.0-improve-equipment-model into 18.0 2026-07-02 13:51:14 +00:00
2 changed files with 3 additions and 0 deletions
Showing only changes of commit 3e7e30ac14 - Show all commits

View File

@@ -5,6 +5,7 @@ class MaintenanceEquipment(models.Model):
_inherit = "maintenance.equipment"
server_ip = fields.Char("Server Ip Address")
main_domain_name = fields.Char("Main Domain Name", )
distribution_id = fields.Many2one("os.distribution", string="Distribution")
service_ids = fields.One2many("service.instance", "equipment_id", string="Services")
hosting_city = fields.Char("Hosting City")

View File

@@ -8,6 +8,7 @@
<xpath expr="//field[@name='effective_date']/.." position="after">
<group name="server_data" string="Server data">
<field name="server_ip" />
<field name="main_domain_name" />
<field name="hosting_city" />
<field name="distribution_id" />
<field name="nb_cores" />
@@ -45,6 +46,7 @@
<field name="arch" type="xml">
<xpath expr="//field[@name='category_id']" position="after">
<field name="server_ip" optional="hide" />
<field name="main_domain_name" optional="hide" />
<field name="hosting_city" optional="hide" />
<field name="distribution_id" optional="hide" />
<field name="nb_cores" optional="hide" />