summaryrefslogtreecommitdiff
path: root/addons/fleet/models
diff options
context:
space:
mode:
authorRomainLibert <rli@odoo.com>2019-07-02 07:54:26 +0000
committerYannick Tivisse <yti@odoo.com>2019-07-15 12:47:03 +0000
commit8514ef827e1fcc2224aa0f4e6c2849819005c27d (patch)
treee5e822dc3720febab495614a129fafefee7f08a0 /addons/fleet/models
parent14067543d0ed0f3558bdc840d673f1b49c5cab22 (diff)
[IMP] various: Make some small tree views editable
Purpose ======= Some formviews are useless since there are so few relevant fields https://nimb.ws/1EdMV7 For instance, to create a new lost reason the user is forced to: 1. Hit create 2. Type in the name of the record 3. Hit save 4. Go back to the treeview While he could simply type them away in an editable treeview. The goal of this task is to allow for creation/edition of records in such models directly from the treeview. Specification ============= Modify tree views from a given list of models for which the treeview has to be made editable bottom. If not specified otherwise, the content treeview should stay the same. If a field is readonly/required/etc. in the formview, it should be in the editable treeview as well. Relabeling has to be done of the field itself, not in the view. TaskID: 2026126 closes odoo/odoo#34577 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/fleet/models')
-rw-r--r--addons/fleet/models/fleet_vehicle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/fleet/models/fleet_vehicle.py b/addons/fleet/models/fleet_vehicle.py
index 692e7246b4b..709880486ed 100644
--- a/addons/fleet/models/fleet_vehicle.py
+++ b/addons/fleet/models/fleet_vehicle.py
@@ -366,7 +366,7 @@ class FleetVehicleTag(models.Model):
_name = 'fleet.vehicle.tag'
_description = 'Vehicle Tag'
- name = fields.Char(required=True, translate=True)
+ name = fields.Char('Tag Name', required=True, translate=True)
color = fields.Integer('Color Index')
_sql_constraints = [('name_uniq', 'unique (name)', "Tag name already exists !")]