Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
94 changes: 94 additions & 0 deletions mrp_lot_production_date/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
=======================
MRP Lot Production Date
=======================

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

.. |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%2Fmanufacture-lightgray.png?logo=github
:target: https://github.com/OCA/manufacture/tree/18.0/mrp_lot_production_date
:alt: OCA/manufacture
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/manufacture-18-0/manufacture-18-0-mrp_lot_production_date
: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/manufacture&target_branch=18.0
:alt: Try me on Runboat

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

This module automatically set a production date on lots/SN produced
through the validation of manufacturing orders.

**Table of contents**

.. contents::
:local:

Usage
=====

To get production dates automatically set on produced lots you need to
configure your products to be tracked by lots or serial numbers.

Then at the validation of a manufacturing order the production date will
be set automatically on the produced lot.

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

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

* Camptocamp

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

- Sébastien Alix <[email protected]>
- Nhan Tran <[email protected]>

Other credits
-------------

**Financial support**

- Cosanum

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/manufacture <https://github.com/OCA/manufacture/tree/18.0/mrp_lot_production_date>`_ 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_lot_production_date/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions mrp_lot_production_date/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
{
"name": "MRP Lot Production Date",
"Summary": "Set a production date automatically on produced lots/SN.",
"version": "19.0.1.0.0",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/manufacture",
"category": "Manufacturing",
"depends": [
# core
"mrp",
# OCA/stock-logistics-workflow
"stock_lot_production_date",
],
"installable": True,
"auto_install": True,
"license": "AGPL-3",
}
22 changes: 22 additions & 0 deletions mrp_lot_production_date/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_lot_production_date
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-18 09:33+0000\n"
"Last-Translator: mymage <[email protected]>\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_lot_production_date
#: model:ir.model,name:mrp_lot_production_date.model_mrp_production
msgid "Production Order"
msgstr "Ordine di produzione"
19 changes: 19 additions & 0 deletions mrp_lot_production_date/i18n/mrp_lot_production_date.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_lot_production_date
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.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_lot_production_date
#: model:ir.model,name:mrp_lot_production_date.model_mrp_production
msgid "Manufacturing Order"
msgstr ""
20 changes: 20 additions & 0 deletions mrp_lot_production_date/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_lot_production_date
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\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"

#. module: mrp_lot_production_date
#: model:ir.model,name:mrp_lot_production_date.model_mrp_production
msgid "Manufacturing Order"
msgstr ""
1 change: 1 addition & 0 deletions mrp_lot_production_date/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_lot_production_date/models/mrp_production.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from odoo import fields, models


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

def _post_inventory(self, cancel_backorder=False):
res = super()._post_inventory(cancel_backorder=cancel_backorder)
for order in self:
order.lot_producing_ids.write({"production_date": fields.Datetime.now()})
return res
3 changes: 3 additions & 0 deletions mrp_lot_production_date/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
3 changes: 3 additions & 0 deletions mrp_lot_production_date/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Sébastien Alix \<<[email protected]>\>
- Nhan Tran \<<[email protected]>\>
- Evan Soh \<<[email protected]>\>
3 changes: 3 additions & 0 deletions mrp_lot_production_date/readme/CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Financial support**

- Cosanum
2 changes: 2 additions & 0 deletions mrp_lot_production_date/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module automatically set a production date on lots/SN produced
through the validation of manufacturing orders.
5 changes: 5 additions & 0 deletions mrp_lot_production_date/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
To get production dates automatically set on produced lots you need to
configure your products to be tracked by lots or serial numbers.

Then at the validation of a manufacturing order the production date will
be set automatically on the produced lot.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading