Merge PR #265 into 11.0

Signed-off-by lreficent
This commit is contained in:
OCA-git-bot
2019-10-14 07:56:11 +00:00
25 changed files with 727 additions and 0 deletions

65
mrp_bom_note/README.rst Normal file
View File

@@ -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 <https://github.com/OCA/manufacture/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 <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_bom_note%0Aversion:%209.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Credits
=======
Images
------
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
Contributors
------------
* Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
* Ana Juaristi <anajuaristi@avanzosc.es>
* Bima Wijaya <bimajatiwijaya@gmail.com>
* Agung Rachmatullah <agung.rachmatullah@ymail.com>
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.

4
mrp_bom_note/__init__.py Normal file
View File

@@ -0,0 +1,4 @@
# © 2015 Oihane Crucelaegui - AvanzOSC
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from . import models

View File

@@ -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
}

30
mrp_bom_note/i18n/de.po Normal file
View File

@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_note
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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"

30
mrp_bom_note/i18n/es.po Normal file
View File

@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_note
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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"

30
mrp_bom_note/i18n/fi.po Normal file
View File

@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_note
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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"

30
mrp_bom_note/i18n/fr.po Normal file
View File

@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_note
#
# Translators:
# Quentin THEURET <odoo@kerpeo.com>, 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 <odoo@kerpeo.com>, 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"

30
mrp_bom_note/i18n/gl.po Normal file
View File

@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_note
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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"

31
mrp_bom_note/i18n/hr.po Normal file
View File

@@ -0,0 +1,31 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_note
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Bole <bole@dajmi5.com>, 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 <bole@dajmi5.com>, 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"

View File

@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_note
#
# Translators:
# Bole <bole@dajmi5.com>, 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 <bole@dajmi5.com>, 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"

30
mrp_bom_note/i18n/it.po Normal file
View File

@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_note
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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"

30
mrp_bom_note/i18n/lt.po Normal file
View File

@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_note
#
# Translators:
# Viktoras Norkus <viktoras@bmx.lt>, 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 <viktoras@bmx.lt>, 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"

View File

@@ -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 ""

View File

@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_note
#
# Translators:
# Peter Hageman <hageman.p@gmail.com>, 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 <hageman.p@gmail.com>, 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"

View File

@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_note
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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"

30
mrp_bom_note/i18n/ro.po Normal file
View File

@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_note
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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"

30
mrp_bom_note/i18n/sl.po Normal file
View File

@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_note
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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"

30
mrp_bom_note/i18n/tr.po Normal file
View File

@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_note
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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"

View File

@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_note
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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"

View File

@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_note
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 "备注"

View File

@@ -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

View File

@@ -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()

View File

@@ -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

View File

@@ -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': '<p>Test</p>'
})
self.assertEqual(BoM1.notes, '<p>Test</p>')

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="mrp_bom_view_notes_form" model="ir.ui.view">
<field name="name">mrp.bom.notes.form</field>
<field name="model">mrp.bom</field>
<field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
<field name="arch" type="xml">
<notebook position="inside">
<page string="Notes">
<group>
<field name="notes" nolabel="1" />
</group>
</page>
</notebook>
</field>
</record>
</odoo>