diff --git a/mrp_progress_button/README.rst b/mrp_progress_button/README.rst new file mode 100644 index 000000000..5de08a897 --- /dev/null +++ b/mrp_progress_button/README.rst @@ -0,0 +1,83 @@ +=================== +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 smash it by providing detailed and welcomed feedback. + +Credits +======= + +Authors +~~~~~~~ + +* Akretion + +Contributors +~~~~~~~~~~~~ + +* Florian da Costa +* Sudhir Arya + +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..3f47b0fe3 --- /dev/null +++ b/mrp_progress_button/__manifest__.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). + +{ + "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": "12.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..2c6af3cea --- /dev/null +++ b/mrp_progress_button/i18n/de.po @@ -0,0 +1,29 @@ +# 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:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Manufacturing Order" +msgstr "Fertigungsautrag" + +#. module: mrp_progress_button +#: model:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" diff --git a/mrp_progress_button/i18n/es.po b/mrp_progress_button/i18n/es.po new file mode 100644 index 000000000..dbc475fec --- /dev/null +++ b/mrp_progress_button/i18n/es.po @@ -0,0 +1,29 @@ +# 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:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Manufacturing Order" +msgstr "Órden de producción" + +#. module: mrp_progress_button +#: model:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" diff --git a/mrp_progress_button/i18n/es_MX.po b/mrp_progress_button/i18n/es_MX.po new file mode 100644 index 000000000..4746aa041 --- /dev/null +++ b/mrp_progress_button/i18n/es_MX.po @@ -0,0 +1,30 @@ +# 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:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Manufacturing Order" +msgstr "Orden de fabricación" + +#. module: mrp_progress_button +#: model:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" diff --git a/mrp_progress_button/i18n/fr.po b/mrp_progress_button/i18n/fr.po new file mode 100644 index 000000000..cc2cfa752 --- /dev/null +++ b/mrp_progress_button/i18n/fr.po @@ -0,0 +1,29 @@ +# 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:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Manufacturing Order" +msgstr "Ordre de fabrication" + +#. module: mrp_progress_button +#: model:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" diff --git a/mrp_progress_button/i18n/gl.po b/mrp_progress_button/i18n/gl.po new file mode 100644 index 000000000..f62036e8f --- /dev/null +++ b/mrp_progress_button/i18n/gl.po @@ -0,0 +1,29 @@ +# 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:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Manufacturing Order" +msgstr "Orde de fabricación" + +#. module: mrp_progress_button +#: model:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" diff --git a/mrp_progress_button/i18n/hr.po b/mrp_progress_button/i18n/hr.po new file mode 100644 index 000000000..8e7002181 --- /dev/null +++ b/mrp_progress_button/i18n/hr.po @@ -0,0 +1,31 @@ +# 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:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Manufacturing Order" +msgstr "Proizvodni nalog" + +#. module: mrp_progress_button +#: model:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "Označi kao započeto" diff --git a/mrp_progress_button/i18n/hr_HR.po b/mrp_progress_button/i18n/hr_HR.po new file mode 100644 index 000000000..f82d8afa9 --- /dev/null +++ b/mrp_progress_button/i18n/hr_HR.po @@ -0,0 +1,31 @@ +# 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:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Manufacturing Order" +msgstr "Proizvodni nalog" + +#. module: mrp_progress_button +#: model:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" diff --git a/mrp_progress_button/i18n/lt.po b/mrp_progress_button/i18n/lt.po new file mode 100644 index 000000000..d0cf89871 --- /dev/null +++ b/mrp_progress_button/i18n/lt.po @@ -0,0 +1,30 @@ +# 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:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Manufacturing Order" +msgstr "Gamybos užsakymas" + +#. module: mrp_progress_button +#: model:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" 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..f1ce61016 --- /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 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_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Manufacturing Order" +msgstr "" + +#. module: mrp_progress_button +#: model:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +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..4500a4cab --- /dev/null +++ b/mrp_progress_button/i18n/nl_NL.po @@ -0,0 +1,30 @@ +# 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:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Manufacturing Order" +msgstr "Productieorder" + +#. module: mrp_progress_button +#: model:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" diff --git a/mrp_progress_button/i18n/pt_BR.po b/mrp_progress_button/i18n/pt_BR.po new file mode 100644 index 000000000..e87db7686 --- /dev/null +++ b/mrp_progress_button/i18n/pt_BR.po @@ -0,0 +1,30 @@ +# 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: 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" + +#. module: mrp_progress_button +#: model:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Manufacturing Order" +msgstr "Ordem de fabricação" + +#. module: mrp_progress_button +#: model:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" diff --git a/mrp_progress_button/i18n/ro.po b/mrp_progress_button/i18n/ro.po new file mode 100644 index 000000000..0418dd1d3 --- /dev/null +++ b/mrp_progress_button/i18n/ro.po @@ -0,0 +1,30 @@ +# 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:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Manufacturing Order" +msgstr "Comandă fabricație" + +#. module: mrp_progress_button +#: model:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" diff --git a/mrp_progress_button/i18n/sl.po b/mrp_progress_button/i18n/sl.po new file mode 100644 index 000000000..acba7bef7 --- /dev/null +++ b/mrp_progress_button/i18n/sl.po @@ -0,0 +1,30 @@ +# 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:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Manufacturing Order" +msgstr "Proizvodni nalog" + +#. module: mrp_progress_button +#: model:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" diff --git a/mrp_progress_button/i18n/tr.po b/mrp_progress_button/i18n/tr.po new file mode 100644 index 000000000..ce92f9c96 --- /dev/null +++ b/mrp_progress_button/i18n/tr.po @@ -0,0 +1,29 @@ +# 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:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Manufacturing Order" +msgstr "Üretim emri" + +#. module: mrp_progress_button +#: model:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" diff --git a/mrp_progress_button/i18n/vi_VN.po b/mrp_progress_button/i18n/vi_VN.po new file mode 100644 index 000000000..9a39c970c --- /dev/null +++ b/mrp_progress_button/i18n/vi_VN.po @@ -0,0 +1,30 @@ +# 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:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Manufacturing Order" +msgstr "Lệnh sản xuất" + +#. module: mrp_progress_button +#: model:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +msgstr "" diff --git a/mrp_progress_button/i18n/zh_CN.po b/mrp_progress_button/i18n/zh_CN.po new file mode 100644 index 000000000..5d1d3615b --- /dev/null +++ b/mrp_progress_button/i18n/zh_CN.po @@ -0,0 +1,30 @@ +# 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:ir.model,name:mrp_progress_button.model_mrp_production +msgid "Manufacturing Order" +msgstr "制造订单" + +#. module: mrp_progress_button +#: model:ir.ui.view,arch_db:mrp_progress_button.mrp_production_progress_button_form_view +msgid "Mark As Started" +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..320c464f6 --- /dev/null +++ b/mrp_progress_button/models/mrp_production.py @@ -0,0 +1,18 @@ +# 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 api, models + + +class MrpProduction(models.Model): + _inherit = 'mrp.production' + + @api.multi + 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..df53d4ebe --- /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..0323714bb --- /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..4bddd28ae --- /dev/null +++ b/mrp_progress_button/tests/test_progress_button.py @@ -0,0 +1,68 @@ +# 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.""" + product_qty = self.env['stock.change.product.qty'].create({ + 'location_id': location.id, + 'product_id': product.id, + 'new_quantity': quantity, + }) + product_qty.change_product_qty() + return product_qty + + 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..a42cc38e1 --- /dev/null +++ b/mrp_progress_button/views/production.xml @@ -0,0 +1,15 @@ + + + + + mrp.production + + + + + + +