Skip to content

Commit

Permalink
[MIG] maintenance_request_stage_transition: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kaynnan committed Jul 3, 2023
1 parent d7ec6e5 commit d1eb217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion maintenance_request_stage_transition/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Maintenance Request Stage transition",
"summary": """
Manage transition visibility and management between stages""",
"version": "15.0.1.0.0",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/maintenance",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,8 @@ class MaintenanceRequest(models.Model):
stage_id = fields.Many2one("maintenance.stage", readonly=True)

@api.model
def fields_view_get(
self, view_id=None, view_type="form", toolbar=False, submenu=False
):
res = super().fields_view_get(
view_id=view_id,
view_type=view_type,
toolbar=toolbar,
submenu=submenu,
)
def get_view(self, view_id=None, view_type="form", **options):
res = super().get_view(view_id=view_id, view_type=view_type, **options)
if view_type == "form":
doc = etree.XML(res["arch"])
stages = self.env["maintenance.stage"].search([], order="sequence desc")
Expand Down

0 comments on commit d1eb217

Please sign in to comment.