diff --git a/mrp_bom_note/README.rst b/mrp_bom_note/README.rst new file mode 100644 index 000000000..8ff580d0e --- /dev/null +++ b/mrp_bom_note/README.rst @@ -0,0 +1,65 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +========================== +Notes in Bill of Materials +========================== +This module creates in BoM a new field to add notes + +Installation +============ +To install this module, you need to install mrp application. + +Configuration +============= +No configuration required. + + +Usage +===== +1. Go to Manufacturing > Master Data > Bill of Materials +2. Edit an existing BoM. +3. 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/11.0 + +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 +======= +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* Oihane Crucelaegui +* Pedro M. Baeza +* Ana Juaristi +* Bima Wijaya +* Agung Rachmatullah + +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 https://odoo-community.org. diff --git a/mrp_bom_note/__init__.py b/mrp_bom_note/__init__.py new file mode 100644 index 000000000..1f92abd7d --- /dev/null +++ b/mrp_bom_note/__init__.py @@ -0,0 +1,4 @@ +# © 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/__manifest__.py b/mrp_bom_note/__manifest__.py new file mode 100644 index 000000000..bf696b245 --- /dev/null +++ b/mrp_bom_note/__manifest__.py @@ -0,0 +1,21 @@ +# © 2015 Oihane Crucelaegui - AvanzOSC +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +{ + "name": "Notes in Bill of Materials", + "version": "11.0.1.0.0", + "license": "AGPL-3", + "author": "OdooMRP team," + "AvanzOSC," + "Serv. Tecnol. Avanzados - Pedro M. Baeza, " + "Odoo Community Association (OCA)", + "website": "http://www.odoomrp.com", + "category": "Tools", + "depends": [ + "mrp", + ], + "data": [ + "views/mrp_bom_view.xml", + ], + 'installable': True +} diff --git a/mrp_bom_note/i18n/de.po b/mrp_bom_note/i18n/de.po new file mode 100644 index 000000000..9988dc302 --- /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: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/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 "" + +#. 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 new file mode 100644 index 000000000..67ec99c5e --- /dev/null +++ b/mrp_bom_note/i18n/es.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\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 +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 "Notas" diff --git a/mrp_bom_note/i18n/fi.po b/mrp_bom_note/i18n/fi.po new file mode 100644 index 000000000..e2b476226 --- /dev/null +++ b/mrp_bom_note/i18n/fi.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fi\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 "" + +#. 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 "Huomautukset" diff --git a/mrp_bom_note/i18n/fr.po b/mrp_bom_note/i18n/fr.po new file mode 100644 index 000000000..bfd0ba513 --- /dev/null +++ b/mrp_bom_note/i18n/fr.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +# Translators: +# Quentin THEURET , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: Quentin THEURET , 2017\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\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 "" + +#. 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 "Notes" diff --git a/mrp_bom_note/i18n/gl.po b/mrp_bom_note/i18n/gl.po new file mode 100644 index 000000000..6edb357e5 --- /dev/null +++ b/mrp_bom_note/i18n/gl.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: gl\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 "" + +#. 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/hr.po b/mrp_bom_note/i18n/hr.po new file mode 100644 index 000000000..071cf1588 --- /dev/null +++ b/mrp_bom_note/i18n/hr.po @@ -0,0 +1,31 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +# Translators: +# OCA Transbot , 2017 +# Bole , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-12 03:48+0000\n" +"PO-Revision-Date: 2018-02-12 03:48+0000\n" +"Last-Translator: Bole , 2018\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: mrp_bom_note +#: model:ir.model,name:mrp_bom_note.model_mrp_bom +msgid "Bill of Material" +msgstr "Sastavnica" + +#. 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 "Bilješke" diff --git a/mrp_bom_note/i18n/hr_HR.po b/mrp_bom_note/i18n/hr_HR.po new file mode 100644 index 000000000..9f8aea861 --- /dev/null +++ b/mrp_bom_note/i18n/hr_HR.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/hr_HR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr_HR\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\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 "Bilješke" diff --git a/mrp_bom_note/i18n/it.po b/mrp_bom_note/i18n/it.po new file mode 100644 index 000000000..48519235e --- /dev/null +++ b/mrp_bom_note/i18n/it.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\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 "" + +#. 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 "Note" diff --git a/mrp_bom_note/i18n/lt.po b/mrp_bom_note/i18n/lt.po new file mode 100644 index 000000000..3f9f1e42a --- /dev/null +++ b/mrp_bom_note/i18n/lt.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +# Translators: +# Viktoras Norkus , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-16 08:02+0000\n" +"PO-Revision-Date: 2018-01-16 08:02+0000\n" +"Last-Translator: Viktoras Norkus , 2018\n" +"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: lt\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: mrp_bom_note +#: model:ir.model,name:mrp_bom_note.model_mrp_bom +msgid "Bill of Material" +msgstr "Sąskaita už žaliavas" + +#. 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 "Užrašai" 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/i18n/nl_NL.po b/mrp_bom_note/i18n/nl_NL.po new file mode 100644 index 000000000..e9506c142 --- /dev/null +++ b/mrp_bom_note/i18n/nl_NL.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: Peter Hageman , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl_NL\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 "" + +#. 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 "Notities" diff --git a/mrp_bom_note/i18n/pt_BR.po b/mrp_bom_note/i18n/pt_BR.po new file mode 100644 index 000000000..4cd9a9037 --- /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: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/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 "" + +#. 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/ro.po b/mrp_bom_note/i18n/ro.po new file mode 100644 index 000000000..87cd1de86 --- /dev/null +++ b/mrp_bom_note/i18n/ro.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ro\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\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 "Note" diff --git a/mrp_bom_note/i18n/sl.po b/mrp_bom_note/i18n/sl.po new file mode 100644 index 000000000..9e1e9a7cd --- /dev/null +++ b/mrp_bom_note/i18n/sl.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\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 "Opombe" diff --git a/mrp_bom_note/i18n/tr.po b/mrp_bom_note/i18n/tr.po new file mode 100644 index 000000000..bca95b94a --- /dev/null +++ b/mrp_bom_note/i18n/tr.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: tr\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 "" + +#. 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 "Notlar" diff --git a/mrp_bom_note/i18n/tr_TR.po b/mrp_bom_note/i18n/tr_TR.po new file mode 100644 index 000000000..c8f5fa869 --- /dev/null +++ b/mrp_bom_note/i18n/tr_TR.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_bom_note +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/tr_TR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: tr_TR\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 "Notlar" diff --git a/mrp_bom_note/i18n/zh_CN.po b/mrp_bom_note/i18n/zh_CN.po new file mode 100644 index 000000000..d11fac1a7 --- /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: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-28 03:44+0000\n" +"PO-Revision-Date: 2017-11-28 03:44+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/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 new file mode 100644 index 000000000..f703f84eb --- /dev/null +++ b/mrp_bom_note/models/__init__.py @@ -0,0 +1,4 @@ +# © 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 new file mode 100644 index 000000000..fe08e5115 --- /dev/null +++ b/mrp_bom_note/models/mrp_bom.py @@ -0,0 +1,10 @@ +# © 2015 Oihane Crucelaegui - AvanzOSC +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from odoo import models, fields + + +class MrpBom(models.Model): + _inherit = 'mrp.bom' + + notes = fields.Html() diff --git a/mrp_bom_note/tests/__init__.py b/mrp_bom_note/tests/__init__.py new file mode 100644 index 000000000..344cedcdb --- /dev/null +++ b/mrp_bom_note/tests/__init__.py @@ -0,0 +1,4 @@ +# © 2018 Agung Rachmatullah +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import test_mrp_bom_note \ No newline at end of file diff --git a/mrp_bom_note/tests/test_mrp_bom_note.py b/mrp_bom_note/tests/test_mrp_bom_note.py new file mode 100644 index 000000000..4b04606c2 --- /dev/null +++ b/mrp_bom_note/tests/test_mrp_bom_note.py @@ -0,0 +1,77 @@ +# © 2018 Agung Rachmatullah +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo.tests.common import TransactionCase + + +class TestMrpBomNote(TransactionCase): + def setUp(self): + super(TestMrpBomNote, self).setUp() + self.product_t = self.env['product.template'] + self.product_p = self.env['product.product'] + self.bom = self.env['mrp.bom'] + + def test_notes(self): + uom_unit = self.env.ref('product.product_uom_unit') + product_t_fg = self.product_t.create({ + 'name': 'Chair', + 'type': 'product', + 'uom_id': uom_unit.id, + 'uom_po_id': uom_unit.id, + }) + product_t_1 = self.product_t.create({ + 'name': 'Log 1', + 'type': 'product', + 'uom_id': uom_unit.id, + 'uom_po_id': uom_unit.id, + }) + product_t_2 = self.product_t.create({ + 'name': 'Log 2', + 'type': 'product', + 'uom_id': uom_unit.id, + 'uom_po_id': uom_unit.id, + }) + product_t_3 = self.product_t.create({ + 'name': 'Log 3', + 'type': 'product', + 'uom_id': uom_unit.id, + 'uom_po_id': uom_unit.id, + }) + product_fg = self.product_p.create({ + 'product_tmpl_id': product_t_fg.id + }) + product_1 = self.product_p.create({ + 'product_tmpl_id': product_t_1.id + }) + product_2 = self.product_p.create({ + 'product_tmpl_id': product_t_2.id + }) + product_3 = self.product_p.create({ + 'product_tmpl_id': product_t_3.id + }) + BoM1 = self.bom.create({ + 'product_id': product_fg.id, + 'product_tmpl_id': product_fg.product_tmpl_id.id, + 'product_uom_id': uom_unit.id, + 'product_qty': 1.0, + 'type': 'normal', + 'move_raw_ids': [ + (0, 0, { + 'product_id': product_1.id, + 'product_qty': 4, + }), + (0, 0, { + 'product_id': product_2.id, + 'product_qty': 2, + }), + (0, 0, { + 'product_id': product_3.id, + 'product_qty': 2, + }) + ] + }) + + BoM1.write({ + 'notes': '

Test

' + }) + self.assertEqual(BoM1.notes, '

Test

') 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..0e1be55b6 --- /dev/null +++ b/mrp_bom_note/views/mrp_bom_view.xml @@ -0,0 +1,17 @@ + + + + mrp.bom.notes.form + mrp.bom + + + + + + + + + + + +