Skip to content

Commit

Permalink
Merge 391eb87 into 996a049
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza committed Dec 4, 2015
2 parents 996a049 + 391eb87 commit f775027
Show file tree
Hide file tree
Showing 54 changed files with 6,230 additions and 0 deletions.
61 changes: 61 additions & 0 deletions mrp_hook/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
.. 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

===============================
Hooks for enabling advanced MRP
===============================

Technical module that provides the proper framework infrastructure (hooks,
fallback, etc) to enable advanced functionality in the manufacturing area,
as https://github.com/odoo/odoo/pull/8885 hasn't been accepted for v8.

* Hooks in *_bom_explode* method for returning dictionary for consume and
workcenter lines.
* Provide product and template on *_bom_find*.

Usage
=====

By itself it doesn't provide anything visible, but serves as base for others
modules to develop its features.

.. 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/8.0

Known issues / Roadmap
======================

* This module fully overwrites _bom_explode method, so any other module
inheriting this method should take this into account.
* On v9, this module can be removed, as the hooks have been integrated.

Credits
=======

Contributors
------------

* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>

Images
------

* Original Odoo MRP icon
* Thanks to https://openclipart.org/detail/151441/lifting-hook

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.
5 changes: 5 additions & 0 deletions mrp_hook/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# (c) 2015 Serv. Tecnol. Avanzados - Pedro M. Baeza
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import models
22 changes: 22 additions & 0 deletions mrp_hook/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# (c) 2015 Serv. Tecnol. Avanzados - Pedro M. Baeza
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "MRP Hooks",
"version": "8.0.1.0.0",
"category": "Hidden",
"author": "OdooMRP team, "
"AvanzOSC, "
"Serv. Tecnol. Avanzados - Pedro M. Baeza",
"website": "http://www.odoomrp.com",
"contributors": [
"Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>",
],
"depends": [
"mrp",
],
"data": [
],
"installable": True
}
39 changes: 39 additions & 0 deletions mrp_hook/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_hook
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: odoomrp-wip (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-20 17:16+0000\n"
"PO-Revision-Date: 2015-11-13 21:25+0000\n"
"Last-Translator: <>\n"
"Language-Team: Spanish (http://www.transifex.com/oca/odoomrp-wip-8-0/language/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_hook
#: model:ir.model,name:mrp_hook.model_mrp_bom
msgid "Bill of Material"
msgstr "Lista de material"

#. module: mrp_hook
#: code:addons/mrp_hook/models/mrp_bom.py:119
#, python-format
msgid "BoM \"%s\" contains a BoM line with a product recursion: \"%s\"."
msgstr "La LdM \"%s\" contiene una línea con un producto recursivo: \"%s\"."

#. module: mrp_hook
#: code:addons/mrp_hook/models/mrp_bom.py:147
#, python-format
msgid ""
"BoM \"%s\" contains a phantom BoM line but the product \"%s\" does not have "
"any BoM defined."
"La LdM \"%s\" contiene una línea fantasma pero el producto \"%s\" no tiene "
"ninguna LdM definida."
msgstr ""
37 changes: 37 additions & 0 deletions mrp_hook/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_hook
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: odoomrp-wip (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-20 17:16+0000\n"
"PO-Revision-Date: 2015-11-13 21:25+0000\n"
"Last-Translator: <>\n"
"Language-Team: Italian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/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_hook
#: model:ir.model,name:mrp_hook.model_mrp_bom
msgid "Bill of Material"
msgstr "Distinta base"

#. module: mrp_hook
#: code:addons/mrp_hook/models/mrp_bom.py:119
#, python-format
msgid "BoM \"%s\" contains a BoM line with a product recursion: \"%s\"."
msgstr ""

#. module: mrp_hook
#: code:addons/mrp_hook/models/mrp_bom.py:147
#, python-format
msgid ""
"BoM \"%s\" contains a phantom BoM line but the product \"%s\" does not have "
"any BoM defined."
msgstr ""
37 changes: 37 additions & 0 deletions mrp_hook/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_hook
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: odoomrp-wip (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-20 17:16+0000\n"
"PO-Revision-Date: 2015-11-13 21:25+0000\n"
"Last-Translator: <>\n"
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/odoomrp-wip-8-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_hook
#: model:ir.model,name:mrp_hook.model_mrp_bom
msgid "Bill of Material"
msgstr "Lista de materiais"

#. module: mrp_hook
#: code:addons/mrp_hook/models/mrp_bom.py:119
#, python-format
msgid "BoM \"%s\" contains a BoM line with a product recursion: \"%s\"."
msgstr ""

#. module: mrp_hook
#: code:addons/mrp_hook/models/mrp_bom.py:147
#, python-format
msgid ""
"BoM \"%s\" contains a phantom BoM line but the product \"%s\" does not have "
"any BoM defined."
msgstr ""
38 changes: 38 additions & 0 deletions mrp_hook/i18n/ro.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_hook
#
# Translators:
# Dorin Hongu <dhongu@gmail.com>, 2015
msgid ""
msgstr ""
"Project-Id-Version: odoomrp-wip (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-20 17:16+0000\n"
"PO-Revision-Date: 2015-11-18 00:46+0000\n"
"Last-Translator: Dorin Hongu <dhongu@gmail.com>\n"
"Language-Team: Romanian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/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_hook
#: model:ir.model,name:mrp_hook.model_mrp_bom
msgid "Bill of Material"
msgstr "Listă de materiale"

#. module: mrp_hook
#: code:addons/mrp_hook/models/mrp_bom.py:119
#, python-format
msgid "BoM \"%s\" contains a BoM line with a product recursion: \"%s\"."
msgstr "LdM\"%s\" conține o line cu un produs recurent: \"%s\"."

#. module: mrp_hook
#: code:addons/mrp_hook/models/mrp_bom.py:147
#, python-format
msgid ""
"BoM \"%s\" contains a phantom BoM line but the product \"%s\" does not have "
"any BoM defined."
msgstr "LdM \"%s\" conține o linie fantomă dar produsul \"%s\" nu are definită o LdM."
38 changes: 38 additions & 0 deletions mrp_hook/i18n/sl.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_hook
#
# Translators:
# Matjaž Mozetič <m.mozetic@matmoz.si>, 2015
msgid ""
msgstr ""
"Project-Id-Version: odoomrp-wip (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-20 17:16+0000\n"
"PO-Revision-Date: 2015-11-14 04:47+0000\n"
"Last-Translator: Matjaž Mozetič <m.mozetic@matmoz.si>\n"
"Language-Team: Slovenian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/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_hook
#: model:ir.model,name:mrp_hook.model_mrp_bom
msgid "Bill of Material"
msgstr "Kosovnica"

#. module: mrp_hook
#: code:addons/mrp_hook/models/mrp_bom.py:119
#, python-format
msgid "BoM \"%s\" contains a BoM line with a product recursion: \"%s\"."
msgstr "Kosovnica \"%s\" vsebuje postavko z rekurzivnim proizvodom: \"%s\"."

#. module: mrp_hook
#: code:addons/mrp_hook/models/mrp_bom.py:147
#, python-format
msgid ""
"BoM \"%s\" contains a phantom BoM line but the product \"%s\" does not have "
"any BoM defined."
msgstr "Kosovnica \"%s\" vsebuje postavko navidezne kosovnice, a proizvod \"%s\" nima določene nobene kosovnice."
5 changes: 5 additions & 0 deletions mrp_hook/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# (c) 2015 Serv. Tecnol. Avanzados - Pedro M. Baeza
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import mrp_bom

0 comments on commit f775027

Please sign in to comment.