From d17682ee20abf35d1aa055f9718a947a0bed3fd6 Mon Sep 17 00:00:00 2001 From: Oihane Crucelaegui Date: Thu, 14 Jan 2016 19:24:56 +0100 Subject: [PATCH] [MIG] Make mrp_bom_note installable in v9 --- mrp_bom_note/README.rst | 19 +++++++++---- mrp_bom_note/__init__.py | 7 +++-- mrp_bom_note/__openerp__.py | 26 +++++------------- mrp_bom_note/i18n/de.po | 30 +++++++++++++++++++++ mrp_bom_note/i18n/es.po | 41 +++++++++-------------------- mrp_bom_note/i18n/pt_BR.po | 30 +++++++++++++++++++++ mrp_bom_note/i18n/zh_CN.po | 30 +++++++++++++++++++++ mrp_bom_note/models/__init__.py | 7 +++-- mrp_bom_note/models/mrp_bom.py | 7 +++-- mrp_bom_note/views/mrp_bom_view.xml | 34 +++++++++++------------- 10 files changed, 147 insertions(+), 84 deletions(-) create mode 100644 mrp_bom_note/i18n/de.po create mode 100644 mrp_bom_note/i18n/pt_BR.po create mode 100644 mrp_bom_note/i18n/zh_CN.po diff --git a/mrp_bom_note/README.rst b/mrp_bom_note/README.rst index 510cac42b..3b465ed1c 100644 --- a/mrp_bom_note/README.rst +++ b/mrp_bom_note/README.rst @@ -1,11 +1,21 @@ .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg :alt: License: AGPL-3 -MRP - BoM notes -=============== +========================== +Notes in Bill of Materials +========================== This module creates in BoM a new field to add notes +Usage +===== + +* Go to Manufacturing > Products > Bill of Materials +* Edit an existing BoM and fill in the Notes field on tab Notes + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/129/9.0 Bug Tracker =========== @@ -13,8 +23,7 @@ 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 `_. - +`here `_. Credits ======= @@ -39,4 +48,4 @@ 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 +To contribute to this module, please visit http://odoo-community.org. diff --git a/mrp_bom_note/__init__.py b/mrp_bom_note/__init__.py index 054c8853d..6ea76f9a8 100644 --- a/mrp_bom_note/__init__.py +++ b/mrp_bom_note/__init__.py @@ -1,6 +1,5 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# For copyright and license notices, see __openerp__.py file in root directory -############################################################################## +# -*- coding: utf-8 -*- +# © 2015 Oihane Crucelaegui - AvanzOSC +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from . import models diff --git a/mrp_bom_note/__openerp__.py b/mrp_bom_note/__openerp__.py index f5af64325..7b771120f 100644 --- a/mrp_bom_note/__openerp__.py +++ b/mrp_bom_note/__openerp__.py @@ -1,24 +1,10 @@ -# -*- 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/. -# -############################################################################## +# -*- coding: utf-8 -*- +# © 2015 Oihane Crucelaegui - AvanzOSC +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html { - "name": "MRP - BoM Notes", - "version": "8.0.1.0.0", + "name": "Notes in Bill of Materials", + "version": "9.0.1.0.0", "author": "OdooMRP team," "AvanzOSC," "Serv. Tecnol. Avanzados - Pedro M. Baeza, " @@ -36,5 +22,5 @@ "data": [ "views/mrp_bom_view.xml", ], - 'installable': False + 'installable': True } diff --git a/mrp_bom_note/i18n/de.po b/mrp_bom_note/i18n/de.po new file mode 100644 index 000000000..4bd2f52bc --- /dev/null +++ b/mrp_bom_note/i18n/de.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +# Translators: +# Rudolf Schnapka , 2016 +msgid "" +msgstr "" +"Project-Id-Version: manufacture (9.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-01-19 01:38+0000\n" +"PO-Revision-Date: 2016-03-11 15:31+0000\n" +"Last-Translator: Rudolf Schnapka \n" +"Language-Team: German (http://www.transifex.com/oca/OCA-manufacture-9-0/language/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: mrp_bom_note +#: model:ir.model,name:mrp_bom_note.model_mrp_bom +msgid "Bill of Material" +msgstr "Srückliste" + +#. module: mrp_bom_note +#: model:ir.model.fields,field_description:mrp_bom_note.field_mrp_bom_notes +#: model:ir.ui.view,arch_db:mrp_bom_note.mrp_bom_view_notes_form +msgid "Notes" +msgstr "Hinweise" diff --git a/mrp_bom_note/i18n/es.po b/mrp_bom_note/i18n/es.po index a36ca108c..5b5a3eb1a 100644 --- a/mrp_bom_note/i18n/es.po +++ b/mrp_bom_note/i18n/es.po @@ -1,19 +1,21 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * mrp_bom_note -# +# * mrp_bom_note +# +# Translators: msgid "" msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" +"Project-Id-Version: manufacture (9.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" +"POT-Creation-Date: 2016-01-19 01:38+0000\n" +"PO-Revision-Date: 2016-01-18 21:23+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: Spanish (http://www.transifex.com/oca/OCA-manufacture-9-0/language/es/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: \n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: mrp_bom_note #: model:ir.model,name:mrp_bom_note.model_mrp_bom @@ -21,24 +23,7 @@ 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 +#: model:ir.model.fields,field_description:mrp_bom_note.field_mrp_bom_notes +#: model:ir.ui.view,arch_db:mrp_bom_note.mrp_bom_view_notes_form msgid "Notes" msgstr "Notas" - diff --git a/mrp_bom_note/i18n/pt_BR.po b/mrp_bom_note/i18n/pt_BR.po new file mode 100644 index 000000000..cef874008 --- /dev/null +++ b/mrp_bom_note/i18n/pt_BR.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +# Translators: +# Claudio Araujo Santos , 2016 +msgid "" +msgstr "" +"Project-Id-Version: manufacture (9.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-07-03 06:08+0000\n" +"PO-Revision-Date: 2016-07-07 19:44+0000\n" +"Last-Translator: Claudio Araujo Santos \n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-manufacture-9-0/language/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: mrp_bom_note +#: model:ir.model,name:mrp_bom_note.model_mrp_bom +msgid "Bill of Material" +msgstr "Lista de materiais" + +#. module: mrp_bom_note +#: model:ir.model.fields,field_description:mrp_bom_note.field_mrp_bom_notes +#: model:ir.ui.view,arch_db:mrp_bom_note.mrp_bom_view_notes_form +msgid "Notes" +msgstr "Notas" diff --git a/mrp_bom_note/i18n/zh_CN.po b/mrp_bom_note/i18n/zh_CN.po new file mode 100644 index 000000000..112b4f366 --- /dev/null +++ b/mrp_bom_note/i18n/zh_CN.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +# Translators: +# Jeffery Chenn , 2016 +msgid "" +msgstr "" +"Project-Id-Version: manufacture (9.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-08-07 07:44+0000\n" +"PO-Revision-Date: 2016-09-04 05:45+0000\n" +"Last-Translator: Jeffery Chenn \n" +"Language-Team: Chinese (China) (http://www.transifex.com/oca/OCA-manufacture-9-0/language/zh_CN/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: zh_CN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: mrp_bom_note +#: model:ir.model,name:mrp_bom_note.model_mrp_bom +msgid "Bill of Material" +msgstr "物料清单" + +#. module: mrp_bom_note +#: model:ir.model.fields,field_description:mrp_bom_note.field_mrp_bom_notes +#: model:ir.ui.view,arch_db:mrp_bom_note.mrp_bom_view_notes_form +msgid "Notes" +msgstr "备注" diff --git a/mrp_bom_note/models/__init__.py b/mrp_bom_note/models/__init__.py index d4e8e15bd..98e1652d7 100644 --- a/mrp_bom_note/models/__init__.py +++ b/mrp_bom_note/models/__init__.py @@ -1,6 +1,5 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# For copyright and license notices, see __openerp__.py file in root directory -############################################################################## +# -*- coding: utf-8 -*- +# © 2015 Oihane Crucelaegui - AvanzOSC +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from . import mrp_bom diff --git a/mrp_bom_note/models/mrp_bom.py b/mrp_bom_note/models/mrp_bom.py index 9824b375a..e5054c43b 100644 --- a/mrp_bom_note/models/mrp_bom.py +++ b/mrp_bom_note/models/mrp_bom.py @@ -1,7 +1,6 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# For copyright and license notices, see __openerp__.py file in root directory -############################################################################## +# -*- coding: utf-8 -*- +# © 2015 Oihane Crucelaegui - AvanzOSC +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from openerp import models, fields diff --git a/mrp_bom_note/views/mrp_bom_view.xml b/mrp_bom_note/views/mrp_bom_view.xml index d8938cd61..0e1be55b6 100644 --- a/mrp_bom_note/views/mrp_bom_view.xml +++ b/mrp_bom_note/views/mrp_bom_view.xml @@ -1,21 +1,17 @@ - - - - - mrp.bom.form.view.inh.notes - mrp.bom - - - - - - - - + + + mrp.bom.notes.form + mrp.bom + + + + + + + - - - - - + + + +