Skip to content
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

[14.0][MIG] fieldservice_stock_account_analytic #816

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
895f8cd
[ADD] fieldservice_stock_account_analytic
max3903 Jul 29, 2019
39e6f82
[IMP] fieldservice_stock_account_analytic
max3903 Aug 2, 2019
0954a63
[UPD] README.rst
OCA-git-bot Aug 21, 2019
b485c8b
[FIX] fieldservice_stock_account_analytic: PEP8 errors
max3903 Aug 21, 2019
bf5544e
[IMP] fieldservice_stock_account_analytic
max3903 Oct 11, 2019
c252256
[UPD] Update fieldservice_stock_account_analytic.pot
oca-travis Nov 14, 2019
31ed54b
[FIX] Positional Arguments
osi-scampbell Nov 20, 2019
0396d64
fieldservice_stock_account_analytic 12.0.1.0.1
OCA-git-bot Nov 22, 2019
de8c38a
Added translation using Weblate (German)
marylla Nov 22, 2019
af8c606
[FIX] fieldservice_stock_account_analytic: AttributeError: 'account.i…
max3903 Nov 25, 2019
20e17e9
Translated using Weblate (German)
marylla Nov 26, 2019
b3c4dd2
fieldservice_stock_account_analytic 12.0.1.0.2
OCA-git-bot Nov 26, 2019
6133a74
Added translation using Weblate (Spanish (Chile))
Dec 14, 2019
0403920
Translated using Weblate (Spanish (Chile))
Dec 14, 2019
179f26f
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Jan 16, 2020
30f5810
[ADD] Spanish (es) translation
max3903 Jan 16, 2020
7e4a782
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 5, 2020
e9062c1
Added translation using Weblate (Portuguese (Portugal))
dreispt Jul 1, 2020
48302e7
Translated using Weblate (Portuguese (Portugal))
dreispt Jul 1, 2020
0cc7eff
fix dependencies of fs_stock_account_analytic
aleuffre Mar 23, 2021
eecfd8a
fieldservice_stock_account_analytic 12.0.1.1.0
OCA-git-bot Apr 23, 2021
63d9a69
[14.0][MIG]fieldservice_stock_account_analytic: migrated to v14
vimalpatelserpentcs Jun 29, 2021
5c68ac4
[FIX] pre-commit
Freni-OSI Nov 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions fieldservice_stock_account_analytic/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
===========================================
Field Service - Stock - Analytic Accounting
===========================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/12.0/fieldservice_stock_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-12-0/field-service-12-0-fieldservice_stock_account_analytic
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/264/12.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows you to report on the stock output account by analytic account.

It uses the analytic account of the field service location to set the
analytic account on the deliveries.

**Table of contents**

.. contents::
:local:

Usage
=====

FSM Location
~~~~~~~~~~~~

* Go to Field Service > Master data > Locations
* Create or select a location
* Check that the inventory location is a Customer location
* Go to the Accounting tab
* Set the analytic account

FSM Order
~~~~~~~~~

* Go to Field Service
* Create or select an order
* Select the location
* Go to the Inventory tab to add some products and submit the stock requests

Inventory
~~~~~~~~~

* Go to Inventory > Stock Request Orders > X to process
* Open the stock request order related to your Field Service order
* Set the route on the lines and confirm it
* Process the transfers

Accounting
~~~~~~~~~~

* Go to Accounting > Adviser > Analytic Entries

Known issues / Roadmap
======================

The roadmap of the Field Service application is documented on
`Github <https://github.com/OCA/field-service/issues/1>`_.

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice_stock_account_analytic%0Aversion:%2012.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
~~~~~~~~~~~~

* `Open Source Integrators <https://www.opensourceintegrators.com>`_

* Maxime Chambreuil <[email protected]>

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-max3903| image:: https://github.com/max3903.png?size=40px
:target: https://github.com/max3903
:alt: max3903

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-max3903|

