-
Notifications
You must be signed in to change notification settings - Fork 267
[18.0][MIG] fieldservice_account_analytic #1226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 18.0
Are you sure you want to change the base?
Changes from all commits
e0c8a90
2a32513
107b27f
6fb09af
7fb85fc
e6c1927
903e20e
404d69b
55f1d64
fe60e2f
c3f8a20
e6c2283
3f844ee
4f06bee
4510ddc
eeabe9c
c0c5df5
9e27a19
5a05c72
9a3a91f
fc6f43a
cef6b80
85cfcc3
8bca1c4
f5c255b
0e41978
93e0c1a
a15aa44
af5b04d
1b463f1
d1981ab
97c30a2
7c6c214
80bc623
e7adb35
e8cbf5b
51f47b0
c48ecdc
323dede
de6d104
af87aea
a7c9411
a07c116
0b4d9cb
6289872
886398a
ec1e779
9017205
ec44a96
5c93b75
3dcd910
b7ce772
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,132 @@ | ||
| =================================== | ||
| Field Service - Analytic Accounting | ||
| =================================== | ||
|
|
||
| .. | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! This file is generated by oca-gen-addon-readme !! | ||
| !! changes will be overwritten. !! | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! source digest: sha256:187502c73f589c1c69cf504b3bb83cd50ca38eee87433bde51306e12d8cad645 | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
|
||
| .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
| :target: https://odoo-community.org/page/development-status | ||
| :alt: Beta | ||
| .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
| :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
| :alt: License: AGPL-3 | ||
| .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Ffield--service-lightgray.png?logo=github | ||
| :target: https://github.com/OCA/field-service/tree/18.0/fieldservice_account_analytic | ||
| :alt: OCA/field-service | ||
| .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
| :target: https://translation.odoo-community.org/projects/field-service-18-0/field-service-18-0-fieldservice_account_analytic | ||
| :alt: Translate me on Weblate | ||
| .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
| :target: https://runboat.odoo-community.org/builds?repo=OCA/field-service&target_branch=18.0 | ||
| :alt: Try me on Runboat | ||
|
|
||
| |badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
|
||
| This module adds the ability to track your analytic accounts on field | ||
| service orders. It also adds the option to track the billing partner for | ||
| field service locations and orders. | ||
|
|
||
| **Table of contents** | ||
|
|
||
| .. contents:: | ||
| :local: | ||
|
|
||
| Installation | ||
| ============ | ||
|
|
||
| No special installation instructions | ||
|
|
||
| Configuration | ||
| ============= | ||
|
|
||
| To configure this module, you need to: | ||
|
|
||
| - Go to Field Service > Master Data > Locations | ||
| - Create or select a location and set their analytic account | ||
|
|
||
| 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 | ||
| =========== | ||
|
|
||
| Bugs are tracked on `GitHub Issues <https://github.com/OCA/field-service/issues>`_. | ||
| In case of trouble, please check there if your issue has already been reported. | ||
| If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
| `feedback <https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice_account_analytic%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
|
||
| Do not contact contributors directly about support or help with technical issues. | ||
|
|
||
| Credits | ||
| ======= | ||
|
|
||
| Authors | ||
| ------- | ||
|
|
||
| * Open Source Integrators | ||
|
|
||
| Contributors | ||
| ------------ | ||
|
|
||
| - Michael Allen <[email protected]> | ||
| - Serpent Consulting Services Pvt. Ltd. <[email protected]> | ||
| - Brian McMaster <[email protected]> | ||
| - Freni Patel <[email protected]> | ||
| - `APSL <https://apsl.tech>`__: | ||
|
|
||
| - Antoni Marroig <[email protected]> | ||
|
|
||
| Other credits | ||
| ------------- | ||
|
|
||
| The development of this module has been financially supported by: | ||
|
|
||
| - Open Source Integrators <https://opensourceintegrators.com> | ||
|
|
||
| Maintainers | ||
| ----------- | ||
|
|
||
| This module is maintained by the OCA. | ||
|
|
||
| .. image:: https://odoo-community.org/logo.png | ||
| :alt: Odoo Community Association | ||
| :target: https://odoo-community.org | ||
|
|
||
| OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
| mission is to support the collaborative development of Odoo features and | ||
| promote its widespread use. | ||
|
|
||
| .. |maintainer-osimallen| image:: https://github.com/osimallen.png?size=40px | ||
| :target: https://github.com/osimallen | ||
| :alt: osimallen | ||
| .. |maintainer-brian10048| image:: https://github.com/brian10048.png?size=40px | ||
| :target: https://github.com/brian10048 | ||
| :alt: brian10048 | ||
| .. |maintainer-bodedra| image:: https://github.com/bodedra.png?size=40px | ||
| :target: https://github.com/bodedra | ||
| :alt: bodedra | ||
|
|
||
| Current `maintainers <https://odoo-community.org/page/maintainer-role>`__: | ||
|
|
||
| |maintainer-osimallen| |maintainer-brian10048| |maintainer-bodedra| | ||
|
|
||
| This module is part of the `OCA/field-service <https://github.com/OCA/field-service/tree/18.0/fieldservice_account_analytic>`_ project on GitHub. | ||
|
|
||
| You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Copyright (C) 2018 Open Source Integrators | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
|
||
| from . import models | ||
| from . import wizard | ||
| from .init_hook import pre_init_hook, post_init_hook |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # Copyright (C) 2018 Open Source Integrators | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
|
||
| { | ||
| "name": "Field Service - Analytic Accounting", | ||
| "summary": """Track analytic accounts on Field Service locations | ||
| and orders""", | ||
| "version": "18.0.1.0.0", | ||
| "category": "Field Service", | ||
| "author": "Open Source Integrators, Odoo Community Association (OCA)", | ||
| "website": "https://github.com/OCA/field-service", | ||
| "depends": [ | ||
| "fieldservice_account", | ||
| "analytic", | ||
| "product", | ||
| "fieldservice_route", | ||
| "account_usability", | ||
| ], | ||
| "data": [ | ||
| "data/ir_rule.xml", | ||
| "data/analytic_plan.xml", | ||
| "security/fsm_order_cost.xml", | ||
| "security/ir.model.access.csv", | ||
| "report/fsm_order_report_template.xml", | ||
| "views/fsm_location.xml", | ||
| "views/fsm_route.xml", | ||
| "views/fsm_order.xml", | ||
| "views/res_config_settings.xml", | ||
| ], | ||
| "demo": [ | ||
| "demo/fsm_location.xml", | ||
| ], | ||
| "pre_init_hook": "pre_init_hook", | ||
| "post_init_hook": "post_init_hook", | ||
| "license": "AGPL-3", | ||
| "development_status": "Beta", | ||
| "maintainers": [ | ||
| "osimallen", | ||
| "brian10048", | ||
| "bodedra", | ||
| ], | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <odoo noupdate="1"> | ||
| <record id="fsm_order_analytic_plan" model="account.analytic.plan"> | ||
| <field name="name">FSM Orders</field> | ||
| </record> | ||
| <record id="fsm_location_analytic_plan" model="account.analytic.plan"> | ||
| <field name="name">FSM Locations</field> | ||
| </record> | ||
| <record id="fsm_route_analytic_plan" model="account.analytic.plan"> | ||
| <field name="name">FSM Routes</field> | ||
| </record> | ||
| </odoo> |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file should be moved to |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,24 @@ | ||||||||||||||||||||||||||
| <odoo> | ||||||||||||||||||||||||||
| <record id="analytic_account_fsm_manager" model="ir.rule"> | ||||||||||||||||||||||||||
| <field name="name">account.analytic.line.fsm.manager</field> | ||||||||||||||||||||||||||
| <field name="model_id" ref="model_account_analytic_line" /> | ||||||||||||||||||||||||||
| <field name="global" eval="False" /> | ||||||||||||||||||||||||||
| <field name="domain_force">[(1, '=', 1)]</field> | ||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is coming from previous versions, but it's not correct. It should only grant access to lines having a
Suggested change
|
||||||||||||||||||||||||||
| <field name="groups" eval="[(4, ref('fieldservice.group_fsm_manager'))]" /> | ||||||||||||||||||||||||||
| <field name="perm_read" eval="True" /> | ||||||||||||||||||||||||||
| <field name="perm_write" eval="True" /> | ||||||||||||||||||||||||||
| <field name="perm_create" eval="True" /> | ||||||||||||||||||||||||||
| <field name="perm_unlink" eval="True" /> | ||||||||||||||||||||||||||
| </record> | ||||||||||||||||||||||||||
| <record id="analytic_account_fsm_dispatcher" model="ir.rule"> | ||||||||||||||||||||||||||
| <field name="name">account.analytic.line.fsm.dispatcher</field> | ||||||||||||||||||||||||||
| <field name="model_id" ref="model_account_analytic_line" /> | ||||||||||||||||||||||||||
| <field name="global" eval="False" /> | ||||||||||||||||||||||||||
| <field name="domain_force">[(1, '=', 1)]</field> | ||||||||||||||||||||||||||
| <field name="groups" eval="[(4, ref('fieldservice.group_fsm_dispatcher'))]" /> | ||||||||||||||||||||||||||
| <field name="perm_read" eval="True" /> | ||||||||||||||||||||||||||
| <field name="perm_write" eval="True" /> | ||||||||||||||||||||||||||
| <field name="perm_create" eval="True" /> | ||||||||||||||||||||||||||
| <field name="perm_unlink" eval="True" /> | ||||||||||||||||||||||||||
|
Comment on lines
+17
to
+22
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment as before, but it's also giving too much power.
Suggested change
|
||||||||||||||||||||||||||
| </record> | ||||||||||||||||||||||||||
| </odoo> | ||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moreover, the user should be able to see and record his own timesheets
Suggested change
|
||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <odoo> | ||
| <!-- fsm.location --> | ||
| <record id="fieldservice.test_location" model="fsm.location"> | ||
| <field name="customer_id" eval="ref('fieldservice.test_loc_partner')" /> | ||
| </record> | ||
| <!-- Other locations --> | ||
| <record id="fieldservice.location_1" model="fsm.location"> | ||
| <field name="customer_id" eval="ref('fieldservice.location_partner_1')" /> | ||
| </record> | ||
| <record id="fieldservice.location_2" model="fsm.location"> | ||
| <field name="customer_id" eval="ref('fieldservice.location_partner_2')" /> | ||
| </record> | ||
| <record id="fieldservice.location_3" model="fsm.location"> | ||
| <field name="customer_id" eval="ref('fieldservice.location_partner_3')" /> | ||
| </record> | ||
| </odoo> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,138 @@ | ||
| # Translation of Odoo Server. | ||
| # This file contains the translation of the following modules: | ||
| # * fieldservice_account_analytic | ||
| # | ||
| msgid "" | ||
| msgstr "" | ||
| "Project-Id-Version: Odoo Server 12.0\n" | ||
| "Report-Msgid-Bugs-To: \n" | ||
| "PO-Revision-Date: 2023-11-15 20:37+0000\n" | ||
| "Last-Translator: Ivorra78 <[email protected]>\n" | ||
| "Language-Team: none\n" | ||
| "Language: es\n" | ||
| "MIME-Version: 1.0\n" | ||
| "Content-Type: text/plain; charset=UTF-8\n" | ||
| "Content-Transfer-Encoding: \n" | ||
| "Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
| "X-Generator: Weblate 4.17\n" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model_terms:ir.ui.view,arch_db:fieldservice_account_analytic.fsm_location_form_view_analytic | ||
| #: model_terms:ir.ui.view,arch_db:fieldservice_account_analytic.fsm_order_form_analytic | ||
| msgid "Accounting" | ||
| msgstr "Contabilidad" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model.fields,field_description:fieldservice_account_analytic.field_fsm_location__analytic_account_id | ||
| msgid "Analytic Account" | ||
| msgstr "Cuenta Analítica" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model,name:fieldservice_account_analytic.model_account_analytic_line | ||
| msgid "Analytic Line" | ||
| msgstr "Linea Analitica" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model.fields.selection,name:fieldservice_account_analytic.selection__fsm_order__bill_to__contact | ||
| msgid "Bill Contact" | ||
| msgstr "Contacto de Facturación" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model.fields.selection,name:fieldservice_account_analytic.selection__fsm_order__bill_to__location | ||
| msgid "Bill Location" | ||
| msgstr "Dirección de Facturación" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model.fields,field_description:fieldservice_account_analytic.field_fsm_order__bill_to | ||
| msgid "Bill To" | ||
| msgstr "Facturar a" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model.fields,field_description:fieldservice_account_analytic.field_fsm_location__customer_id | ||
| msgid "Billed Customer" | ||
| msgstr "Facturado a Cliente" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model,name:fieldservice_account_analytic.model_res_company | ||
| msgid "Companies" | ||
| msgstr "Compañías" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model,name:fieldservice_account_analytic.model_res_config_settings | ||
| msgid "Config Settings" | ||
| msgstr "Configurar Ajustes" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model,name:fieldservice_account_analytic.model_res_partner | ||
| #: model:ir.model.fields,field_description:fieldservice_account_analytic.field_fsm_order__customer_id | ||
| msgid "Contact" | ||
| msgstr "Contacto" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model_terms:ir.ui.view,arch_db:fieldservice_account_analytic.fsm_location_search_view_analytic | ||
| msgid "Customer" | ||
| msgstr "Cliente" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model.fields,field_description:fieldservice_account_analytic.field_account_analytic_line__fsm_order_id | ||
| msgid "FSM Order" | ||
| msgstr "Pedido FSM" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model,name:fieldservice_account_analytic.model_fsm_wizard | ||
| msgid "FSM Record Conversion" | ||
| msgstr "Conversión de Registro FSM" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model,name:fieldservice_account_analytic.model_fsm_location | ||
| msgid "Field Service Location" | ||
| msgstr "Ubicación del Servicio de Campo" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model,name:fieldservice_account_analytic.model_fsm_order | ||
| msgid "Field Service Order" | ||
| msgstr "Orden de Servicio de Campo" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model.fields,field_description:fieldservice_account_analytic.field_res_company__fsm_filter_location_by_contact | ||
| #: model:ir.model.fields,field_description:fieldservice_account_analytic.field_res_config_settings__fsm_filter_location_by_contact | ||
| #: model_terms:ir.ui.view,arch_db:fieldservice_account_analytic.res_config_settings_view_form_filter | ||
| msgid "Filter Contacts with Location" | ||
| msgstr "Filtrar contactos por Localización" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model_terms:ir.ui.view,arch_db:fieldservice_account_analytic.res_config_settings_view_form_filter | ||
| msgid "Filter the Location on an FSM Order by the Contact" | ||
| msgstr "Filtrar la ubicación en un pedido FSM por el Contacto" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model,name:fieldservice_account_analytic.model_account_move_line | ||
| msgid "Journal Item" | ||
| msgstr "Artículo Diario" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #. odoo-python | ||
| #: code:addons/fieldservice_account_analytic/models/account_move.py:0 | ||
| #: code:addons/fieldservice_account_analytic/models/analytic_account.py:0 | ||
| #, python-format | ||
| msgid "No analytic account set on the order's Location." | ||
| msgstr "No hay una cuenta analítica establecida en la ubicación del pedido." | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model.fields,field_description:fieldservice_account_analytic.field_account_analytic_line__product_id | ||
| msgid "Time Type" | ||
| msgstr "Tipo de Tiempo" | ||
|
|
||
| #. module: fieldservice_account_analytic | ||
| #: model:ir.model.fields,field_description:fieldservice_account_analytic.field_fsm_order__total_cost | ||
| msgid "Total Cost" | ||
| msgstr "Coste Total" | ||
|
|
||
| #~ msgid "Bill to" | ||
| #~ msgstr "Facturar a" | ||
|
|
||
| #~ msgid "Invoice Line" | ||
| #~ msgstr "Línea de factura" | ||
|
|
||
| #~ msgid "Field Service Location Person Info" | ||
| #~ msgstr "Servicio de campo Ubicación Información de la persona" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's with this new dependency?