updata feild name

This commit is contained in:
Mazen Abdo 2024-10-17 13:21:13 +03:00
parent e19e4239eb
commit f375e776c1
28 changed files with 7 additions and 2 deletions

View File

@ -22,7 +22,12 @@ class FleetMaintenance(models.Model):
raise ValidationError(_("You Need To Configurate Account Details"))
return res
name = fields.Char(string="Name")
name = fields.Many2one(
'fleet.service.type',
string='Service Type',
required=True,
help="Choose the type of maintenance service"
)
next_request_date = fields.Date(string="Next Request Date")
date = fields.Date(string=" Request Date", default=fields.Date.context_today)
next_odometer = fields.Float(string="Next Odometer", compute='get_old_odometer', store=True)

View File

@ -20,7 +20,7 @@
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1>
<field name="name" attrs="{'readonly': [('state', '!=', 'draft')],'required':True}"/>
<field name="name" widget="many2one"/>
</h1>
<label for="vehicle_id" class="oe_edit_only"/>
<h2>