diff --git a/mrp_progress_button/README.rst b/mrp_progress_button/README.rst new file mode 100644 index 000000000..e8ad68582 --- /dev/null +++ b/mrp_progress_button/README.rst @@ -0,0 +1,84 @@ +=================== +Mrp Progress Button +=================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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/12.0/mrp_progress_button + :alt: OCA/manufacture +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/manufacture-12-0/manufacture-12-0-mrp_progress_button + :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/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Simple module that add a button on MO to mark the Manufacturing Order to +*In Progress* state. This module is usefull only when you do not use routing and +operations. Indeed, the *In Progress* state is automatically put when the +first operation is started. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +#. Go to *Manufacturing* and create a Manufacturing Order. +#. Click on *Mark As Started* button + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Akretion + +Contributors +~~~~~~~~~~~~ + +* Florian da Costa + +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 `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mrp_progress_button/__init__.py b/mrp_progress_button/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/mrp_progress_button/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/mrp_progress_button/__manifest__.py b/mrp_progress_button/__manifest__.py new file mode 100644 index 000000000..16a8cc4eb --- /dev/null +++ b/mrp_progress_button/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved +# @author Florian DA COSTA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Mrp Progress Button", + "summary": "Add a button on MO to make the MO state 'In Progress'", + "author": "Akretion, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/manufacture", + "category": "Manufacturing", + "version": "14.0.1.0.0", + "license": "AGPL-3", + "depends": ["mrp"], + "data": ["views/production.xml"], + "installable": True, +} diff --git a/mrp_progress_button/i18n/de.po b/mrp_progress_button/i18n/de.po new file mode 100644 index 000000000..21171fa36 --- /dev/null +++ b/mrp_progress_button/i18n/de.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_progress_button +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\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_progress_button +#: model_terms:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Production Order" +msgstr "" + +#~ msgid "Manufacturing Order" +#~ msgstr "Fertigungsautrag" diff --git a/mrp_progress_button/i18n/es.po b/mrp_progress_button/i18n/es.po new file mode 100644 index 000000000..894b85d0b --- /dev/null +++ b/mrp_progress_button/i18n/es.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_progress_button +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\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_progress_button +#: model_terms:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Production Order" +msgstr "" + +#~ msgid "Manufacturing Order" +#~ msgstr "Órden de producción" diff --git a/mrp_progress_button/i18n/es_MX.po b/mrp_progress_button/i18n/es_MX.po new file mode 100644 index 000000000..86cb54354 --- /dev/null +++ b/mrp_progress_button/i18n/es_MX.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_progress_button +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-12 03:48+0000\n" +"PO-Revision-Date: 2018-02-12 03:48+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/" +"es_MX/)\n" +"Language: es_MX\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_progress_button +#: model_terms:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Production Order" +msgstr "" + +#~ msgid "Manufacturing Order" +#~ msgstr "Orden de fabricación" diff --git a/mrp_progress_button/i18n/fr.po b/mrp_progress_button/i18n/fr.po new file mode 100644 index 000000000..44a8e1006 --- /dev/null +++ b/mrp_progress_button/i18n/fr.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_progress_button +# +# Translators: +# Quentin THEURET , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: Quentin THEURET , 2017\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\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_progress_button +#: model_terms:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Production Order" +msgstr "" + +#~ msgid "Manufacturing Order" +#~ msgstr "Ordre de fabrication" diff --git a/mrp_progress_button/i18n/gl.po b/mrp_progress_button/i18n/gl.po new file mode 100644 index 000000000..996c1df8b --- /dev/null +++ b/mrp_progress_button/i18n/gl.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_progress_button +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-12 03:48+0000\n" +"PO-Revision-Date: 2018-02-12 03:48+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"Language: gl\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_progress_button +#: model_terms:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Production Order" +msgstr "" + +#~ msgid "Manufacturing Order" +#~ msgstr "Orde de fabricación" diff --git a/mrp_progress_button/i18n/hr.po b/mrp_progress_button/i18n/hr.po new file mode 100644 index 000000000..36df1ccdd --- /dev/null +++ b/mrp_progress_button/i18n/hr.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_progress_button +# +# Translators: +# OCA Transbot , 2018 +# Bole , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-12 03:48+0000\n" +"PO-Revision-Date: 2018-02-12 03:48+0000\n" +"Last-Translator: Bole , 2018\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: mrp_progress_button +#: model_terms:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "Označi kao započeto" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Production Order" +msgstr "" + +#~ msgid "Manufacturing Order" +#~ msgstr "Proizvodni nalog" diff --git a/mrp_progress_button/i18n/hr_HR.po b/mrp_progress_button/i18n/hr_HR.po new file mode 100644 index 000000000..e79b2660e --- /dev/null +++ b/mrp_progress_button/i18n/hr_HR.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_progress_button +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/" +"hr_HR/)\n" +"Language: hr_HR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: mrp_progress_button +#: model_terms:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Production Order" +msgstr "" + +#~ msgid "Manufacturing Order" +#~ msgstr "Proizvodni nalog" diff --git a/mrp_progress_button/i18n/lt.po b/mrp_progress_button/i18n/lt.po new file mode 100644 index 000000000..512c0823a --- /dev/null +++ b/mrp_progress_button/i18n/lt.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_progress_button +# +# Translators: +# Viktoras Norkus , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-16 08:02+0000\n" +"PO-Revision-Date: 2018-01-16 08:02+0000\n" +"Last-Translator: Viktoras Norkus , 2018\n" +"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n" +"Language: lt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n" +"%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: mrp_progress_button +#: model_terms:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Production Order" +msgstr "" + +#~ msgid "Manufacturing Order" +#~ msgstr "Gamybos užsakymas" diff --git a/mrp_progress_button/i18n/mrp_progress_button.pot b/mrp_progress_button/i18n/mrp_progress_button.pot new file mode 100644 index 000000000..7a82d39ce --- /dev/null +++ b/mrp_progress_button/i18n/mrp_progress_button.pot @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_progress_button +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.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_progress_button +#: model_terms:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Production Order" +msgstr "" + diff --git a/mrp_progress_button/i18n/nl_NL.po b/mrp_progress_button/i18n/nl_NL.po new file mode 100644 index 000000000..137b7ddcc --- /dev/null +++ b/mrp_progress_button/i18n/nl_NL.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_progress_button +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: Peter Hageman , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\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_progress_button +#: model_terms:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Production Order" +msgstr "" + +#~ msgid "Manufacturing Order" +#~ msgstr "Productieorder" diff --git a/mrp_progress_button/i18n/pt_BR.po b/mrp_progress_button/i18n/pt_BR.po new file mode 100644 index 000000000..e059199ac --- /dev/null +++ b/mrp_progress_button/i18n/pt_BR.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_progress_button +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2021-03-15 07:45+0000\n" +"Last-Translator: Marcel Savegnago \n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/" +"23907/pt_BR/)\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" +"X-Generator: Weblate 4.3.2\n" + +#. module: mrp_progress_button +#: model_terms:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "Marcar Como Iniciado" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Production Order" +msgstr "Ordem de Produção" + +#~ msgid "Manufacturing Order" +#~ msgstr "Ordem de fabricação" diff --git a/mrp_progress_button/i18n/ro.po b/mrp_progress_button/i18n/ro.po new file mode 100644 index 000000000..1640abefd --- /dev/null +++ b/mrp_progress_button/i18n/ro.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_progress_button +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-12 03:48+0000\n" +"PO-Revision-Date: 2018-02-12 03:48+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" +"2:1));\n" + +#. module: mrp_progress_button +#: model_terms:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Production Order" +msgstr "" + +#~ msgid "Manufacturing Order" +#~ msgstr "Comandă fabricație" diff --git a/mrp_progress_button/i18n/sl.po b/mrp_progress_button/i18n/sl.po new file mode 100644 index 000000000..642707f62 --- /dev/null +++ b/mrp_progress_button/i18n/sl.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_progress_button +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-12 03:48+0000\n" +"PO-Revision-Date: 2018-02-12 03:48+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" + +#. module: mrp_progress_button +#: model_terms:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Production Order" +msgstr "" + +#~ msgid "Manufacturing Order" +#~ msgstr "Proizvodni nalog" diff --git a/mrp_progress_button/i18n/tr.po b/mrp_progress_button/i18n/tr.po new file mode 100644 index 000000000..f74aff5c5 --- /dev/null +++ b/mrp_progress_button/i18n/tr.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_progress_button +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-12 03:48+0000\n" +"PO-Revision-Date: 2018-02-12 03:48+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"Language: tr\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_progress_button +#: model_terms:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Production Order" +msgstr "" + +#~ msgid "Manufacturing Order" +#~ msgstr "Üretim emri" diff --git a/mrp_progress_button/i18n/vi_VN.po b/mrp_progress_button/i18n/vi_VN.po new file mode 100644 index 000000000..a95a7f96f --- /dev/null +++ b/mrp_progress_button/i18n/vi_VN.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_progress_button +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-12 03:48+0000\n" +"PO-Revision-Date: 2018-02-12 03:48+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/" +"teams/23907/vi_VN/)\n" +"Language: vi_VN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: mrp_progress_button +#: model_terms:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Production Order" +msgstr "" + +#~ msgid "Manufacturing Order" +#~ msgstr "Lệnh sản xuất" diff --git a/mrp_progress_button/i18n/zh_CN.po b/mrp_progress_button/i18n/zh_CN.po new file mode 100644 index 000000000..12be0cebb --- /dev/null +++ b/mrp_progress_button/i18n/zh_CN.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_progress_button +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/" +"zh_CN/)\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: mrp_progress_button +#: model_terms:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Production Order" +msgstr "" + +#~ msgid "Manufacturing Order" +#~ msgstr "制造订单" diff --git a/mrp_progress_button/models/__init__.py b/mrp_progress_button/models/__init__.py new file mode 100644 index 000000000..a9e5f13e4 --- /dev/null +++ b/mrp_progress_button/models/__init__.py @@ -0,0 +1 @@ +from . import mrp_production diff --git a/mrp_progress_button/models/mrp_production.py b/mrp_progress_button/models/mrp_production.py new file mode 100644 index 000000000..70935681f --- /dev/null +++ b/mrp_progress_button/models/mrp_production.py @@ -0,0 +1,20 @@ +# Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved +# @author Florian DA COSTA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from datetime import datetime + +from odoo import models + + +class MrpProduction(models.Model): + _inherit = "mrp.production" + + def action_progress(self): + self.write( + { + "state": "progress", + "date_start": datetime.now(), + } + ) + return True diff --git a/mrp_progress_button/readme/CONTRIBUTORS.rst b/mrp_progress_button/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..0bddb053a --- /dev/null +++ b/mrp_progress_button/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Florian da Costa diff --git a/mrp_progress_button/readme/DESCRIPTION.rst b/mrp_progress_button/readme/DESCRIPTION.rst new file mode 100644 index 000000000..85cb853a5 --- /dev/null +++ b/mrp_progress_button/readme/DESCRIPTION.rst @@ -0,0 +1,4 @@ +Simple module that add a button on MO to mark the Manufacturing Order to +*In Progress* state. This module is usefull only when you do not use routing and +operations. Indeed, the *In Progress* state is automatically put when the +first operation is started. diff --git a/mrp_progress_button/readme/USAGE.rst b/mrp_progress_button/readme/USAGE.rst new file mode 100644 index 000000000..818f02b3c --- /dev/null +++ b/mrp_progress_button/readme/USAGE.rst @@ -0,0 +1,4 @@ +To use this module, you need to: + +#. Go to *Manufacturing* and create a Manufacturing Order. +#. Click on *Mark As Started* button diff --git a/mrp_progress_button/static/description/icon.png b/mrp_progress_button/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/mrp_progress_button/static/description/icon.png differ diff --git a/mrp_progress_button/static/description/index.html b/mrp_progress_button/static/description/index.html new file mode 100644 index 000000000..0af5ec69d --- /dev/null +++ b/mrp_progress_button/static/description/index.html @@ -0,0 +1,431 @@ + + + + + + +Mrp Progress Button + + + +
+

