Skip to content

Commit

Permalink
Merge 7a3fbf7 into 66337ef
Browse files Browse the repository at this point in the history
  • Loading branch information
eLBati committed Sep 26, 2019
2 parents 66337ef + 7a3fbf7 commit 6f4206e
Show file tree
Hide file tree
Showing 18 changed files with 788 additions and 0 deletions.
84 changes: 84 additions & 0 deletions mrp_production_auto_post_inventory/README.rst
@@ -0,0 +1,84 @@
==============================
Production Auto Post-Inventory
==============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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%2Fmanufacture-lightgray.png?logo=github
:target: https://github.com/OCA/manufacture/tree/11.0/mrp_production_auto_post_inventory
:alt: OCA/manufacture
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/manufacture-11-0/manufacture-11-0-mrp_production_auto_post_inventory
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/129/11.0
:alt: Try me on Runbot

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

This module allows the user to set to automatic the post inventory step
in a manufacturing order. Having this option activated, the inventory will
be automatically posted after some quantity has been produced without the
need of completing the whole manufacturing order.

**Table of contents**

.. contents::
:local:

Usage
=====

In Manufacture -> Settings a new checkbox is added:

.. image:: https://raw.githubusercontent.com/mrp_production_auto_post_inventory/static/description/AutoPostInventory_Option.png
:alt: Checkbox added in Manufacture Settings

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_production_auto_post_inventory%0Aversion:%2011.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
~~~~~~~

* Eficent

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

* Adria Gil Sorribes <adria.gil@eficent.com>

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/11.0/mrp_production_auto_post_inventory>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions mrp_production_auto_post_inventory/__init__.py
@@ -0,0 +1,3 @@
from . import models
from . import wizard
from . import tests
20 changes: 20 additions & 0 deletions mrp_production_auto_post_inventory/__manifest__.py
@@ -0,0 +1,20 @@
# Copyright 2016-19 Eficent Business and IT Consulting Services S.L.
# Copyright 2016-19 Lorenzo Battistini - TAKOBI
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'Production Auto Post-Inventory',
'version': '12.0.1.0.0',
'category': 'MRP',
'author': 'Eficent, '
'Odoo Community Association (OCA)',
'website': 'https://github.com/oca/manufacture',
'license': 'AGPL-3',
'depends': [
'mrp',
],
'data': [
'views/res_config_settings.xml',
],
'installable': True,
}
@@ -0,0 +1,53 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_production_auto_post_inventory
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.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_production_auto_post_inventory
#: model:ir.model,name:mrp_production_auto_post_inventory.model_res_company
msgid "Companies"
msgstr ""

#. module: mrp_production_auto_post_inventory
#: model:ir.model.fields,field_description:mrp_production_auto_post_inventory.field_res_company_mrp_production_auto_post_inventory
#: model:ir.model.fields,field_description:mrp_production_auto_post_inventory.field_res_config_settings_mrp_production_auto_post_inventory
msgid "Production Auto Post-Inventory"
msgstr ""

#. module: mrp_production_auto_post_inventory
#: model:ir.model,name:mrp_production_auto_post_inventory.model_mrp_product_produce
msgid "Record Production"
msgstr ""

#. module: mrp_production_auto_post_inventory
#: model:ir.ui.view,arch_db:mrp_production_auto_post_inventory.res_config_settings_view_form_auto_post_inventory
msgid "Sets to automatic the post-inventory step in a manufacturing order."
msgstr ""

#. module: mrp_production_auto_post_inventory
#: model:ir.ui.view,arch_db:mrp_production_auto_post_inventory.res_config_settings_view_form_auto_post_inventory
msgid "Sets to automatic the post-inventory step in a manufacturing order.\n"
" The inventory will be automatically posted after some quantity has been produced."
msgstr ""

#. module: mrp_production_auto_post_inventory
#: model:ir.model.fields,help:mrp_production_auto_post_inventory.field_res_company_mrp_production_auto_post_inventory
#: model:ir.model.fields,help:mrp_production_auto_post_inventory.field_res_config_settings_mrp_production_auto_post_inventory
msgid "Sets to automatic the post-inventory step in a manufacturingorder. The inventory will be automatically posted after some quantity has been produced"
msgstr ""

#. module: mrp_production_auto_post_inventory
#: model:ir.model,name:mrp_production_auto_post_inventory.model_res_config_settings
msgid "res.config.settings"
msgstr ""

2 changes: 2 additions & 0 deletions mrp_production_auto_post_inventory/models/__init__.py
@@ -0,0 +1,2 @@
from . import company
from . import res_config_settings
14 changes: 14 additions & 0 deletions mrp_production_auto_post_inventory/models/company.py
@@ -0,0 +1,14 @@
# Copyright 2016-19 Eficent Business and IT Consulting Services S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models, fields


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

mrp_production_auto_post_inventory = fields.Boolean(
string="Production Auto Post-Inventory",
help="Sets to automatic the post-inventory step in a manufacturing"
"order. The inventory will be automatically posted after some "
"quantity has been produced")
13 changes: 13 additions & 0 deletions mrp_production_auto_post_inventory/models/res_config_settings.py
@@ -0,0 +1,13 @@
# © 2017 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models, fields


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

mrp_production_auto_post_inventory = fields.Boolean(
related='company_id.mrp_production_auto_post_inventory',
readonly=False)
2 changes: 2 additions & 0 deletions mrp_production_auto_post_inventory/readme/CONTRIBUTORS.rst
@@ -0,0 +1,2 @@
* Adria Gil Sorribes <adria.gil@eficent.com>
* Lorenzo Battistini <lb@takobi.online>
4 changes: 4 additions & 0 deletions mrp_production_auto_post_inventory/readme/DESCRIPTION.rst
@@ -0,0 +1,4 @@
This module allows the user to set to automatic the post inventory step
in a manufacturing order. Having this option activated, the inventory will
be automatically posted after some quantity has been produced without the
need of completing the whole manufacturing order.
4 changes: 4 additions & 0 deletions mrp_production_auto_post_inventory/readme/USAGE.rst
@@ -0,0 +1,4 @@
In Manufacture -> Settings a new checkbox is added:

.. image:: /mrp_production_auto_post_inventory/static/description/AutoPostInventory_Option.png
:alt: Checkbox added in Manufacture Settings
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6f4206e

Please sign in to comment.