Skip to content

Commit

Permalink
[4540][ADD] mrp_stock_lot_analytic (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
AungKoKoLin1997 authored May 15, 2024
1 parent 8363b50 commit 60cf21b
Show file tree
Hide file tree
Showing 9 changed files with 503 additions and 0 deletions.
56 changes: 56 additions & 0 deletions mrp_stock_lot_analytic/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
======================
MRP Stock Lot Analytic
======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:2f0186e37d358eb2afa3a9220b33d6887dde2a936faa1b52b74a2d9b9352d757
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-qrtl%2Faxls--custom-lightgray.png?logo=github
:target: https://github.com/qrtl/axls-custom/tree/16.0/mrp_stock_lot_analytic
:alt: qrtl/axls-custom

|badge1| |badge2| |badge3|

This module propagates the analytic distribution of the manufacturing
order (MO) to the generated lot of the produced product.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/qrtl/axls-custom/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/qrtl/axls-custom/issues/new?body=module:%20mrp_stock_lot_analytic%0Aversion:%2016.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

Maintainers
-----------

This module is part of the `qrtl/axls-custom <https://github.com/qrtl/axls-custom/tree/16.0/mrp_stock_lot_analytic>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions mrp_stock_lot_analytic/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
12 changes: 12 additions & 0 deletions mrp_stock_lot_analytic/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2024 Quartile Limited
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "MRP Stock Lot Analytic",
"version": "16.0.1.0.0",
"author": "Quartile Limited",
"website": "https://www.quartile.co",
"category": "Analytic",
"license": "AGPL-3",
"depends": ["stock_lot_analytic", "mrp_stock_analytic"],
"installable": True,
}
1 change: 1 addition & 0 deletions mrp_stock_lot_analytic/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import mrp_production
14 changes: 14 additions & 0 deletions mrp_stock_lot_analytic/models/mrp_production.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2024 Quartile Limited
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import models


class MrpProduction(models.Model):
_inherit = "mrp.production"

def _prepare_stock_lot_values(self):
vals = super()._prepare_stock_lot_values()
if self.analytic_distribution:
vals["analytic_distribution"] = self.analytic_distribution
return vals
2 changes: 2 additions & 0 deletions mrp_stock_lot_analytic/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module propagates the analytic distribution of the manufacturing
order (MO) to the generated lot of the produced product.
Loading

0 comments on commit 60cf21b

Please sign in to comment.