Mrp Progress Button

+ + +

Beta License: AGPL-3 OCA/manufacture Translate me on Weblate Try me on Runbot

+

Simple module that add a button on MO to mark the Manufacturing Order to +In Progress state. This module is usefull only when you do not use routing and +operations. Indeed, the In Progress state is automatically put when the +first operation is started.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  1. Go to Manufacturing and create a Manufacturing Order.
  2. +
  3. Click on Mark As Started button
  4. +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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 project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/mrp_progress_button/tests/__init__.py b/mrp_progress_button/tests/__init__.py new file mode 100644 index 000000000..695c555d1 --- /dev/null +++ b/mrp_progress_button/tests/__init__.py @@ -0,0 +1 @@ +from . import test_progress_button diff --git a/mrp_progress_button/tests/test_progress_button.py b/mrp_progress_button/tests/test_progress_button.py new file mode 100644 index 000000000..02570c000 --- /dev/null +++ b/mrp_progress_button/tests/test_progress_button.py @@ -0,0 +1,97 @@ +# Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved +# @author Florian DA COSTA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo.tests.common import TransactionCase + + +class TestProgressButton(TransactionCase): + def setUp(self, *args, **kwargs): + super(TestProgressButton, self).setUp(*args, **kwargs) + self.production_model = self.env["mrp.production"] + self.bom_model = self.env["mrp.bom"] + self.stock_location_stock = self.env.ref("stock.stock_location_stock") + self.manufacture_route = self.env.ref("mrp.route_warehouse0_manufacture") + self.uom_unit = self.env.ref("uom.product_uom_unit") + + self.product_manuf = self.env["product.product"].create( + { + "name": "Manuf", + "type": "product", + "uom_id": self.uom_unit.id, + "route_ids": [(4, self.manufacture_route.id)], + } + ) + self.product_raw_material = self.env["product.product"].create( + { + "name": "Raw Material", + "type": "product", + "uom_id": self.uom_unit.id, + } + ) + + self._update_product_qty( + self.product_raw_material, self.stock_location_stock, 1 + ) + + self.bom = self.env["mrp.bom"].create( + { + "product_id": self.product_manuf.id, + "product_tmpl_id": self.product_manuf.product_tmpl_id.id, + "bom_line_ids": ( + [ + ( + 0, + 0, + { + "product_id": self.product_raw_material.id, + "product_qty": 1, + "product_uom_id": self.uom_unit.id, + }, + ), + ] + ), + } + ) + + def _update_product_qty(self, product, location, quantity): + """Update Product quantity.""" + inventory = self.env["stock.inventory"].create( + { + "name": "Test Inventory", + "product_ids": [(6, 0, product.ids)], + "state": "confirm", + "line_ids": [ + ( + 0, + 0, + { + "product_qty": quantity, + "location_id": location.id, + "product_id": product.id, + "product_uom_id": product.uom_id.id, + }, + ) + ], + } + ) + inventory.action_start() + inventory.line_ids[0].write({"product_qty": quantity}) + inventory.action_validate() + return quantity + + def test_manufacture_with_forecast_stock(self): + """ + Test Manufacture mto with stock based on forecast quantity + and no link between sub assemblies MO's and Main MO raw material + """ + production = self.production_model.create( + { + "product_id": self.product_manuf.id, + "product_qty": 1, + "product_uom_id": self.uom_unit.id, + "bom_id": self.bom.id, + } + ) + production.action_progress() + self.assertEqual(production.state, "progress") diff --git a/mrp_progress_button/views/production.xml b/mrp_progress_button/views/production.xml new file mode 100644 index 000000000..1c7399c69 --- /dev/null +++ b/mrp_progress_button/views/production.xml @@ -0,0 +1,20 @@ + + + + + mrp.production + + + + + + + diff --git a/setup/mrp_progress_button/odoo/addons/mrp_progress_button b/setup/mrp_progress_button/odoo/addons/mrp_progress_button new file mode 120000 index 000000000..1540e0e2a --- /dev/null +++ b/setup/mrp_progress_button/odoo/addons/mrp_progress_button @@ -0,0 +1 @@ +../../../../mrp_progress_button \ No newline at end of file diff --git a/setup/mrp_progress_button/setup.py b/setup/mrp_progress_button/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/mrp_progress_button/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)