diff --git a/mrp_production_note/README.rst b/mrp_production_note/README.rst new file mode 100644 index 000000000..c938f77c5 --- /dev/null +++ b/mrp_production_note/README.rst @@ -0,0 +1,42 @@ +.. 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 in rich text format + + +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 new file mode 100644 index 000000000..054c8853d --- /dev/null +++ b/mrp_production_note/__init__.py @@ -0,0 +1,6 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# 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 new file mode 100644 index 000000000..1cb387d89 --- /dev/null +++ b/mrp_production_note/__openerp__.py @@ -0,0 +1,41 @@ +# -*- 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", + "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 ", + ], + "depends": [ + "mrp", + ], + "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..1edfea846 --- /dev/null +++ b/mrp_production_note/models/__init__.py @@ -0,0 +1,6 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# 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 new file mode 100644 index 000000000..c261bf3ba --- /dev/null +++ b/mrp_production_note/models/mrp_production.py @@ -0,0 +1,12 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# For copyright and license notices, see __openerp__.py file in root directory +############################################################################## + +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 + + + + + + + + + + +