updata feild name
This commit is contained in:
parent
e19e4239eb
commit
f375e776c1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -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)
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -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>
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue