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

[17.0][MIG] mrp_stock_analytic #644

Open
wants to merge 57 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
098ae42
migration to v7
Jun 7, 2013
3306b13
merge with mathieu
yvanpatry Jun 13, 2013
2be3ced
update for migration V7
Pierre-Monod Jun 13, 2013
6bb9de6
add images
Aug 14, 2013
c725d52
update for wilog v7.0
Pierre-Monod Sep 3, 2013
58248fa
Add contract customer invoice and migrate [IMP] SMS erase print [IMP]…
yvanpatry Sep 3, 2013
3dd157b
 - change the logo of all modules
mathieuvatel Mar 18, 2014
894d517
- Added new module stock_analytic
fv-clearcorp Nov 19, 2015
5f46632
Adapt original module according OCA Standard
andhit-r Feb 5, 2016
9b07f25
[MIG]stock_analytic to v9
AaronHForgeFlow Apr 3, 2017
deb3cdf
[MIG]stock_analytic to v10
AaronHForgeFlow Jun 28, 2017
cf00ab4
11.0 MIG stock_analytic
jaredkipe Mar 19, 2018
5bafae3
Add the ability to pick Analytic account on picking form.
jaredkipe Oct 30, 2018
8f22389
Translated using Weblate (German)
rschnapka Jan 21, 2019
20a5997
[MIG]stock_analytic to v12
AaronHForgeFlow Jan 30, 2019
a47c513
[MIG] Updated the tests of the module stock_analytic.
Jun 13, 2019
59dc3b2
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Aug 2, 2019
2aa857a
Translated using Weblate (Catalan)
Oct 7, 2019
3d1ecab
[12.0] [FIX] Wrong runbot link in readme
Jerther Oct 15, 2019
01a89fe
[12.0] [FIX] stock_analytic: Analytic account field is in wrong page
Jerther Oct 16, 2019
a95b083
Translated using Weblate (Croatian)
badbole Nov 13, 2019
1e8c50e
[IMP] stock_analytic: Add analytic account to scrap
max3903 Nov 20, 2019
bdd3250
Translated using Weblate (German)
marylla Jan 29, 2020
9609bc1
Translated using Weblate (Portuguese)
alvarorib Feb 18, 2020
47a1947
Translated using Weblate (Spanish)
ruthbeat Mar 2, 2020
102f32f
[FIX] Apply analytic account on COGS account when booking customer in…
Feb 4, 2020
1a54a6d
[IMP] stock_analytic: black, isort
jimhoefnagels Mar 24, 2020
6e456d9
[MIG] stock_analytic: Migration to 13.0
jimhoefnagels Mar 24, 2020
b35d6c6
stock_analytic 12.0.1.1.2
jimhoefnagels May 11, 2020
fd8a222
[IMP] stock_analytic: black, isort
jimhoefnagels May 11, 2020
681f0b4
[MIG] stock_analytic: Migration to 13.0
jimhoefnagels May 11, 2020
00ec9b1
Translated using Weblate (Portuguese (Brazil))
Aug 12, 2020
9d77082
[UPD] Eficent -> ForgeFlow
MiquelRForgeFlow Sep 30, 2020
e75f6d0
[13.0][IMP] stock_analytic - add analytic tags on stock move
baimont Nov 9, 2020
fe6dfda
[IMP] stock_analytic: black, isort, prettier
alan196 Jan 28, 2021
d50e4cd
[MIG] stock_analytic: Migration to 14.0
alan196 Jan 28, 2021
567503e
[14.0][IMP] stock_analytic: Transmit analytic account to new moves
rousseldenis Nov 26, 2021
e410fba
Translated using Weblate (Portuguese (Brazil))
Feb 1, 2022
caf5504
Translated using Weblate (Catalan)
Noel000 Mar 21, 2022
7eac7d5
[14.0][IMP] stock_analytic: Add analytic on move lines tree view
rousseldenis Dec 28, 2021
d91a479
[IMP] stock_analytic: Take into account extra move lines flow
rousseldenis May 17, 2022
2f19cf1
[MIG] stock_analytic: Migration to 16.0
nicomacr Dec 6, 2022
98a14fe
[IMP] stock_analytic: add validation on analytic distribution
yostashiro Jan 23, 2023
e5d6355
[16.0][IMP] stock_analytic: add analytic distribution to move tree re…
ThiagoMForgeFlow Jun 15, 2023
6e5110d
Translated using Weblate (Dutch)
Jan-Onestein Oct 17, 2023
ea47702
Translated using Weblate (Spanish)
Ivorra78 Oct 19, 2023
9113bf8
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 28, 2023
5f4c575
[IMP] stock_analytic: pre-commit stuff
moitabenfdz Dec 21, 2023
f73b68e
[MIG] stock_analytic: Migration to 17.0
moitabenfdz Dec 21, 2023
89d2d5f
[ADD] mrp_stock_analytic
yostashiro Feb 11, 2023
cc8a6ac
[UPD] Update mrp_stock_analytic.pot
Mar 18, 2024
78715d8
[BOT] post-merge updates
OCA-git-bot Mar 18, 2024
a1cc4fa
Added translation using Weblate (Italian)
mymage Mar 19, 2024
48ce560
Translated using Weblate (Italian)
mymage Mar 19, 2024
fb96e24
[IMP] mrp_stock_analytic: pre-commit auto fixes
aisopuro Apr 15, 2024
4767d63
[MIG] mrp_stock_analytic: Migration to 17.0
aisopuro Apr 15, 2024
6dc15b4
[IMP] mrp_stock_analytic: test backorder propagation
aisopuro Apr 16, 2024
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
97 changes: 97 additions & 0 deletions mrp_stock_analytic/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
==================
MRP Stock Analytic
==================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c9d68859541dd43ed5f6e30c0a788dadd8b6d859c7c69bf28fc4559b658c6ec8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/17.0/mrp_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-17-0/account-analytic-17-0-mrp_stock_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/account-analytic&target_branch=17.0
:alt: Try me on Runboat

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

Allows to assign the analytic distribution in the manufacturing order,
which should propagate the value to the corresponding field of the
related component stock moves.

This function can be useful when cost analysis needs to be done on
flushed components.

This module depends on OCA module stock_analytic.

**Table of contents**

.. contents::
:local:

Configuration
=============

Refer to the relevant section of the stock_analytic module.

Usage
=====

Set analytic distribution on a manufacturing order, complete it, and
analytic lines will be generated accordingly for the flushed components
when automatic inventory valuation is enabled for the product category.

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-analytic/issues/new?body=module:%20mrp_stock_analytic%0Aversion:%2017.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
-------

* Quartile Limited

Contributors
------------

- `Quartile <https://www.quartile.co>`__:

- Yoshi Tashiro

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/17.0/mrp_stock_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 mrp_stock_analytic/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
15 changes: 15 additions & 0 deletions mrp_stock_analytic/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2023 Quartile Limited
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "MRP Stock Analytic",
"version": "17.0.1.0.0",
"author": "Quartile Limited, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-analytic",
"category": "Manufacturing/Manufacturing",
"license": "AGPL-3",
"depends": ["mrp_account", "stock_analytic"],
"data": [
"views/mrp_production_views.xml",
],
"installable": True,
}
37 changes: 37 additions & 0 deletions mrp_stock_analytic/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_stock_analytic
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-03-19 15:39+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\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: mrp_stock_analytic
#: model:ir.model.fields,field_description:mrp_stock_analytic.field_mrp_production__analytic_distribution
msgid "Analytic"
msgstr "Analitico"

#. module: mrp_stock_analytic
#: model:ir.model.fields,field_description:mrp_stock_analytic.field_mrp_production__analytic_distribution_search
msgid "Analytic Distribution Search"
msgstr "Ricerca distribuzione analitica"

#. module: mrp_stock_analytic
#: model:ir.model.fields,field_description:mrp_stock_analytic.field_mrp_production__analytic_precision
msgid "Analytic Precision"
msgstr "Precisione analitica"

#. module: mrp_stock_analytic
#: model:ir.model,name:mrp_stock_analytic.model_mrp_production
msgid "Production Order"
msgstr "Ordine di produzione"
34 changes: 34 additions & 0 deletions mrp_stock_analytic/i18n/mrp_stock_analytic.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_stock_analytic
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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: mrp_stock_analytic
#: model:ir.model.fields,field_description:mrp_stock_analytic.field_mrp_production__analytic_distribution
msgid "Analytic"
msgstr ""

#. module: mrp_stock_analytic
#: model:ir.model.fields,field_description:mrp_stock_analytic.field_mrp_production__analytic_distribution_search
msgid "Analytic Distribution Search"
msgstr ""

#. module: mrp_stock_analytic
#: model:ir.model.fields,field_description:mrp_stock_analytic.field_mrp_production__analytic_precision
msgid "Analytic Precision"
msgstr ""

#. module: mrp_stock_analytic
#: model:ir.model,name:mrp_stock_analytic.model_mrp_production
msgid "Production Order"
msgstr ""
1 change: 1 addition & 0 deletions mrp_stock_analytic/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import mrp_production
23 changes: 23 additions & 0 deletions mrp_stock_analytic/models/mrp_production.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2021 ACSONE SA/NV
# Copyright 2023 Quartile Limited
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class MrpProduction(models.Model):
_name = "mrp.production"
_inherit = ["mrp.production", "analytic.mixin"]

analytic_distribution = fields.Json(
inverse="_inverse_analytic_distribution",
)

def _inverse_analytic_distribution(self):
"""If analytic distribution is set on production, write it on all component
moves.
"""
for production in self:
production.move_raw_ids.write(
{"analytic_distribution": production.analytic_distribution}
)
3 changes: 3 additions & 0 deletions mrp_stock_analytic/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions mrp_stock_analytic/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Refer to the relevant section of the stock_analytic module.
2 changes: 2 additions & 0 deletions mrp_stock_analytic/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [Quartile](https://www.quartile.co):
- Yoshi Tashiro
8 changes: 8 additions & 0 deletions mrp_stock_analytic/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Allows to assign the analytic distribution in the manufacturing order,
which should propagate the value to the corresponding field of the
related component stock moves.

This function can be useful when cost analysis needs to be done on
flushed components.

This module depends on OCA module stock_analytic.
3 changes: 3 additions & 0 deletions mrp_stock_analytic/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Set analytic distribution on a manufacturing order, complete it, and
analytic lines will be generated accordingly for the flushed components
when automatic inventory valuation is enabled for the product category.
Binary file added mrp_stock_analytic/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading