Skip to content

Commit

Permalink
[MIG] stock_analytic: Migration to 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alan196 committed Aug 17, 2021
1 parent 299faf5 commit f21c84a
Show file tree
Hide file tree
Showing 11 changed files with 580 additions and 40 deletions.
73 changes: 52 additions & 21 deletions stock_analytic/README.rst
Original file line number Diff line number Diff line change
@@ -1,28 +1,51 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

==============
Stock Analytic
==============

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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%2Faccount--analytic-lightgray.png?logo=github
:target: https://github.com/OCA/account-analytic/tree/14.0/stock_analytic
:alt: OCA/account-analytic
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-analytic-14-0/account-analytic-14-0-stock_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/87/14.0
:alt: Try me on Runbot

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

Adds an analytic account and analytic tags in stock move to be able to get
analytic information when generating the journal items.

**Table of contents**

.. contents::
:local:

Usage
=====

To Assign an Analytic Account and Analytic Tags to a Stock Move
---------------------------------------------------------------
===============================================================

You need to:

#. Create manually or open draft picking
#. Add move lines and fill **analytic account** and **analytic tags** fields

Assigned Journal Items created from Stock Move with Analytic Account and Analytic Tags
--------------------------------------------------------------------------------------
======================================================================================

If stock move automatically create journal entry, the journal entry will
contain journal items with following rule:
Expand All @@ -33,24 +56,29 @@ contain journal items with following rule:
assigned to an analytic account according to the stock move's analytic
account. The same logic applies to analytic tags.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/87/13.0


Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/account-analytic/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.
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-analytic/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/account-analytic/issues/new?body=module:%20stock_analytic%0Aversion:%2014.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
~~~~~~~

* Julius Network Solutions
* ClearCorp
* OpenSynergy Indonesia
* Hibou Corp.

Contributors
------------
~~~~~~~~~~~~

* Hanane ELKHAL <[email protected]>
* Yvan Patry <[email protected]>
Expand All @@ -61,18 +89,21 @@ Contributors
* Michael Viriyananda <[email protected]>
* Aaron Henriquez <[email protected]>
* Jared Kipe <[email protected]>
* Alan Ramos <[email protected]>

Maintainers
~~~~~~~~~~~

Maintainer
----------
This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.
This module is part of the `OCA/account-analytic <https://github.com/OCA/account-analytic/tree/14.0/stock_analytic>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion stock_analytic/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
"name": "Stock Analytic",
"summary": "Adds an analytic account and analytic tags in stock move",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"author": "Julius Network Solutions, "
"ClearCorp, OpenSynergy Indonesia, "
"Hibou Corp., "
Expand Down
3 changes: 0 additions & 3 deletions stock_analytic/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,3 @@ msgstr ""
#: model:ir.model,name:stock_analytic.model_stock_move
msgid "Stock Move"
msgstr "Movimento di magazzino"

#~ msgid "Quants"
#~ msgstr "Quantità"
3 changes: 0 additions & 3 deletions stock_analytic/i18n/ro.po
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,3 @@ msgstr ""
#: model:ir.model,name:stock_analytic.model_stock_move
msgid "Stock Move"
msgstr "Mișcare stoc"

#~ msgid "Quants"
#~ msgstr "Poziții de stoc"
10 changes: 10 additions & 0 deletions stock_analytic/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
* Hanane ELKHAL <[email protected]>
* Yvan Patry <[email protected]>
* Pierre <[email protected]>
* Mathieu VATEL <[email protected]>
* Fabio Vílchez <[email protected]>
* Andhitia Rama <[email protected]>
* Michael Viriyananda <[email protected]>
* Aaron Henriquez <[email protected]>
* Jared Kipe <[email protected]>
* Alan Ramos <[email protected]>
2 changes: 2 additions & 0 deletions stock_analytic/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Adds an analytic account and analytic tags in stock move to be able to get
analytic information when generating the journal items.
19 changes: 19 additions & 0 deletions stock_analytic/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
To Assign an Analytic Account and Analytic Tags to a Stock Move
===============================================================

You need to:

#. Create manually or open draft picking
#. Add move lines and fill **analytic account** and **analytic tags** fields

Assigned Journal Items created from Stock Move with Analytic Account and Analytic Tags
======================================================================================

If stock move automatically create journal entry, the journal entry will
contain journal items with following rule:

#. Journal item with account equal to product's valuation account will not be
assigned to any analytic account, neither analytic tags
#. Journal item with account different to product's valuation account will be
assigned to an analytic account according to the stock move's analytic
account. The same logic applies to analytic tags.
Loading

0 comments on commit f21c84a

Please sign in to comment.