diff options
| author | RomainLibert <rli@odoo.com> | 2019-07-02 07:54:26 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-07-15 12:47:03 +0000 |
| commit | 8514ef827e1fcc2224aa0f4e6c2849819005c27d (patch) | |
| tree | e5e822dc3720febab495614a129fafefee7f08a0 /addons/maintenance/models | |
| parent | 14067543d0ed0f3558bdc840d673f1b49c5cab22 (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/maintenance/models')
| -rw-r--r-- | addons/maintenance/models/maintenance.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/maintenance/models/maintenance.py b/addons/maintenance/models/maintenance.py index ce4fc8c3e65..1978129da6e 100644 --- a/addons/maintenance/models/maintenance.py +++ b/addons/maintenance/models/maintenance.py @@ -401,7 +401,7 @@ class MaintenanceTeam(models.Model): _name = 'maintenance.team' _description = 'Maintenance Teams' - name = fields.Char(required=True, translate=True) + name = fields.Char('Team Name', required=True, translate=True) active = fields.Boolean(default=True) company_id = fields.Many2one('res.company', string='Company', default=lambda self: self.env.company) |
