-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
1,158 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Release | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
branches: | ||
- "12.0" | ||
- "13.0" | ||
- "14.0" | ||
|
||
jobs: | ||
release: | ||
name: Create release from manifest version | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Compare current version with latest release | ||
id: compare-odoo-version | ||
uses: Alliantum/actions/compare-odoo-version@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: softprops/action-gh-release@v1 | ||
if: ${{ steps.compare-odoo-version.outputs.new-version }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
name: ${{ steps.compare-odoo-version.outputs.new-version }} | ||
tag_name: ${{ steps.compare-odoo-version.outputs.new-version }} | ||
draft: false | ||
prerelease: false | ||
target_commitish: ${{ github.sha }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.pyc | ||
__pycache__ | ||
.DS_Store | ||
.venv | ||
.vscode | ||
.idea | ||
.mypy_cache | ||
.pytest_cache | ||
venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
.. image:: static/description/alliantum.png | ||
:alt: Alliantum | ||
:width: 100 % | ||
:scale: 70 % | ||
:align: center | ||
|
||
============== | ||
MO Max. Amount | ||
============== | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://shields.io/badge/Beta-yellow?style=for-the-badge&label=Maturity | ||
:target: https://alliantum.com/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://shields.io/badge/Alliantum%2fodoo_mo_maximum-24c3f3?style=for-the-badge&logo=github&label=github | ||
:target: https://github.com/Alliantum/odoo_mo_maximum/tree/13.0 | ||
:alt: Alliantum/odoo_mo_maximum | ||
|
||
|badge1| |badge2| | ||
|
||
|
||
|
||
Sets a maximum quantity for each product that can be manufactured on | ||
single Manufacturing Order. | ||
|
||
This will be the new field in the product view (both product and | ||
variants) | ||
|
||
.. image:: ./static/description/screenshot1.png | ||
:alt: Alliantum | ||
:width: 100 % | ||
:scale: 70 % | ||
:align: center | ||
|
||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Installation | ||
============ | ||
|
||
This module depends on ``mrp_production_grouped_by_product``. You can | ||
find it at | ||
`OCA/mrp_production_grouped_by_product <https://github.com/OCA/manufacture/tree/12.0/mrp_production_grouped_by_product>`__ | ||
|
||
Usage | ||
===== | ||
|
||
In order to trigger the blocking warning functionality you only need to | ||
create a Manufacture Order with more units than what is in the “Maximum | ||
per MO” field on the product | ||
|
||
.. image:: ./static/description/screenshot2.png | ||
:alt: Alliantum | ||
:width: 100 % | ||
:scale: 70 % | ||
:align: center | ||
|
||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/Alliantum/odoo_mo_maximum/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/Alliantum/odoo_mo_maximum/issues/new?body=module:%20odoo_mo_maximum%0Aversion:%2013.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 | ||
~~~~~~~ | ||
|
||
* Alliantum | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
- Aitor Rosell aitor.rosell@alliantum.com | ||
- David Moreno david.moreno@alliantum.com | ||
- Iago Alonso iago.alonso@alliantum.com | ||
|
||
Other credits | ||
~~~~~~~~~~~~~ | ||
|
||
The development of this module has been financially supported by: | ||
|
||
- Alliantum `www.alliantum.com <https://www.alliantum.com>`__ | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is maintained by Alliantum. | ||
|
||
.. image:: https://avatars.githubusercontent.com/u/68618709?s=200&v=4 | ||
:alt: Alliantum | ||
:target: https://alliantum.com | ||
|
||
Alliantum, is a company whose | ||
mission is to support the widespread use of Odoo by others companies, and collaborate in the development of new Odoo features. | ||
|
||
This module is part of the `Alliantum/odoo_public_modules <https://github.com/Alliantum/odoo_public_modules>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://github.com/Alliantum/odoo_public_modules. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
# Adding 'mrp_production_grouped_by_product' is just a way to ensure that our method here will be triggered before the one in the OCA module. So if not using | ||
# the grouping module the requirement can be removed from here | ||
{ | ||
'name': "MO Max. Amount", | ||
'summary': """ | ||
Maximum amount on MO per product""", | ||
'description': """ | ||
""", | ||
'author': "Alliantum", | ||
'website': "https://www.alliantum.com", | ||
'category': 'Manufacturing', | ||
'version': '13.0.1.0.2', | ||
'depends': ['mrp', 'stock', 'product', 'mrp_production_grouped_by_product'], | ||
'data': [ | ||
'views/product_views.xml', | ||
'views/mrp_production_view.xml', | ||
'views/change_production_view.xml', | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
# * odoo_mo_maximum | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2020-07-02 14:56+0000\n" | ||
"PO-Revision-Date: 2020-07-02 14:56+0000\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: odoo_mo_maximum | ||
#: code:addons/odoo_mo_maximum/models/change_production_qty.py:16 | ||
#, python-format | ||
msgid "<p>This product has a limit on the quantities you can produce for a single MO. Maximum is {}, so be aware, that if you overpass this limit a new MO will be created with the exceeded amounts.</p>" | ||
msgstr "<p>Dieses Produkt hat eine Begrenzung der Mengen, die Sie für eine einzelne Fertigungsauftrag produzieren können. Das Maximum ist {}, also seien Sie sich bewusst, wenn Sie diese Grenze überschreiten, dass ein neues Fertigungsauftrag mit den überschrittenen Mengen erstellt wird.</p>" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model.fields,field_description:odoo_mo_maximum.field_mrp_production__allow_exceed_max | ||
msgid "Allow Exceed Max" | ||
msgstr "Max überschreiten erlauben" | ||
|
||
#. module: odoo_mo_maximum | ||
#: code:addons/odoo_mo_maximum/models/mrp_production.py:40 | ||
#, python-format | ||
msgid "Can't save this order. The amount for the MO ( {} {} ) exceeds the limit of {} per a single Manufacturing Order, which is {} {}." | ||
msgstr "Diese Bestellung kann nicht gespeichert werden. Der Betrag für den MO ( {} {} ) überschreitet die Grenze von {} pro einzelnen Fertigungsauftrag, die {} {} {} beträgt." | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model,name:odoo_mo_maximum.model_change_production_qty | ||
msgid "Change Production Qty" | ||
msgstr "Produktionsmenge ändern" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model_terms:ir.ui.view,arch_db:odoo_mo_maximum.odoo_mo_maximum_template_form | ||
msgid "Manufacturing" | ||
msgstr "Fertigung" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model.fields,help:odoo_mo_maximum.field_product_product__max_production | ||
#: model:ir.model.fields,help:odoo_mo_maximum.field_product_template__max_production | ||
msgid "Maximum amount allowed for a single MO for this product, calculated with the default UoM of the product." | ||
msgstr "Maximal erlaubter Betrag für eine einzelne MO für dieses Produkt, berechnet mit der Standard-UoM des Produkts." | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model.fields,field_description:odoo_mo_maximum.field_product_product__max_production | ||
#: model:ir.model.fields,field_description:odoo_mo_maximum.field_product_template__max_production | ||
msgid "Maximum per MO" | ||
msgstr "Maximum pro MO" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model.fields,field_description:odoo_mo_maximum.field_mrp_production__max_allowed_reached | ||
msgid "Max Reached" | ||
msgstr "Max Erreicht" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model,name:odoo_mo_maximum.model_product_product | ||
msgid "Product" | ||
msgstr "Produkt" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model,name:odoo_mo_maximum.model_product_template | ||
msgid "Product Template" | ||
msgstr "Produktvorlage" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model,name:odoo_mo_maximum.model_mrp_production | ||
msgid "Production Order" | ||
msgstr "Produktionsauftrag" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model.fields,field_description:odoo_mo_maximum.field_change_production_qty__warning_message | ||
msgid "Warning Message" | ||
msgstr "Warnmeldung" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
# * odoo_mo_maximum | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2021-04-19 12:15+0000\n" | ||
"PO-Revision-Date: 2021-04-19 12:15+0000\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: odoo_mo_maximum | ||
#: code:addons/odoo_mo_maximum/models/change_production_qty.py:16 | ||
#, python-format | ||
msgid "<p>This product has a limit on the quantities you can produce for a single MO. Maximum is {}, so be aware, that if you overpass this limit a new MO will be created with the exceeded amounts.</p>" | ||
msgstr "" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model.fields,field_description:odoo_mo_maximum.field_mrp_production__allow_exceed_max | ||
msgid "Allow Exceed Max" | ||
msgstr "" | ||
|
||
#. module: odoo_mo_maximum | ||
#: code:addons/odoo_mo_maximum/models/mrp_production.py:40 | ||
#, python-format | ||
msgid "Can't save this order. The amount for the MO ( {} {} ) exceeds the limit of {} per a single Manufacturing Order, which is {} {}." | ||
msgstr "" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model,name:odoo_mo_maximum.model_change_production_qty | ||
msgid "Change Production Qty" | ||
msgstr "" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model_terms:ir.ui.view,arch_db:odoo_mo_maximum.odoo_mo_maximum_template_form | ||
msgid "Manufacturing" | ||
msgstr "" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model.fields,help:odoo_mo_maximum.field_product_product__max_production | ||
#: model:ir.model.fields,help:odoo_mo_maximum.field_product_template__max_production | ||
msgid "Maximum amount allowed for a single MO for this product, calculated with the default UoM of the product." | ||
msgstr "" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model.fields,field_description:odoo_mo_maximum.field_product_product__max_production | ||
#: model:ir.model.fields,field_description:odoo_mo_maximum.field_product_template__max_production | ||
msgid "Maximum per MO" | ||
msgstr "" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model.fields,field_description:odoo_mo_maximum.field_mrp_production__max_allowed_reached | ||
msgid "Mex Reached" | ||
msgstr "" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model,name:odoo_mo_maximum.model_product_product | ||
msgid "Product" | ||
msgstr "" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model,name:odoo_mo_maximum.model_product_template | ||
msgid "Product Template" | ||
msgstr "" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model,name:odoo_mo_maximum.model_mrp_production | ||
msgid "Production Order" | ||
msgstr "" | ||
|
||
#. module: odoo_mo_maximum | ||
#: model:ir.model.fields,field_description:odoo_mo_maximum.field_change_production_qty__warning_message | ||
msgid "Warning Message" | ||
msgstr "" | ||
|
Oops, something went wrong.