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

[15.0][MIG]stock_quant_analytic: Migration to 15.0 #521

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7ebddc9
[11.0][ADD] stock_inventory_analytic
HviorForgeFlow Jan 16, 2019
c060972
[UPD] Update stock_inventory_analytic.pot
oca-travis Jan 25, 2019
87b16cc
[ADD] icon.png
OCA-git-bot Apr 3, 2019
155c247
[MIG] stock_inventory_analytic: Migration to 12.0
Jun 17, 2019
d929026
[UPD] Update stock_inventory_analytic.pot
oca-travis Jul 10, 2019
e632fc2
[UPD] README.rst
OCA-git-bot Jul 10, 2019
c1e27ec
[UPD] README.rst
OCA-git-bot Jul 29, 2019
25bb767
Added translation using Weblate (Portuguese)
alvarorib Feb 26, 2020
c42f4ab
Translated using Weblate (Portuguese)
alvarorib Feb 26, 2020
e66c850
[IMP] stock_inventory_analytic: black, isort, prettier
baimont Nov 3, 2020
5a5f6d2
[MIG] stock_inventory_analytic: Migration to 13.0
baimont Nov 3, 2020
123c5f3
[UPD] Update stock_inventory_analytic.pot
oca-travis Nov 25, 2020
3e3c07d
Update translation files
oca-transbot Nov 26, 2020
e9f9477
Added translation using Weblate (Spanish)
eduardgm Mar 26, 2021
2278aaf
[IMP] stock_inventory_analytic: black, isort, prettier
rousseldenis Oct 20, 2021
e836a25
[14.0][MIG] stock_inventory_analytic
rousseldenis Oct 20, 2021
1a529e5
[14.0][IMP] stock_inventory_analytic: Improve tests
rousseldenis Oct 20, 2021
969fb7a
[14.0][IMP] stock_inventory_analytic: Eficent => ForgeFlow
rousseldenis Oct 21, 2021
b033e93
[UPD] Update stock_inventory_analytic.pot
oca-travis Oct 23, 2021
9fb3762
[UPD] README.rst
OCA-git-bot Oct 23, 2021
e35b4e0
[14.0][FIX] stock_inventory_analytic: Default value should be taken f…
rousseldenis Dec 17, 2021
a65a4ae
[14.0][IMP] stock_inventory_analytic: Get default analytics from func…
rousseldenis Dec 17, 2021
c3091cc
[14.0][FIX] stock_inventory_analytic: Remove duplicate analytic accou…
newtratip Jan 19, 2022
ef93f77
stock_inventory_analytic 14.0.1.0.1
OCA-git-bot Mar 18, 2022
a876968
stock_inventory_analytic 14.0.1.0.2
OCA-git-bot Apr 28, 2022
e7494fd
[IMP]stock_inventory_analytic: black, isort, prettier
bizzappdev Mar 7, 2023
c90805d
[MIG][15.0]stock_inventory_analytic:Migration to 15.0
bizzappdev Mar 7, 2023
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
6 changes: 6 additions & 0 deletions setup/stock_inventory_analytic/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
76 changes: 76 additions & 0 deletions stock_inventory_analytic/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
========================
Stock Inventory 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_inventory_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_inventory_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|

This module allows to add analytic accounts and analytic tags on
stock inventory line using Inventory Adjustments.

**Table of contents**

.. contents::
:local:

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 <https://github.com/OCA/account-analytic/issues/new?body=module:%20stock_inventory_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
~~~~~~~

* ForgeFlow

Contributors
~~~~~~~~~~~~

* Héctor Villarreal <[email protected]>
* Carlos Serra-Toro <[email protected]> (https://www.braintec-group.com)
* Denis Roussel <[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.

This module is part of the `OCA/account-analytic <https://github.com/OCA/account-analytic/tree/14.0/stock_inventory_analytic>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions stock_inventory_analytic/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
18 changes: 18 additions & 0 deletions stock_inventory_analytic/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2019 ForgeFlow S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "Stock Quant Analytic",
"summary": """
Stock Quant Analytic """,
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-analytic",
"category": "Warehouse Management",
"version": "15.0.0.1.0",
"license": "AGPL-3",
"depends": ["analytic", "stock_analytic", "stock_account"],
"data": [
"views/stock_quant_view.xml",
"views/res_config_settings_views.xml",
],
"installable": True,
}
73 changes: 73 additions & 0 deletions stock_inventory_analytic/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_analytic
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\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"

#. module: stock_inventory_analytic
#: model_terms:ir.ui.view,arch_db:stock_inventory_analytic.res_config_settings_view_form
msgid ""
"<span class=\"o_form_label\">Default Analytic Values during Inventory "
"Adjustment</span>"
msgstr ""

#. module: stock_inventory_analytic
#: model_terms:ir.ui.view,arch_db:stock_inventory_analytic.res_config_settings_view_form
msgid "Analytic"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_stock_inventory_line__analytic_account_id
#: model_terms:ir.ui.view,arch_db:stock_inventory_analytic.res_config_settings_view_form
msgid "Analytic Account"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_stock_inventory_line__analytic_tag_ids
#: model_terms:ir.ui.view,arch_db:stock_inventory_analytic.res_config_settings_view_form
msgid "Analytic Tags"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model,name:stock_inventory_analytic.model_res_company
msgid "Companies"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model,name:stock_inventory_analytic.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_company__analytic_account_id
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_config_settings__analytic_account_id
msgid "Default Analytic Account on Inventory Adjustment Line"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_company__analytic_tag_ids
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_config_settings__analytic_tag_ids
msgid "Default Analytic Tags on Inventory Adjustment Line"
msgstr ""

#. module: stock_inventory_analytic
#: model_terms:ir.ui.view,arch_db:stock_inventory_analytic.res_config_settings_view_form
msgid ""
"Default value for Analytic Account and Analytic Tags on an Inventory "
"Adjustment Line"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model,name:stock_inventory_analytic.model_stock_inventory_line
msgid "Inventory Line"
msgstr ""
81 changes: 81 additions & 0 deletions stock_inventory_analytic/i18n/pt.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_analytic
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-02-26 21:13+0000\n"
"Last-Translator: alvarorib <[email protected]>\n"
"Language-Team: none\n"
"Language: 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: stock_inventory_analytic
#: model_terms:ir.ui.view,arch_db:stock_inventory_analytic.res_config_settings_view_form
msgid ""
"<span class=\"o_form_label\">Default Analytic Values during Inventory "
"Adjustment</span>"
msgstr ""

#. module: stock_inventory_analytic
#: model_terms:ir.ui.view,arch_db:stock_inventory_analytic.res_config_settings_view_form
msgid "Analytic"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_stock_inventory_line__analytic_account_id
#: model_terms:ir.ui.view,arch_db:stock_inventory_analytic.res_config_settings_view_form
msgid "Analytic Account"
msgstr "Conta Analítica"

#. module: stock_inventory_analytic
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_stock_inventory_line__analytic_tag_ids
#: model_terms:ir.ui.view,arch_db:stock_inventory_analytic.res_config_settings_view_form
msgid "Analytic Tags"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model,name:stock_inventory_analytic.model_res_company
msgid "Companies"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model,name:stock_inventory_analytic.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_company__analytic_account_id
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_config_settings__analytic_account_id
msgid "Default Analytic Account on Inventory Adjustment Line"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_company__analytic_tag_ids
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_config_settings__analytic_tag_ids
msgid "Default Analytic Tags on Inventory Adjustment Line"
msgstr ""

#. module: stock_inventory_analytic
#: model_terms:ir.ui.view,arch_db:stock_inventory_analytic.res_config_settings_view_form
msgid ""
"Default value for Analytic Account and Analytic Tags on an Inventory "
"Adjustment Line"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model,name:stock_inventory_analytic.model_stock_inventory_line
msgid "Inventory Line"
msgstr "Linha de Inventário"

#~ msgid "Change Product Quantity"
#~ msgstr "Alterar Quantidade de Produto"

#~ msgid "Stock Move"
#~ msgstr "Movimento Stock"
93 changes: 93 additions & 0 deletions stock_inventory_analytic/i18n/stock_inventory_analytic.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_analytic
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.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: stock_inventory_analytic
#: model_terms:ir.ui.view,arch_db:stock_inventory_analytic.res_config_settings_view_form
msgid ""
"<span class=\"o_form_label\">Default Analytic Values during Inventory "
"Adjustment</span>"
msgstr ""

#. module: stock_inventory_analytic
#: model_terms:ir.ui.view,arch_db:stock_inventory_analytic.res_config_settings_view_form
msgid "Analytic"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_stock_inventory_line__analytic_account_id
#: model_terms:ir.ui.view,arch_db:stock_inventory_analytic.res_config_settings_view_form
msgid "Analytic Account"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_stock_inventory_line__analytic_tag_ids
#: model_terms:ir.ui.view,arch_db:stock_inventory_analytic.res_config_settings_view_form
msgid "Analytic Tags"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model,name:stock_inventory_analytic.model_res_company
msgid "Companies"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model,name:stock_inventory_analytic.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_company__analytic_account_id
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_config_settings__analytic_account_id
msgid "Default Analytic Account on Inventory Adjustment Line"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_company__analytic_tag_ids
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_config_settings__analytic_tag_ids
msgid "Default Analytic Tags on Inventory Adjustment Line"
msgstr ""

#. module: stock_inventory_analytic
#: model_terms:ir.ui.view,arch_db:stock_inventory_analytic.res_config_settings_view_form
msgid ""
"Default value for Analytic Account and Analytic Tags on an Inventory "
"Adjustment Line"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_company__display_name
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_config_settings__display_name
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_stock_inventory_line__display_name
msgid "Display Name"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_company__id
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_config_settings__id
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_stock_inventory_line__id
msgid "ID"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model,name:stock_inventory_analytic.model_stock_inventory_line
msgid "Inventory Line"
msgstr ""

#. module: stock_inventory_analytic
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_company____last_update
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_res_config_settings____last_update
#: model:ir.model.fields,field_description:stock_inventory_analytic.field_stock_inventory_line____last_update
msgid "Last Modified on"
msgstr ""
3 changes: 3 additions & 0 deletions stock_inventory_analytic/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import company
from . import res_config_settings
from . import stock_quant
17 changes: 17 additions & 0 deletions stock_inventory_analytic/models/company.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2020 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class ResCompany(models.Model):
_inherit = "res.company"

analytic_account_id = fields.Many2one(
"account.analytic.account",
string="Default Analytic Account on Inventory Adjustment Line",
)
analytic_tag_ids = fields.Many2many(
"account.analytic.tag",
string="Default Analytic Tags on Inventory Adjustment Line",
)
15 changes: 15 additions & 0 deletions stock_inventory_analytic/models/res_config_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2020 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"

analytic_account_id = fields.Many2one(
related="company_id.analytic_account_id", readonly=False
)
analytic_tag_ids = fields.Many2many(
related="company_id.analytic_tag_ids", readonly=False
)
Loading
Loading