From b637759a5ed1b97d80204cb3df035671b09d3b96 Mon Sep 17 00:00:00 2001 From: oihane Date: Thu, 5 Mar 2015 12:18:18 +0100 Subject: [PATCH] [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 + + + + + + + + + + +