From b11564463afe8fc7a6cb0321c8276ac770d3fba5 Mon Sep 17 00:00:00 2001 From: oihane Date: Thu, 5 Mar 2015 12:18:18 +0100 Subject: [PATCH 1/5] [MOD] Added and renamed *notes modules to *note --- mrp_bom_note/README.rst | 8 ++++++ mrp_bom_note/__init__.py | 18 ++++++++++++ mrp_bom_note/__openerp__.py | 37 ++++++++++++++++++++++++ mrp_bom_note/i18n/es.po | 44 +++++++++++++++++++++++++++++ mrp_bom_note/i18n/mrp_bom_notes.pot | 44 +++++++++++++++++++++++++++++ mrp_bom_note/models/__init__.py | 18 ++++++++++++ mrp_bom_note/models/mrp_bom.py | 25 ++++++++++++++++ mrp_bom_note/views/mrp_bom_view.xml | 21 ++++++++++++++ 8 files changed, 215 insertions(+) create mode 100644 mrp_bom_note/README.rst create mode 100644 mrp_bom_note/__init__.py create mode 100644 mrp_bom_note/__openerp__.py create mode 100644 mrp_bom_note/i18n/es.po create mode 100644 mrp_bom_note/i18n/mrp_bom_notes.pot create mode 100644 mrp_bom_note/models/__init__.py create mode 100644 mrp_bom_note/models/mrp_bom.py create mode 100644 mrp_bom_note/views/mrp_bom_view.xml diff --git a/mrp_bom_note/README.rst b/mrp_bom_note/README.rst new file mode 100644 index 000000000..009b98451 --- /dev/null +++ b/mrp_bom_note/README.rst @@ -0,0 +1,8 @@ +MRP - BoM notes +=============== + +This module performs the following: + +1.- Creates the new field NOTES in MRP BoM list. + +2.- Creates the new field NOTES in MRP production, of type related with MRP BoM List. diff --git a/mrp_bom_note/__init__.py b/mrp_bom_note/__init__.py new file mode 100644 index 000000000..c58ee95de --- /dev/null +++ b/mrp_bom_note/__init__.py @@ -0,0 +1,18 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## +from . import models diff --git a/mrp_bom_note/__openerp__.py b/mrp_bom_note/__openerp__.py new file mode 100644 index 000000000..581ad51cc --- /dev/null +++ b/mrp_bom_note/__openerp__.py @@ -0,0 +1,37 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## + +{ + "name": "MRP BoM Notes", + "version": "1.0", + "author": "OdooMRP team", + "website": "http://www.odoomrp.com", + "contributors": [ + "Oihane Crucelaegui ", + "Pedro M. Baeza ", + "Ana Juaristi " + ], + "category": "Tools", + "depends": [ + "mrp", + ], + "data": [ + "views/mrp_bom_view.xml", + ], + "installable": True +} diff --git a/mrp_bom_note/i18n/es.po b/mrp_bom_note/i18n/es.po new file mode 100644 index 000000000..a36ca108c --- /dev/null +++ b/mrp_bom_note/i18n/es.po @@ -0,0 +1,44 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-11-05 11:53+0000\n" +"PO-Revision-Date: 2014-11-05 12:54+0100\n" +"Last-Translator: Alfredo \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" + +#. module: mrp_bom_note +#: model:ir.model,name:mrp_bom_note.model_mrp_bom +msgid "Bill of Material" +msgstr "Lista de material" + +#. module: mrp_bom_note +#: view:mrp.bom:mrp_bom_note.mrp_bom_form_view_inh_note +msgid "Components" +msgstr "Componentes" + +#. module: mrp_bom_note +#: view:mrp.production:mrp_bom_note.mrp_production_form_view_inh_note +msgid "Extra Information" +msgstr "Información extra" + +#. module: mrp_bom_note +#: model:ir.model,name:mrp_bom_note.model_mrp_production +msgid "Manufacturing Order" +msgstr "Órden de producción" + +#. module: mrp_bom_note +#: view:mrp.bom:mrp_bom_note.mrp_bom_form_view_inh_note +#: field:mrp.bom,notes:0 +#: view:mrp.production:mrp_bom_note.mrp_production_form_view_inh_note +msgid "Notes" +msgstr "Notas" + diff --git a/mrp_bom_note/i18n/mrp_bom_notes.pot b/mrp_bom_note/i18n/mrp_bom_notes.pot new file mode 100644 index 000000000..eef730ab2 --- /dev/null +++ b/mrp_bom_note/i18n/mrp_bom_notes.pot @@ -0,0 +1,44 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-11-05 11:53+0000\n" +"PO-Revision-Date: 2014-11-05 11:53+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: mrp_bom_note +#: model:ir.model,name:mrp_bom_note.model_mrp_bom +msgid "Bill of Material" +msgstr "" + +#. module: mrp_bom_note +#: view:mrp.bom:mrp_bom_note.mrp_bom_form_view_inh_note +msgid "Components" +msgstr "" + +#. module: mrp_bom_note +#: view:mrp.production:mrp_bom_note.mrp_production_form_view_inh_note +msgid "Extra Information" +msgstr "" + +#. module: mrp_bom_note +#: model:ir.model,name:mrp_bom_note.model_mrp_production +msgid "Manufacturing Order" +msgstr "" + +#. module: mrp_bom_note +#: view:mrp.bom:mrp_bom_note.mrp_bom_form_view_inh_note +#: field:mrp.bom,notes:0 +#: view:mrp.production:mrp_bom_note.mrp_production_form_view_inh_note +msgid "Notes" +msgstr "" + diff --git a/mrp_bom_note/models/__init__.py b/mrp_bom_note/models/__init__.py new file mode 100644 index 000000000..505660865 --- /dev/null +++ b/mrp_bom_note/models/__init__.py @@ -0,0 +1,18 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## +from . import mrp_bom diff --git a/mrp_bom_note/models/mrp_bom.py b/mrp_bom_note/models/mrp_bom.py new file mode 100644 index 000000000..ed2af86cf --- /dev/null +++ b/mrp_bom_note/models/mrp_bom.py @@ -0,0 +1,25 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## + +from openerp import models, fields + + +class MrpBom(models.Model): + _inherit = 'mrp.bom' + + notes = fields.Html() diff --git a/mrp_bom_note/views/mrp_bom_view.xml b/mrp_bom_note/views/mrp_bom_view.xml new file mode 100644 index 000000000..d8938cd61 --- /dev/null +++ b/mrp_bom_note/views/mrp_bom_view.xml @@ -0,0 +1,21 @@ + + + + + + mrp.bom.form.view.inh.notes + mrp.bom + + + + + + + + + + + + + + From 57db2a901afe8a5b0c80c9dab7d2370c18e656a2 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 25 Mar 2015 21:35:06 +0100 Subject: [PATCH 2/5] [IMP] Expand AUTHORS --- mrp_bom_note/__openerp__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mrp_bom_note/__openerp__.py b/mrp_bom_note/__openerp__.py index 581ad51cc..9e4d26fa8 100644 --- a/mrp_bom_note/__openerp__.py +++ b/mrp_bom_note/__openerp__.py @@ -19,7 +19,9 @@ { "name": "MRP BoM Notes", "version": "1.0", - "author": "OdooMRP team", + "author": "OdooMRP team," + "AvanzOSC," + "Serv. Tecnol. Avanzados - Pedro M. Baeza", "website": "http://www.odoomrp.com", "contributors": [ "Oihane Crucelaegui ", From e5bd8df40b93e8921c43a4547c3d00596d556a0b Mon Sep 17 00:00:00 2001 From: oihane Date: Mon, 27 Apr 2015 09:33:10 +0200 Subject: [PATCH 3/5] [MOD] Changed email --- mrp_bom_note/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrp_bom_note/__openerp__.py b/mrp_bom_note/__openerp__.py index 9e4d26fa8..c88f44cd2 100644 --- a/mrp_bom_note/__openerp__.py +++ b/mrp_bom_note/__openerp__.py @@ -26,7 +26,7 @@ "contributors": [ "Oihane Crucelaegui ", "Pedro M. Baeza ", - "Ana Juaristi " + "Ana Juaristi " ], "category": "Tools", "depends": [ From fcdb889001ab4760de80e6f50b7ad48283f78d36 Mon Sep 17 00:00:00 2001 From: oihane Date: Thu, 18 Jun 2015 17:36:37 +0200 Subject: [PATCH 4/5] [IMP] Added OCA required README and info on __openerp__.py --- mrp_bom_note/README.rst | 37 +++++++++++++++++++++++++++++++++ mrp_bom_note/__init__.py | 16 ++------------ mrp_bom_note/__openerp__.py | 7 ++++--- mrp_bom_note/models/__init__.py | 16 ++------------ mrp_bom_note/models/mrp_bom.py | 15 +------------ 5 files changed, 46 insertions(+), 45 deletions(-) diff --git a/mrp_bom_note/README.rst b/mrp_bom_note/README.rst index 009b98451..f6c0749bf 100644 --- a/mrp_bom_note/README.rst +++ b/mrp_bom_note/README.rst @@ -1,3 +1,6 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 + MRP - BoM notes =============== @@ -6,3 +9,37 @@ This module performs the following: 1.- Creates the new field NOTES in MRP BoM list. 2.- Creates the new field NOTES in MRP production, of type related with MRP BoM List. + +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 +`here `_. + + +Credits +======= + +Contributors +------------ + +* Oihane Crucelaegui +* Pedro M. Baeza +* Ana Juaristi + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +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. + +To contribute to this module, please visit http://odoo-community.org. \ No newline at end of file diff --git a/mrp_bom_note/__init__.py b/mrp_bom_note/__init__.py index c58ee95de..054c8853d 100644 --- a/mrp_bom_note/__init__.py +++ b/mrp_bom_note/__init__.py @@ -1,18 +1,6 @@ # -*- encoding: utf-8 -*- ############################################################################## -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# +# For copyright and license notices, see __openerp__.py file in root directory ############################################################################## + from . import models diff --git a/mrp_bom_note/__openerp__.py b/mrp_bom_note/__openerp__.py index c88f44cd2..c4fa77b98 100644 --- a/mrp_bom_note/__openerp__.py +++ b/mrp_bom_note/__openerp__.py @@ -17,16 +17,17 @@ ############################################################################## { - "name": "MRP BoM Notes", + "name": "MRP - BoM Notes", "version": "1.0", "author": "OdooMRP team," "AvanzOSC," - "Serv. Tecnol. Avanzados - Pedro M. Baeza", + "Serv. Tecnol. Avanzados - Pedro M. Baeza, " + "Odoo Community Association (OCA)", "website": "http://www.odoomrp.com", "contributors": [ "Oihane Crucelaegui ", "Pedro M. Baeza ", - "Ana Juaristi " + "Ana Juaristi ", ], "category": "Tools", "depends": [ diff --git a/mrp_bom_note/models/__init__.py b/mrp_bom_note/models/__init__.py index 505660865..d4e8e15bd 100644 --- a/mrp_bom_note/models/__init__.py +++ b/mrp_bom_note/models/__init__.py @@ -1,18 +1,6 @@ # -*- encoding: utf-8 -*- ############################################################################## -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# +# For copyright and license notices, see __openerp__.py file in root directory ############################################################################## + from . import mrp_bom diff --git a/mrp_bom_note/models/mrp_bom.py b/mrp_bom_note/models/mrp_bom.py index ed2af86cf..9824b375a 100644 --- a/mrp_bom_note/models/mrp_bom.py +++ b/mrp_bom_note/models/mrp_bom.py @@ -1,19 +1,6 @@ # -*- encoding: utf-8 -*- ############################################################################## -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# +# For copyright and license notices, see __openerp__.py file in root directory ############################################################################## from openerp import models, fields From 11b6f4d5c75eb698d330af9d6cf959c2fc7a2a2e Mon Sep 17 00:00:00 2001 From: oihane Date: Thu, 18 Jun 2015 18:15:53 +0200 Subject: [PATCH 5/5] [IMP] Updated README --- mrp_bom_note/README.rst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mrp_bom_note/README.rst b/mrp_bom_note/README.rst index f6c0749bf..510cac42b 100644 --- a/mrp_bom_note/README.rst +++ b/mrp_bom_note/README.rst @@ -4,11 +4,8 @@ MRP - BoM notes =============== -This module performs the following: +This module creates in BoM a new field to add notes -1.- Creates the new field NOTES in MRP BoM list. - -2.- Creates the new field NOTES in MRP production, of type related with MRP BoM List. Bug Tracker ===========