mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
Merge pull request #33 from oihane/8.0-bom_notes
[ADD] New module <mrp_bom_note>
This commit is contained in:
42
mrp_bom_note/README.rst
Normal file
42
mrp_bom_note/README.rst
Normal file
@@ -0,0 +1,42 @@
|
||||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
|
||||
:alt: License: AGPL-3
|
||||
|
||||
MRP - BoM notes
|
||||
===============
|
||||
|
||||
This module creates in BoM a new field to add notes
|
||||
|
||||
|
||||
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:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
* Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>
|
||||
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
|
||||
* Ana Juaristi <anajuaristi@avanzosc.es>
|
||||
|
||||
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.
|
||||
6
mrp_bom_note/__init__.py
Normal file
6
mrp_bom_note/__init__.py
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- encoding: utf-8 -*-
|
||||
##############################################################################
|
||||
# For copyright and license notices, see __openerp__.py file in root directory
|
||||
##############################################################################
|
||||
|
||||
from . import models
|
||||
40
mrp_bom_note/__openerp__.py
Normal file
40
mrp_bom_note/__openerp__.py
Normal file
@@ -0,0 +1,40 @@
|
||||
# -*- 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/.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
{
|
||||
"name": "MRP - BoM Notes",
|
||||
"version": "1.0",
|
||||
"author": "OdooMRP team,"
|
||||
"AvanzOSC,"
|
||||
"Serv. Tecnol. Avanzados - Pedro M. Baeza, "
|
||||
"Odoo Community Association (OCA)",
|
||||
"website": "http://www.odoomrp.com",
|
||||
"contributors": [
|
||||
"Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>",
|
||||
"Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>",
|
||||
"Ana Juaristi <anajuaristi@avanzosc.es>",
|
||||
],
|
||||
"category": "Tools",
|
||||
"depends": [
|
||||
"mrp",
|
||||
],
|
||||
"data": [
|
||||
"views/mrp_bom_view.xml",
|
||||
],
|
||||
"installable": True
|
||||
}
|
||||
44
mrp_bom_note/i18n/es.po
Normal file
44
mrp_bom_note/i18n/es.po
Normal 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 12:54+0100\n"
|
||||
"Last-Translator: Alfredo <alfredodelafuente@avanzosc.com>\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_bom_note
|
||||
#: model:ir.model,name:mrp_bom_note.model_mrp_bom
|
||||
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
|
||||
msgid "Notes"
|
||||
msgstr "Notas"
|
||||
|
||||
44
mrp_bom_note/i18n/mrp_bom_notes.pot
Normal file
44
mrp_bom_note/i18n/mrp_bom_notes.pot
Normal 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 ""
|
||||
|
||||
6
mrp_bom_note/models/__init__.py
Normal file
6
mrp_bom_note/models/__init__.py
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- encoding: utf-8 -*-
|
||||
##############################################################################
|
||||
# For copyright and license notices, see __openerp__.py file in root directory
|
||||
##############################################################################
|
||||
|
||||
from . import mrp_bom
|
||||
12
mrp_bom_note/models/mrp_bom.py
Normal file
12
mrp_bom_note/models/mrp_bom.py
Normal file
@@ -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 MrpBom(models.Model):
|
||||
_inherit = 'mrp.bom'
|
||||
|
||||
notes = fields.Html()
|
||||
21
mrp_bom_note/views/mrp_bom_view.xml
Normal file
21
mrp_bom_note/views/mrp_bom_view.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="mrp_bom_form_view_inh_notes" model="ir.ui.view">
|
||||
<field name="name">mrp.bom.form.view.inh.notes</field>
|
||||
<field name="model">mrp.bom</field>
|
||||
<field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<page string="Properties" position="after">
|
||||
<page string="Notes">
|
||||
<group>
|
||||
<field name="notes" nolabel="1" />
|
||||
</group>
|
||||
</page>
|
||||
</page>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user