This module is part of the `OCA/field-service <https://github.com/OCA/field-service/tree/12.0/fieldservice_stock_account_analytic>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions fieldservice_stock_account_analytic/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
19 changes: 19 additions & 0 deletions fieldservice_stock_account_analytic/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (C) 2021 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Field Service - Stock - Analytic Accounting",
"summary": "Track costs of delivered items with analytic accounting",
"license": "AGPL-3",
"version": "14.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",
"fieldservice_stock_account",
"stock_request_analytic",
],
"development_status": "Beta",
"maintainers": ["max3903"],
}
27 changes: 27 additions & 0 deletions fieldservice_stock_account_analytic/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_stock_account_analytic
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-11-26 11:58+0000\n"
"Last-Translator: Maria Sparenberg <[email protected]>\n"
"Language-Team: none\n"
"Language: de\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 3.8\n"

#. module: fieldservice_stock_account_analytic
#: model:ir.model,name:fieldservice_stock_account_analytic.model_fsm_order
msgid "Field Service Order"
msgstr "Field-Service-Auftrag"

#. module: fieldservice_stock_account_analytic
#: model:ir.model,name:fieldservice_stock_account_analytic.model_stock_request
msgid "Stock Request"
msgstr ""
27 changes: 27 additions & 0 deletions fieldservice_stock_account_analytic/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_stock_account_analytic
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-12-14 16:05+0000\n"
"Last-Translator: Nelson Ramírez Sánchez <[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 3.9.1\n"

#. module: fieldservice_stock_account_analytic
#: model:ir.model,name:fieldservice_stock_account_analytic.model_fsm_order
msgid "Field Service Order"
msgstr "Pedido de Servicio de Campo"

#. module: fieldservice_stock_account_analytic
#: model:ir.model,name:fieldservice_stock_account_analytic.model_stock_request
msgid "Stock Request"
msgstr "Solicitud de Stock"
27 changes: 27 additions & 0 deletions fieldservice_stock_account_analytic/i18n/es_CL.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_stock_account_analytic
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-12-14 16:05+0000\n"
"Last-Translator: Nelson Ramírez Sánchez <[email protected]>\n"
"Language-Team: none\n"
"Language: es_CL\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 3.9.1\n"

#. module: fieldservice_stock_account_analytic
#: model:ir.model,name:fieldservice_stock_account_analytic.model_fsm_order
msgid "Field Service Order"
msgstr "Pedido de Servicio de Campo"

#. module: fieldservice_stock_account_analytic
#: model:ir.model,name:fieldservice_stock_account_analytic.model_stock_request
msgid "Stock Request"
msgstr "Solicitud de Stock"
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_stock_account_analytic
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: fieldservice_stock_account_analytic
#: model:ir.model,name:fieldservice_stock_account_analytic.model_fsm_order
msgid "Field Service Order"
msgstr ""

#. module: fieldservice_stock_account_analytic
#: model:ir.model,name:fieldservice_stock_account_analytic.model_stock_request
msgid "Stock Request"
msgstr ""

27 changes: 27 additions & 0 deletions fieldservice_stock_account_analytic/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_stock_account_analytic
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-02-05 11:13+0000\n"
"Last-Translator: Marcel Savegnago <[email protected]>\n"
"Language-Team: none\n"
"Language: pt_BR\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 3.10\n"

#. module: fieldservice_stock_account_analytic
#: model:ir.model,name:fieldservice_stock_account_analytic.model_fsm_order
msgid "Field Service Order"
msgstr "Ordem de Serviço de Campo"

#. module: fieldservice_stock_account_analytic
#: model:ir.model,name:fieldservice_stock_account_analytic.model_stock_request
msgid "Stock Request"
msgstr "Requisição de Estoque"
27 changes: 27 additions & 0 deletions fieldservice_stock_account_analytic/i18n/pt_PT.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_stock_account_analytic
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-07-02 00:19+0000\n"
"Last-Translator: Daniel Reis <[email protected]>\n"
"Language-Team: none\n"
"Language: pt_PT\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 3.10\n"

#. module: fieldservice_stock_account_analytic
#: model:ir.model,name:fieldservice_stock_account_analytic.model_fsm_order
msgid "Field Service Order"
msgstr "Ordem de Serviço de Campo"

#. module: fieldservice_stock_account_analytic
#: model:ir.model,name:fieldservice_stock_account_analytic.model_stock_request
msgid "Stock Request"
msgstr "Requisição de Stock"
5 changes: 5 additions & 0 deletions fieldservice_stock_account_analytic/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (C) 2021 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import stock_request
from . import fsm_order
17 changes: 17 additions & 0 deletions fieldservice_stock_account_analytic/models/fsm_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (C) 2021 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models


class FSMOrder(models.Model):
_inherit = "fsm.order"

def _prepare_inv_line_for_stock_request(self, stock_request, invoice=False):
vals = super()._prepare_inv_line_for_stock_request(stock_request, invoice)
vals.update(
{
"analytic_account_id": self.location_id.analytic_account_id.id,
}
)
return vals
17 changes: 17 additions & 0 deletions fieldservice_stock_account_analytic/models/stock_request.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (C) 2021 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import api, models


class StockRequest(models.Model):
_inherit = "stock.request"

@api.model
def create(self, vals):
if vals.get("fsm_order_id"):
fsm_order = self.env["fsm.order"].browse(vals.get("fsm_order_id"))
vals.update(
{"analytic_account_id": fsm_order.location_id.analytic_account_id.id}
)
return super().create(vals)
3 changes: 3 additions & 0 deletions fieldservice_stock_account_analytic/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* `Open Source Integrators <https://www.opensourceintegrators.com>`_

* Maxime Chambreuil <[email protected]>
4 changes: 4 additions & 0 deletions fieldservice_stock_account_analytic/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This module allows you to report on the stock output account by analytic account.

It uses the analytic account of the field service location to set the
analytic account on the deliveries.
2 changes: 2 additions & 0 deletions fieldservice_stock_account_analytic/readme/ROADMAP.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The roadmap of the Field Service application is documented on
`Github <https://github.com/OCA/field-service/issues/1>`_.
Loading