Skip to content

Commit

Permalink
Update fieldservice_account_analytic/models/fsm_order.py
Browse files Browse the repository at this point in the history
  • Loading branch information
max3903 authored Nov 30, 2024
1 parent f31e162 commit e7f8bb5
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions fieldservice_account_analytic/models/fsm_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,3 @@ def create(self, vals_list):
)
record.analytic_account_id = analytic_account
return record

def action_view_analytic_account(self):
self.ensure_one()
analytic_account = self.env["account.analytic.account"].search(
[("fsm_order_id", "=", self.id)], limit=1
)

if analytic_account:
return {
"type": "ir.actions.act_window",
"res_model": "account.analytic.account",
"view_mode": "form",
"res_id": analytic_account.id,
"name": _("Analytic Account for Order %s") % self.name,
}

0 comments on commit e7f8bb5

Please sign in to comment.