From 0687eaa2b4585e5ac8ec773dc01d971dc0e52db8 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_production_note/README.rst | 2 + mrp_production_note/__init__.py | 19 ++++++++++ mrp_production_note/__openerp__.py | 37 +++++++++++++++++++ mrp_production_note/i18n/es.po | 28 ++++++++++++++ .../i18n/mrp_production_notes.pot | 28 ++++++++++++++ mrp_production_note/models/__init__.py | 19 ++++++++++ mrp_production_note/models/mrp_production.py | 25 +++++++++++++ .../views/mrp_production_view.xml | 17 +++++++++ 8 files changed, 175 insertions(+) create mode 100644 mrp_production_note/README.rst create mode 100644 mrp_production_note/__init__.py create mode 100644 mrp_production_note/__openerp__.py create mode 100644 mrp_production_note/i18n/es.po create mode 100644 mrp_production_note/i18n/mrp_production_notes.pot create mode 100644 mrp_production_note/models/__init__.py create mode 100644 mrp_production_note/models/mrp_production.py create mode 100644 mrp_production_note/views/mrp_production_view.xml diff --git a/mrp_production_note/README.rst b/mrp_production_note/README.rst new file mode 100644 index 000000000..ec2bdd51e --- /dev/null +++ b/mrp_production_note/README.rst @@ -0,0 +1,2 @@ +This module adds remark field to: + * Manufacturing orders diff --git a/mrp_production_note/__init__.py b/mrp_production_note/__init__.py new file mode 100644 index 000000000..7fc7c09f9 --- /dev/null +++ b/mrp_production_note/__init__.py @@ -0,0 +1,19 @@ +# -*- 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 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_production_note/__openerp__.py b/mrp_production_note/__openerp__.py new file mode 100644 index 000000000..7cfe73aac --- /dev/null +++ b/mrp_production_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 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": "Notes in production orders", + "version": "1.0", + "depends": [ + "mrp", + ], + "author": "OdooMRP team", + "website": "http://www.odoomrp.com", + "contributors": [ + "Oihane Crucelaegui ", + "Pedro M. Baeza ", + "Ana Juaristi " + ], + "category": "Tools", + "data": [ + "views/mrp_production_view.xml", + ], + "installable": True, +} diff --git a/mrp_production_note/i18n/es.po b/mrp_production_note/i18n/es.po new file mode 100644 index 000000000..d49c7defc --- /dev/null +++ b/mrp_production_note/i18n/es.po @@ -0,0 +1,28 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_note +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0rc1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-08-04 08:51+0000\n" +"PO-Revision-Date: 2014-08-04 10:52+0100\n" +"Last-Translator: Oihane \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_production_note +#: model:ir.model,name:mrp_production_note.model_mrp_production +msgid "Manufacturing Order" +msgstr "Órden de producción" + +#. module: mrp_production_note +#: view:mrp.production:0 +#: field:mrp.production,notes:0 +msgid "Notes" +msgstr "Notas" + diff --git a/mrp_production_note/i18n/mrp_production_notes.pot b/mrp_production_note/i18n/mrp_production_notes.pot new file mode 100644 index 000000000..bd1417aac --- /dev/null +++ b/mrp_production_note/i18n/mrp_production_notes.pot @@ -0,0 +1,28 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_note +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0rc1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-08-04 08:50+0000\n" +"PO-Revision-Date: 2014-08-04 08:50+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_production_note +#: model:ir.model,name:mrp_production_note.model_mrp_production +msgid "Manufacturing Order" +msgstr "" + +#. module: mrp_production_note +#: view:mrp.production:0 +#: field:mrp.production,notes:0 +msgid "Notes" +msgstr "" + diff --git a/mrp_production_note/models/__init__.py b/mrp_production_note/models/__init__.py new file mode 100644 index 000000000..a670e4677 --- /dev/null +++ b/mrp_production_note/models/__init__.py @@ -0,0 +1,19 @@ +# -*- 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 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_production diff --git a/mrp_production_note/models/mrp_production.py b/mrp_production_note/models/mrp_production.py new file mode 100644 index 000000000..3879571de --- /dev/null +++ b/mrp_production_note/models/mrp_production.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 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 MrpProduction(models.Model): + _inherit = 'mrp.production' + + notes = fields.Html() diff --git a/mrp_production_note/views/mrp_production_view.xml b/mrp_production_note/views/mrp_production_view.xml new file mode 100644 index 000000000..fa719bfc7 --- /dev/null +++ b/mrp_production_note/views/mrp_production_view.xml @@ -0,0 +1,17 @@ + + + + + mrp.production.form + mrp.production + + + + + + + + + + + From 3d8cd53d97946338178d3a7eff12460eb8b32373 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_production_note/__openerp__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mrp_production_note/__openerp__.py b/mrp_production_note/__openerp__.py index 7cfe73aac..c133eb98e 100644 --- a/mrp_production_note/__openerp__.py +++ b/mrp_production_note/__openerp__.py @@ -22,7 +22,9 @@ "depends": [ "mrp", ], - "author": "OdooMRP team", + "author": "OdooMRP team," + "AvanzOSC," + "Serv. Tecnol. Avanzados - Pedro M. Baeza", "website": "http://www.odoomrp.com", "contributors": [ "Oihane Crucelaegui ", From 6d48a170df33e9af48891ab0091d3ca60bbde720 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_production_note/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrp_production_note/__openerp__.py b/mrp_production_note/__openerp__.py index c133eb98e..75e4d7697 100644 --- a/mrp_production_note/__openerp__.py +++ b/mrp_production_note/__openerp__.py @@ -29,7 +29,7 @@ "contributors": [ "Oihane Crucelaegui ", "Pedro M. Baeza ", - "Ana Juaristi " + "Ana Juaristi " ], "category": "Tools", "data": [ From fd6120777cd9018f4405eab65102bfd733a5118a Mon Sep 17 00:00:00 2001 From: oihane Date: Mon, 22 Jun 2015 10:14:41 +0200 Subject: [PATCH 4/5] [IMP] Adecuate to OCA --- mrp_production_note/README.rst | 44 +++++++++++++++++++- mrp_production_note/__init__.py | 15 +------ mrp_production_note/__openerp__.py | 18 ++++---- mrp_production_note/models/__init__.py | 15 +------ mrp_production_note/models/mrp_production.py | 15 +------ 5 files changed, 55 insertions(+), 52 deletions(-) diff --git a/mrp_production_note/README.rst b/mrp_production_note/README.rst index ec2bdd51e..a9d2a2b34 100644 --- a/mrp_production_note/README.rst +++ b/mrp_production_note/README.rst @@ -1,2 +1,42 @@ -This module adds remark field to: - * Manufacturing orders +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 + +Notes in production orders +========================== + +This module creates in production orders a new field to add notes + + +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_production_note/__init__.py b/mrp_production_note/__init__.py index 7fc7c09f9..054c8853d 100644 --- a/mrp_production_note/__init__.py +++ b/mrp_production_note/__init__.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 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_production_note/__openerp__.py b/mrp_production_note/__openerp__.py index 75e4d7697..1cb387d89 100644 --- a/mrp_production_note/__openerp__.py +++ b/mrp_production_note/__openerp__.py @@ -19,19 +19,21 @@ { "name": "Notes in production orders", "version": "1.0", - "depends": [ - "mrp", - ], - "author": "OdooMRP team," - "AvanzOSC," - "Serv. Tecnol. Avanzados - Pedro M. Baeza", + "category": "Tools", + "license": "AGPL-3", + "author": "OdooMRP team, " + "AvanzOSC, " + "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 ", + ], + "depends": [ + "mrp", ], - "category": "Tools", "data": [ "views/mrp_production_view.xml", ], diff --git a/mrp_production_note/models/__init__.py b/mrp_production_note/models/__init__.py index a670e4677..1edfea846 100644 --- a/mrp_production_note/models/__init__.py +++ b/mrp_production_note/models/__init__.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 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_production diff --git a/mrp_production_note/models/mrp_production.py b/mrp_production_note/models/mrp_production.py index 3879571de..c261bf3ba 100644 --- a/mrp_production_note/models/mrp_production.py +++ b/mrp_production_note/models/mrp_production.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 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 000905504d52d23aec32aba12934150cce6c53c2 Mon Sep 17 00:00:00 2001 From: oihane Date: Tue, 23 Jun 2015 11:35:52 +0200 Subject: [PATCH 5/5] [IMP] README minor changes --- mrp_production_note/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrp_production_note/README.rst b/mrp_production_note/README.rst index a9d2a2b34..c938f77c5 100644 --- a/mrp_production_note/README.rst +++ b/mrp_production_note/README.rst @@ -4,7 +4,7 @@ Notes in production orders ========================== -This module creates in production orders a new field to add notes +This module creates in production orders a new field to add notes in rich text format Bug Tracker