diff --git a/fieldservice_account_analytic/README.rst b/fieldservice_account_analytic/README.rst index 0dbde0b314..a3ed976992 100644 --- a/fieldservice_account_analytic/README.rst +++ b/fieldservice_account_analytic/README.rst @@ -53,7 +53,16 @@ To configure this module, you need to: Usage ===== - +- Go to Field Service > Master Data > Locations +- Create or select a location +- Go to the Accounting tab +- Select a new or existing analytic account +- Go to Field Service> Operations > All Orders +- Create or select an order +- Select a location +- Go to the Accounting tab +- Add subcontractor costs +- Complete and invoice the order Bug Tracker =========== diff --git a/fieldservice_account_analytic/models/fsm_order.py b/fieldservice_account_analytic/models/fsm_order.py index 483390227f..43ada5de03 100644 --- a/fieldservice_account_analytic/models/fsm_order.py +++ b/fieldservice_account_analytic/models/fsm_order.py @@ -1,7 +1,7 @@ # Copyright (C) 2018 - TODAY, Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import _, api, fields, models +from odoo import api, fields, models class FSMOrder(models.Model): @@ -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, - } diff --git a/fieldservice_account_analytic/static/description/index.html b/fieldservice_account_analytic/static/description/index.html index 09690df65a..9fbeb244a7 100644 --- a/fieldservice_account_analytic/static/description/index.html +++ b/fieldservice_account_analytic/static/description/index.html @@ -403,6 +403,18 @@

Configuration

Usage

+

Bug Tracker

diff --git a/fieldservice_account_analytic/views/fsm_order.xml b/fieldservice_account_analytic/views/fsm_order.xml index bc9fbb30fa..54b38c0ae3 100644 --- a/fieldservice_account_analytic/views/fsm_order.xml +++ b/fieldservice_account_analytic/views/fsm_order.xml @@ -8,7 +8,11 @@ - +